OCPBUGS-87813: [release-4.21] fix: reset associatedVCenter in failure domain validation loop#10605
Conversation
…ion loop The associatedVCenter variable was declared outside the for loop that iterates over failure domains, causing it to retain a stale pointer from a previous iteration. When a failure domain referenced a non-existent vCenter server after a valid one, the nil check was skipped and validation passed silently. The installer then crashed during machine asset generation with a confusing error. Move the variable declaration inside the loop so it resets on each iteration. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@chdeshpa-hue: This pull request references Jira Issue OCPBUGS-86012, 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: 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)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@chdeshpa-hue: This pull request references Jira Issue OCPBUGS-87813, 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. |
|
@chdeshpa-hue: The following tests failed, say
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. |
Summary
Cherry-pick of #10559 to release-4.21.
Fixes a stale
associatedVCentervariable in the failure domain validation loop that caused subsequent failure domains to incorrectly pass validation against the wrong vCenter, leading to confusing validation errors or silent misconfiguration.Fixes: https://issues.redhat.com/browse/OCPBUGS-86012
/cherry-pick-from #10559
Made with Cursor