CNTRLPLANE-3943: feat(hypershift-azure-deprovision): add --force flag and reduce grace period - #82817
CNTRLPLANE-3943: feat(hypershift-azure-deprovision): add --force flag and reduce grace period#82817bryan-cox wants to merge 1 commit into
Conversation
… period Integrates the --force flag from openshift/hypershift#9134 into the periodic Azure deprovisioner job. When the 20m grace period expires, --force strips all finalizers from child resources bottom-up and continues with best-effort infrastructure cleanup. Reduces --cluster-grace-period from 40m to 20m. With 27+ stuck HCs at the previous 40m/cluster, Phase 1 exhausted the 4h Prow budget. At 20m/cluster with --force, stuck HCs are force-cleaned within the budget. Fixes CNTRLPLANE-3943 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@bryan-cox: This pull request references CNTRLPLANE-3943 which is a valid jira issue. 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: 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 |
|
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: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughThe Azure HostedCluster deprovision command now uses a 20-minute grace period and forces destruction. ChangesHostedCluster deprovision
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/pj-rehearse ? |
|
@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@bryan-cox: job(s): ? either don't exist or were not found to be affected, and cannot be rehearsed |
|
/pj-rehearse periodic-ci-openshift-hypershift-main-azure-deprovision-azure-deprovision |
|
@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@bryan-cox: 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. |
|
/pj-rehearse ack Rehearsal job No stale resources existed at the time of the run, so |
|
@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
What this PR does / why we need it:
Integrates the
--forceflag from openshift/hypershift#9134 into the periodic Azure deprovisioner job (periodic-ci-openshift-hypershift-main-azure-deprovision-azure-deprovision).When the grace period expires,
--forcestrips all finalizers from child resources bottom-up (CAPI machines, clusters, HCP, deployments, NodePools, namespace) and continues with best-effort infrastructure cleanup.Also reduces
--cluster-grace-periodfrom 40m to 20m.Why this fixes the problem:
The Azure CI deprovisioner was failing to clean up stuck HostedClusters because:
With
--forceand a reduced 20m grace period, stuck HCs are force-cleaned within the job budget.Which issue(s) this PR fixes:
Fixes CNTRLPLANE-3943
Special notes for your reviewer:
--forceflag and implementation logic were already merged in openshift/hypershift#9134ci-operator/step-registry/hypershift/azure/deprovision/hypershift-azure-deprovision-commands.shSummary by CodeRabbit
--forceafter the grace period expires.--cluster-grace-periodfrom 40 to 20 minutes.