-
Notifications
You must be signed in to change notification settings - Fork 584
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
🐛 fix/network/rtb: delete rtb handling err when failed to create routes #4899
🐛 fix/network/rtb: delete rtb handling err when failed to create routes #4899
Conversation
Hi @mtulio. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
369a275
to
affd00b
Compare
/assign @vincepri |
/ok-to-test |
/test pull-cluster-api-provider-aws-e2e |
/assign @damdo e2e passing. Unsure why GH checks failed (no logs). I am happy to introduce units for those functions. Let me know if that approach is feasible before writing more code. |
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.
Left a comment but the approach LGTM.
I think, yes, if you can add a unit test that covers this, it would be great.
Thanks!
Route tables must be deleted after fail to create, otherwise it will generate a new route table every new reconciliator loop. This fix ensure route table is deleted when failed to create, raising a wanring to the recorder when failed to create, and eventually, failed to delete.
affd00b
to
8639688
Compare
8639688
to
be8658b
Compare
be8658b
to
283c07b
Compare
@damdo unit tests added, and everything is passing now. |
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.
Thanks @mtulio
/lgtm
Assigning approvers
/assign @dlipovetsky @vincepri @richardcase @Ankitasw
/test pull-cluster-api-provider-aws-e2e |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
/cherry-pick release-2.4 |
@damdo: new pull request created: #4912 In response to this:
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/test-infra repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This fix creates an error handler when the route table reconcile loop returns error when creating routes. It will prevent left the route table behind.
Currently this issue is triggered when an invalid route entry is added, creating a new stale table every new reconciliation, growing to hundreds in a few minutes. This is one example triggering the issue (a subset of Carrier Gateway support adding in #4901):
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist:
Release note: