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

What should flannel do when it loses a lease? #520

Closed
rosenhouse opened this issue Sep 28, 2016 · 1 comment
Closed

What should flannel do when it loses a lease? #520

rosenhouse opened this issue Sep 28, 2016 · 1 comment

Comments

@rosenhouse
Copy link

Hello,

This question cuts across flanneld and the flannel CNI plugin. Apologies we're asking in the wrong place.

We (@cloudfoundry/cf-container-networking) are exploring some of the failure states of flannel and etcd. One simple scenario is when the flannel daemon loses a lease on a subnet. To test this, we delete the key from etcd.

In this case, flannel may acquire a lease on a different subnet. This can cause problems if the flannel CNI plugin has already created a bridge with the old subnet, and had attached containers to that bridge. In this scenario, existing containers with IPs on the old subnet are now disconnected from the rest of the network. And if a new container is started on the host, it is assigned an IP from the new subnet, which is incorrect for the existing bridge.

In this scenario, is there any way to recover?

Should the flannel CNI plugin create a new bridge, with the new IP? Should the existing bridge and connected containers be destroyed?

cc: @rusha19 @jaydunk

@tomdee
Copy link
Contributor

tomdee commented Apr 27, 2017

Sorry @rosenhouse I don't have a good answer for this at the moment. I'm going to close this issue and just track making this better as part of #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants