OCPBUGS-86012: vsphere - fix failure domain validation skipping invalid vCenter server reference#10560
Conversation
…r reference The associatedVCenter variable was declared outside the failure domain loop but never reset between iterations. When the first failure domain matched a valid vCenter, the variable stayed non-nil for subsequent iterations, causing validation to silently pass even when a later failure domain referenced a nonexistent vCenter server. Fixes https://issues.redhat.com/browse/OCPBUGS-86012 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@jcpowermac: 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. |
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR fixes a bug in vSphere platform validation where the ChangesFailure Domain vCenter Association Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
/jira refresh |
|
@jcpowermac: This pull request references Jira Issue OCPBUGS-86012, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
/test ? |
|
[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 |
|
/test e2e-vsphere-multi-vcenter-ovn |
|
@jcpowermac: This pull request references Jira Issue OCPBUGS-86012, which is valid. 3 validation(s) were run on this bug
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. |
|
@jcpowermac: The following test 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. |
The associatedVCenter variable was declared outside the failure domain loop but never reset between iterations. When the first failure domain matched a valid vCenter, the variable stayed non-nil for subsequent iterations, causing validation to silently pass even when a later failure domain referenced a nonexistent vCenter server.
Fixes https://issues.redhat.com/browse/OCPBUGS-86012
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests