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

Removing ExternalIP Fails to Withdraw Route #639

Closed
ghost opened this issue Jan 17, 2019 · 3 comments
Closed

Removing ExternalIP Fails to Withdraw Route #639

ghost opened this issue Jan 17, 2019 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 17, 2019

I am using externalIPs to advertise out anycast BGP routes from kube-router. Advertising works as you'd expect: I add an externalIP and it is advertised. Unfortunately when removing the externalIP, the route is never withdrawn from my peers.

Running kube-router version v0.2.0-beta.7, built on 2018-06-08T09:34:34+0000, go1.8.7

@ghost
Copy link
Author

ghost commented Jan 31, 2019

@murali-reddy If you can provide a bit of insight into which package this bug likely exists in, I will start hunting for it.

@murali-reddy
Copy link
Member

@MagikMan please see

https://github.com/cloudnativelabs/kube-router/blob/master/pkg/controllers/routing/ecmp_vip.go

this is where all service VIP's that are to be advertised and withdrawn are identified

mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
(cherry picked from commit 22377b2)
Signed-off-by: Matus Kral <[email protected]>
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
(cherry picked from commit bb9637c)
Signed-off-by: Matus Kral <[email protected]>
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
(cherry picked from commit bb9637c)
Signed-off-by: Matus Kral <[email protected]>
@mk01
Copy link
Contributor

mk01 commented Feb 15, 2019

@MagikMan @murali-reddy

it is because the on update() methods are not considering previous state.
in this PR 669 is implemented one way to fix (by remembering currently advertised list of ext ip)

another way would be to pass oldObj on update too and take the previous list from there. perhaps it would be even better.

(update: created #670 as the second variant and closed 669)

mk

mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
mk01 added a commit to mk01/kube-router-ipv6 that referenced this issue Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants