Skip to content

delete ns lb finalisers - #1565

Draft
trdoyle81 wants to merge 1 commit into
redhat-developer:masterfrom
trdoyle81:fix-e2e-delete-ns-lb-finaliser
Draft

trdoyle81 wants to merge 1 commit into
redhat-developer:masterfrom
trdoyle81:fix-e2e-delete-ns-lb-finaliser

Conversation

@trdoyle81

Copy link
Copy Markdown
Member

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:

  • Documentation was updated and verified using make serve-docs
  • Unit tests were updated
  • [ x] E2E tests were updated

What 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.

@openshift-ci

openshift-ci Bot commented Nov 16, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci Bot added the kind/failing-test Categorizes issue or PR as related to a frequently failing test. label Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@openshift-ci

openshift-ci Bot commented Nov 16, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jgwest for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@jgwest

jgwest commented Nov 16, 2026

Copy link
Copy Markdown
Member

@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.

@trdoyle81

Copy link
Copy Markdown
Member Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress kind/failing-test Categorizes issue or PR as related to a frequently failing test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants