OCPBUGS-61892: fix swap disk nil-panic and block swap on control plane - #10859
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughSwap disk generation now uses the configured swap platform disk ID for master and worker machines. Validation rejects swap disk configuration in master machine pools and tests the rejection. ChangesSwap disk handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Swap disk generation now resolves the configured swap disk ID, and control-plane swap configurations are rejected. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 golangci-lint (2.13.2)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-61892, 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. |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-61892, which is valid. 3 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. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: jinyunma. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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 kubernetes-sigs/prow repository. |
|
/jira refresh |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-61892, which is valid. 3 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. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: jinyunma. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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 kubernetes-sigs/prow repository. |
Fix copy-paste error where swap disk setup incorrectly referenced etcd's PlatformDiskID, causing a nil-pointer dereference when a swap disk is configured. Extract DiskName helper to util.go to prevent future drift between master.go and worker.go. Add validation to reject swap disks on control plane nodes. The MCO hardcodes failSwapOn=true for masters and blocks KubeletConfig CRs that attempt to override it, so swap cannot function on control plane. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ec1feb9 to
a0e52b4
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/test ? |
|
/test e2e-vsphere-ovn-disk-setup-techpreview |
|
/lgtm Started e2e-vsphere-ovn-disk-setup-techpreview to verify how it works against vsphere |
|
Scheduling tests matching the |
|
/test e2e-azure-ovn |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tthvo 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 |
|
/test e2e-aws-ovn CI is under heavy load as I'm seeing some |
|
@mfbonfigli: 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. |
|
/verified by CI |
|
@mfbonfigli: 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. |
|
@mfbonfigli: Jira Issue Verification Checks: Jira Issue OCPBUGS-61892 Jira Issue OCPBUGS-61892 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. |
|
Fix included in release 5.1.0-0.nightly-2026-09-11-071353 |
Summary
diskSetup.Etcd.PlatformDiskIDwas incorrectly referenced instead ofdiskSetup.Swap.PlatformDiskIDin both master.go and worker.gofailSwapOn: truefor masters (kubelet.yaml) and actively blocks KubeletConfig CRs that attempt to override it, so swap cannot function on control planeSummary by CodeRabbit