Repository navigation
[Release 4.14] OCPBUGS-24556: Fix a bug on deletion of a hostedcluster - #3290
openshift-merge-bot[bot] merged 1 commit into
Conversation
|
@nunnatsa: This pull request references Jira Issue OCPBUGS-24556, 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@nunnatsa: This pull request references Jira Issue OCPBUGS-24556, which is invalid:
Comment 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/test-infra repository. |
|
/jira refresh |
|
@nunnatsa: This pull request references Jira Issue OCPBUGS-24556, which is valid. The bug has been moved to the POST state. 6 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 kubernetes/test-infra repository. |
| if _, ok := hostedCluster.Annotations[hyperv1.CleanupCloudResourcesAnnotation]; ok { | ||
| if meta.FindStatusCondition(hostedCluster.Status.Conditions, string(hyperv1.HostedClusterDestroyed)) != nil { | ||
| return true, nil | ||
| } |
There was a problem hiding this comment.
does this need the same fix that you provided in #3289?
A user destroying a HostedCluster can cause the HostedCluster to hang indefinitely if the destroy command times out during execution. This is due to the hcp cli placing a finalizer on the HostedCluster during deletion which the cli tool later removes after waiting for some clean up actions to occur. If a user cancels the hcp destroy cluster command (or the command times out) while the cli is waiting for cleanup, then the HostedCluster will hang indefinitely with a DeletionTimestamp != nil. This PR only performs the additional cleaning logic, including the setting and removing the special finalizer, for platform that actually creates additional resources. Also, this PR sets the hostedCluster as the owner for these secrets, so they will be deleted with the HostedCluster. This PR is a manual cherry-pick of openshift#3234 Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
3896c6a to
5767ccd
Compare
|
/test e2e-kubevirt-aws-ovn |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidvossel, nunnatsa 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 |
|
@nunnatsa: 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/test-infra repository. I understand the commands that are listed here. |
|
/override "Red Hat Trusted App Test / mce-24-75q5r / tektok-runner-enterprise-contract-mce-2.4" |
|
@davidvossel: Overrode contexts on behalf of davidvossel: Red Hat Trusted App Test / mce-24-75q5r / tektok-runner-enterprise-contract-mce-2.4 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/test-infra repository. |
|
@nunnatsa: Jira Issue OCPBUGS-24556: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-24556 has been moved to the MODIFIED state. 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/test-infra repository. |
What this PR does / why we need it
A user destroying a HostedCluster can cause the HostedCluster to hang indefinitely if the destroy command times out during execution.
This is due to the hcp cli placing a finalizer on the HostedCluster during deletion which the cli tool later removes after waiting for some clean up actions to occur. If a user cancels the hcp destroy cluster command (or the command times out) while the cli is waiting for cleanup, then the HostedCluster will hang indefinitely with a DeletionTimestamp != nil.
This PR only performs the additional cleaning logic, including the setting and removing the special finalizer, for platform that actually creates additional resources. Also, this PR sets the hostedCluster as the owner for these secrets, so they will be deleted with the HostedCluster.
This PR is a manual cherry-pick of #3234
Which issue(s) this PR fixes
Fixes #OCPBUGS-24556
Checklist