-
Notifications
You must be signed in to change notification settings - Fork 303
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
Reserve ILB IP address before deleting FR on protocol change #1839
Reserve ILB IP address before deleting FR on protocol change #1839
Conversation
no tests? |
it's hard, maybe, I need to add a hook for fake gce, and check on forwarding rule deletion, that address of the forwarding rule is reserved |
and an e2e instead? |
there is a line of code in thatd does not follow the best practices:
please change it to
|
Please also add the unit test for address reservation |
ca0609d
to
0e2b1f4
Compare
Added unit tests, with adding hook on forwarding rule deletion which checks that address is reserved before deletion |
This fixes a bug, which could result in losing ip address. On Service Protocol change, we delete forwarding rule before changing Backend Service. But we didn't reserve address before forwrading rule rule deletion, so after deleting forwarding rule, this address could be reserved from some other place.
0e2b1f4
to
0cd469a
Compare
And btw, the added code in unit tests is failing on master, as expected |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cezarygerard, panslava 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 |
This fixes a bug, which could result in losing ip address. On Service Protocol change, we delete forwarding rule before changing Backend Service. But we didn't reserve address before forwarding rule rule deletion, so after deleting forwarding rule, this address could be reserved from some other place.