-
Notifications
You must be signed in to change notification settings - Fork 427
OCPBUGS-67234: fix(hostedcluster): unpause CAPI cluster when deleting paused HostedCluster #7389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…luster When a paused HostedCluster is deleted, the CAPI cluster must be unpaused to allow machine deletion to proceed. Previously, the pause check returned early before the deletion check could be reached, causing the HostedCluster deletion to get stuck. This change modifies pauseCAPICluster() to accept a boolean parameter controlling whether to pause or unpause, and calls it with paused=false at the start of the delete() function to ensure the CAPI cluster is unpaused before deletion proceeds. Fixes: https://issues.redhat.com/browse/OCPBUGS-67234 Signed-off-by: Mulham Raee <mulham.raee@gmail.com> Commit-Message-Assisted-by: Claude (via Claude Code)
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Comment |
|
Skipping CI for Draft Pull Request. |
|
@muraee: This pull request references Jira Issue OCPBUGS-67234, 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: muraee 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 |
|
@muraee: 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. |
|
/test unit |
|
/jira refresh |
|
@muraee: This pull request references Jira Issue OCPBUGS-67234, which is valid. The bug has been moved to the POST state. 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. |
|
/auto-cc |
Summary
pauseCAPICluster()to accept a boolean parameter controlling whether to pause or unpausedelete()to ensure the CAPI cluster is unpaused before deletion proceedsTest plan
pauseCAPIClustercovering pause/unpause scenariosmake testmake lint-fixFixes: https://issues.redhat.com/browse/OCPBUGS-67234
🤖 Generated with Claude Code