mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-08-28 21:35:53 +00:00
3bea5124cb
With the recently introduced docker discovery, the self node discovery notification can reach the overlay driver after the remote node discovery notification. In scenarios such as 2 node setup, it seems more likely. In those scenarios, the serfJoin is not triggered and hence the neighborship is not formed between the 2 nodes. The fix is to retain the knowledge of the neighbor and reuse it immediately after the serfInit is done. Since we do the serfJoin just once, there is no harm in changing the neighIP to a new value even if it is not used. Signed-off-by: Madhu Venugopal <madhu@docker.com>