OCPBUGS-89231: [release-4.22] reconcile HCP when pull secret is unavailable#8743
OCPBUGS-89231: [release-4.22] reconcile HCP when pull secret is unavailable#8743bryan-cox wants to merge 1 commit into
Conversation
When the pull secret is missing or invalid, the HostedCluster reconciler exits before reaching reconcileHostedControlPlane. This prevents RequestServingNodeAdditionalSelector and other spec fields from being propagated to the HCP, breaking HA scheduling for request-serving nodes. Log the error and call reconcileHostedControlPlane before returning so pod placement decisions continue during a pull secret outage. The error is still returned to trigger a requeue for full reconciliation once the pull secret is restored. JIRA: OCPBUGS-77268
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-89231, 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. |
|
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 YAML (base), Central YAML (inherited) 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 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox 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 |
|
Closing - the original fix (OCPBUGS-77268) targets 5.0 only with no backport planned. The right fix is to version-gate the test instead. See #8744. |
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-89231. The bug has been updated to no longer 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. |
Summary
Cherry-pick of #8352 to release-4.22.
When a pull secret is unavailable, the HostedCluster reconciler was exiting early without reconciling the HostedControlPlane. This meant changes like NodeSelector updates were silently dropped until the pull secret was restored.
The fix reconciles the HCP before returning the pull secret error, so pod placement changes propagate independently of pull secret state.
Bug: https://redhat.atlassian.net/browse/OCPBUGS-89231
Original fix: #8352 (OCPBUGS-77268)
Why backport?
TestPullSecretUnavailable(fromhypershift-tests:latestbuilt on main) permafails against release-4.22 operator without this fix