OCPBUGS-94184: OCPBUGS-65582: [release-4.22] OCPBUGS-65582: manifests: Shift operator Deployment and ClusterOperator after CredentialsRequests#484
Conversation
…tialsRequests
Avoid issues like [1]:
level=error msg=Cluster operator cloud-controller-manager Degraded is True with SyncingFailed: Failed to resync for operator: 5.0.0-0.ci-2026-06-24-223845-test-ci-op-bf1k8ci7-latest because &{%!e(string=failed to sync operands: deployment gcp-cloud-controller-manager rollout stalled: ProgressDeadlineExceeded) %!e(*errors.errorString=&{deployment gcp-cloud-controller-manager rollout stalled: ProgressDeadlineExceeded})}
level=error msg=Bootstrap failed to complete: timed out waiting for the condition
where the gcp-cloud-controller-manager rollout was stuck on a missing Secret:
$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_installer/10344/pull-ci-openshift-installer-main-e2e-gcp-ovn/2069899190707687424/artifacts/e2e-gcp-ovn/gather-must-gather/artifacts/must-gather/inspect.local.678963955700434997/namespaces/openshift-cloud-controller-manager/core/events.yaml | grep -i secret | sort | uniq
message: 'error calculating configuration hash: Secret "gcp-ccm-cloud-credentials"
message: 'MountVolume.SetUp failed for volume "cloud-sa-volume" : secret "gcp-ccm-cloud-credentials"
The missing Secret is because of a missing openshift-gcp-ccm
CredentialsRequest:
$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_installer/10344/pull-ci-openshift-installer-main-e2e-gcp-ovn/2069899190707687424/artifacts/e2e-gcp-ovn/gather-must-gather/artifacts/must-gather/inspect.local.678963955700434997/namespaces/openshift-cloud-credential-operator/cloudcredential.openshift.io/credentialsrequests/ | grep -o '[^/ ]*[.]yaml' | grep gcp | sort | uniq
cloud-credential-operator-gcp-ro-creds.yaml
openshift-cloud-network-config-controller-gcp.yaml
openshift-gcp-pd-csi-driver-operator.yaml
openshift-ingress-gcp.yaml
openshift-machine-api-gcp.yaml
and the missing CredentialsRequest was because this repository's
manifests are out of order, and the sad ClusterOperator blocks the
cluster-version operator from continuing on past
12_clusteroperator.yaml to apply 16_credentialsrequest-gcp.yaml:
$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_installer/10344/pull-ci-openshift-installer-main-e2e-gcp-ovn/2069899190707687424/artifacts/e2e-gcp-ovn/ipi-install-install/artifacts/log-bundle-20260624233936/bootstrap/containers/cluster-version-operator-c5eae39febef6f1c173b5dd93acddedf470263070e47ef2bbe51a9302cacba13.log | grep 'cloud-controller-manager' | grep -B10 'Result of work' | grep -v 'Result of work' | tail
I0624 23:38:39.982212 1 sync_worker.go:1092] Running sync for service "openshift-cloud-controller-manager-operator/cloud-controller-manager-operator" (198 of 1023)
I0624 23:38:40.206632 1 sync_worker.go:1109] Done syncing for service "openshift-cloud-controller-manager-operator/cloud-controller-manager-operator" (198 of 1023)
I0624 23:38:40.206693 1 sync_worker.go:1092] Running sync for networkpolicy "openshift-cloud-controller-manager-operator/default-deny" (199 of 1023)
I0624 23:38:40.432739 1 sync_worker.go:1109] Done syncing for networkpolicy "openshift-cloud-controller-manager-operator/default-deny" (199 of 1023)
I0624 23:38:40.432800 1 sync_worker.go:1092] Running sync for networkpolicy "openshift-cloud-controller-manager/default-deny" (200 of 1023)
I0624 23:38:40.657161 1 sync_worker.go:1109] Done syncing for networkpolicy "openshift-cloud-controller-manager/default-deny" (200 of 1023)
I0624 23:38:40.657237 1 sync_worker.go:1092] Running sync for deployment "openshift-cloud-controller-manager-operator/cluster-cloud-controller-manager-operator" (201 of 1023)
I0624 23:38:40.882838 1 sync_worker.go:1109] Done syncing for deployment "openshift-cloud-controller-manager-operator/cluster-cloud-controller-manager-operator" (201 of 1023)
I0624 23:38:40.882898 1 sync_worker.go:1092] Running sync for clusteroperator "cloud-controller-manager" (202 of 1023)
E0624 23:38:40.883156 1 task.go:128] "Unhandled Error" err="error running apply for clusteroperator \"cloud-controller-manager\" (202 of 1023): Cluster operator cloud-controller-manager is not available" logger="UnhandledError"
By re-ordering the manifests, the CredentialRequests needed for a
happy ClusterOperator now all come before the operator Deployment, so
well before the operand Deployment, and they will be consistently
pushed into the cluster, regardless of how happy this ClusterOperator
is.
The old misordering dates back to the ealiest CredentialsRequest
manifests here in 05d4fff (Add Azure creds injector binary into
CCCMO image and bits for run it in initContainer, 2021-08-12, openshift#106).
But for reasons I haven't completely pinned down, e05d774 (Updates
clusteroperator_controller progressing, 2026-06-16, openshift#473) seems to
have blown the longstanding race open, at least on Azure and GCP.
[1]: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_installer/10344/pull-ci-openshift-installer-main-e2e-gcp-ovn/2069899190707687424
|
@openshift-cherrypick-robot: Detected clone of Jira Issue OCPBUGS-64852 with correct target version. Will retitle the PR to link to the clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-65582, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damdo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@openshift-cherrypick-robot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/label backport-risk-assessed |
|
@wking leaving the verification to you |
|
/verified by passing CI; this is a preemptive fix to catch issues with some other operator logic. |
|
@nrb: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@nrb: This pull request references Jira Issue OCPBUGS-65582, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
sigh the jira bot got confused. |
|
/jira cherry-pick OCPBUGS-64852 |
|
@theobarberbany: Detected clone of Jira Issue OCPBUGS-64852 with correct target version. Will retitle the PR to link to the clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira cherry-pick OCPBUGS-64852 |
|
@theobarberbany: Detected clone of Jira Issue OCPBUGS-64852 with correct target version. Will retitle the PR to link to the clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-94184, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@theobarberbany: This pull request references Jira Issue OCPBUGS-94184, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@theobarberbany: This pull request references Jira Issue OCPBUGS-94184, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
b99c3d8
into
openshift:release-4.22
|
@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-94184 Jira Issue OCPBUGS-94184 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
This is an automated cherry-pick of #478
/assign theobarberbany