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
OCPBUGS-23126: Fix a bug on deletion of a hostedcluster #3234
Conversation
@nunnatsa: This pull request references Jira Issue OCPBUGS-23126, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
/test e2e-aws |
8d763bd
to
72be1af
Compare
72be1af
to
0158c40
Compare
/jira refresh |
@nunnatsa: This pull request references Jira Issue OCPBUGS-23126, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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-23126, 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: In 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. |
0158c40
to
9bd5da9
Compare
@nunnatsa: This pull request references Jira Issue OCPBUGS-23126, 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: In 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: This pull request references Jira Issue OCPBUGS-23126, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In 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. |
4bdec0a
to
7129c9e
Compare
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. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
21e982c
to
5d4ed3f
Compare
/test e2e-aws |
/test e2e-aws |
1 similar comment
/test e2e-aws |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required |
1 similar comment
/retest-required |
/retest-required |
/cherry-pick release-4.14 |
@davidvossel: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you. In 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: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
5b9c536
into
openshift:main
@nunnatsa: Jira Issue OCPBUGS-23126: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-23126 has been moved to the MODIFIED state. In 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. |
@davidvossel: #3234 failed to apply on top of branch "release-4.14":
In 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. |
PR openshift#3234 used the wrong HostedCluster annotation to check if the cluster may be considered as already deleted. This PR fixes the annotation name to `"hypershift.openshift.io/destroy-grace-period"` Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
[ART PR BUILD NOTIFIER] This PR has been included in build ose-hypershift-container-v4.15.0-202312070751.p0.g5b9c536.assembly.stream for distgit hypershift. |
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>
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>
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.
Which issue(s) this PR fixes
Fixes #OCPBUGS-23126
Checklist