Skip to content

Conversation

weshayutin
Copy link
Contributor

@weshayutin weshayutin commented Jul 29, 2025

Why the changes were made

The HCP / OADP e2e tests were failing and blocking work

How to test the changes made

After the time out expires on the delete call for the HC, remove finalizers and call delete.

  • follow up:
    • no need to check if the finalizer is there or not, we're pulling a list of the finalizers.
    • print out the finalizers being removed.

kaovilai and others added 2 commits July 28, 2025 16:54
Previously, IsHCDeleted and IsHCPDeleted only returned a boolean,
causing actual errors to be lost and reported as generic timeout
errors. This made debugging difficult when deletion checks failed
due to API errors rather than the resource still existing.

Changes:
- Modified IsHCDeleted to return (bool, error)
- Modified IsHCPDeleted to return (bool, error)
- Updated WaitForHCDeletion and WaitForHCPDeletion to handle errors
- Updated test cases to handle the new error returns

This provides better error visibility for troubleshooting HCP
deletion timeouts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2025
@weshayutin
Copy link
Contributor Author

/retest

@weshayutin weshayutin closed this Jul 30, 2025
@weshayutin weshayutin reopened this Jul 30, 2025
@kaovilai
Copy link
Member

/test all

Copy link

openshift-ci bot commented Jul 30, 2025

@kaovilai: No presubmit jobs available for openshift/oadp-operator@oadp-dev

In response to this:

/test all

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.

@kaovilai
Copy link
Member

there's no test in oadp-dev

@weshayutin weshayutin changed the title DNM: Nukefromorbit E2E Fix: remove the finalizers on HCP to allow force delete after timeout expires Jul 30, 2025
Namespace: h.HostedCluster.Namespace,
}, hc)
if err == nil && len(hc.GetFinalizers()) > 0 {
log.Printf("\tNUKE: Removing finalizers from HostedCluster %s", hc.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding loging for what finalizers are? Something like:

log.Printf("\tNUKE: Finalizers present: %v", hc.GetFinalizers())

Copy link
Member

@kaovilai kaovilai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boss order nuke
/lgtm

Copy link
Contributor

@mpryc mpryc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2025
Copy link

openshift-ci bot commented Jul 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, shubham-pampattiwar, weshayutin

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kaovilai
Copy link
Member

/override ci/prow/4.19-e2e-test-kubevirt-aws ci/prow/4.19-e2e-test-cli-aws ci/prow/4.19-e2e-test-aws

override ordered

Copy link

openshift-ci bot commented Jul 30, 2025

@kaovilai: Overrode contexts on behalf of kaovilai: ci/prow/4.19-e2e-test-aws, ci/prow/4.19-e2e-test-cli-aws, ci/prow/4.19-e2e-test-kubevirt-aws

In response to this:

/override ci/prow/4.19-e2e-test-kubevirt-aws ci/prow/4.19-e2e-test-cli-aws ci/prow/4.19-e2e-test-aws

override ordered

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.

@weshayutin
Copy link
Contributor Author

/override ci/prow/4.19-e2e-test-kubevirt-aws ci/prow/4.19-e2e-test-cli-aws ci/prow/4.19-e2e-test-aws

override ordered

not true,

@weshayutin weshayutin merged commit d681482 into openshift:oadp-dev Jul 30, 2025
9 checks passed
@kaovilai
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants