-
Notifications
You must be signed in to change notification settings - Fork 679
IPAM reassigned same IP address to multiple containers on different hosts #1949
Comments
Yes, calling Once the peers detect inconsistency they (should) log the error and drop the connection that supplied the inconsistent data. So multiple peers can each carry on with their own view of the world, but the network is effectively broken. Some peers will manage to communicate their claim to others before they run their I will look into reporting this error condition better; in #1946 the best clue was "Inconsistent state", which is a bit cryptic. |
Thanks for this information!
|
4 |
actually, the best thing to do is call |
I see. Sadly calling reset on a node going out of service is not an option because the node might just disappear without time to run the command (running on ec2 spot instances) |
I see. In which case 4 remains your best course of action. |
Hi, I ran into this interesting issue a few times. I am seeing weave allocate the same IP address to two different containers on different hosts. I couldn't get more details at time of incident, but if it happens again I can grab more info. But I wanted to describe my use case to see if I am using weave in a wrong way.
I ran
weave status ipam
when the issue happened and the numbers of what % of IP's each server had was inconsistent. host_1 saw 30% allocated to host_2 but host_3 saw 20% allocated to host_2.NOTE: I am only using weave router (weaveDNS and weave proxy not in use)
weave forget <terminatedPeer>
andweave rmpeer <terminatedPeer>
on all other serversweave attach <containerId>
(letting weave choose ip)One interesting thing to note is that I can get into cases where all the peers that were passed to a server have been cycled through. But I call forget on them so I that should be fine.
Is this incorrect usage of weave? from the documentation it seemed like hosts should be able to leave the network as long as when a new server comes up, it knows about the current state of the system. Let me know if I am missing an assumption weave makes about a network.
The text was updated successfully, but these errors were encountered: