Repository navigation
Conversation
|
Skipping CI for Draft Pull Request. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@trdoyle81 Can we not just wait for the load balancer to be deleted by the usual process? We can increase test/cleanup timeouts as necessary to handle this case, if it takes a while for the load balancer to be deleted at cloud level. |
|
Thanks @jgwest yeah so the LB never got an external-ip (stuck on pending) and the ns just sat in terminating for ~19h still holding load-balancer-cleanup so it wasn't just slow cloud cleanup and then bumping the ~6m delete timeout wouldn’t have helped unblock either. later tests still die in the EnsureSequentialCleanSlate. Was thinking maybe alternatively if we don’t strip immediately ? and do something like ... delete LB services → then wait for a while →then only strip the finaliser if it’s still stuck ? wdyt ? |
What does this PR do?
Agent/principal sequential e2e (e.g. 1-051 / 1-053) can leave LoadBalancer Services with service.kubernetes.io/load-balancer-cleanup when EXTERNAL-IP stays . That pins the namespace in Terminating, so later specs fail in EnsureSequentialCleanSlate (~6m each) with “namespace was never deleted”.
Update deleteNamespaceAndVerify (both fixture copies) to strip that finaliser while waiting for namespace deletion, so teardown does not cascade through the rest of the suite. Central fixture fix because clean-slate also hits the stuck NS.
Only removes service.kubernetes.io/load-balancer-cleanup on Services in the namespace being deleted.
Reproduce: run sequential including the 1-051 LoadBalancer case on cloud OCP; without this, a stuck LB Service can block later tests. With this, the NS should delete and the suite continue.
PR acceptance criteria:
make serve-docsWhat type of PR is this?
/kind failing-test
Special notes to the reviewer:
Will need backport to v1.22 / v1.21 / v1.20 after merge.