Skip to content
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

Retry ipset DestroySet/DestroyAllSets if error indicates in use #2978

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

tpantelis
Copy link
Contributor

@tpantelis tpantelis commented Apr 15, 2024

This handles the case where a set is destroyed right after associated IP table rule(s) are deleted where the latter may not be complete yet. Retry up to 2 seconds.

Fixes #1746

Depends on submariner-io/admiral#886

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr2978/tpantelis/ipset_destroy
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Apr 16, 2024
Copy link
Contributor

This PR/issue depends on:

@tpantelis
Copy link
Contributor Author

The unit test failure is unrelated to the changes in this PR. It was orthogonally introduced by the admiral bump and is addressed by submariner-io/admiral#891.

...instead of the K8s exec wrapper as the former provides a
fake implementation that is simpler and easer to use.

Signed-off-by: Tom Pantelis <[email protected]>
This handles the case where a set is destroyed right after associated
IP table rule(s) are deleted where the latter may not be complete yet.
Retry up to 2 seconds.

Fixes submariner-io#1746

Signed-off-by: Tom Pantelis <[email protected]>
@tpantelis tpantelis merged commit 020d4ab into submariner-io:devel Apr 18, 2024
38 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr2978/tpantelis/ipset_destroy]

@tpantelis tpantelis deleted the ipset_destroy branch April 19, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Globalnet: Ensure that iptable rule is actually deleted before trying ipset deletion
5 participants