-
Notifications
You must be signed in to change notification settings - Fork 39k
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
Openstack: fix orphaned route deletion #62729
Openstack: fix orphaned route deletion #62729
Conversation
This is a follow-up to kubernetes#56258 which only half of the work done. The DeleteRoute method failed to delete routes when it can’t find the corresponding node in OpenStack.
/assign @dims |
/ok-to-test |
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.
/approve
I just noticed there is a potential quirk that could cause valid routes for nodes to be deleted. If there are two routes with the same I will update the PR and try to prevent this from happening |
/hold (per last comment from @databus23) |
@dims @FengyunPan2 I updated the PR to compare next-hops when deleting orphaned routes. This should ensure we don't delete valid routes to the same Wdyt? |
There might be a valid route with the same DestinationCIDR pointing to a running node.
3752e96
to
65d4147
Compare
@FengyunPan2 please check /hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: databus23, dims, FengyunPan2 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 |
/test all Tests are more than 96 hours old. Re-running tests. |
Automatic merge from submit-queue (batch tested with PRs 59879, 62729). If you want to cherry-pick this change to another branch, please follow the instructions here. |
Thanks @dims! Can we get this in 1.10.x as I would consider it a bugfix? |
This is a follow-up to #56258 which only got half of the work done.
The OpenStack cloud providers DeleteRoute method fails to delete routes when it can’t find the corresponding instance in OpenStack.