Merge pull request #1499 from weaveworks/1463-ipam-seed-mismatch

detect when IPAM has been seeded by different peers
This commit is contained in:
Tom Wilkie committed 2015-10-09 14:46:55 +01:00
commit 33085e3798
3 files changed
+74 -12

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#! /bin/bash
. ./config.sh
start_suite "IPAM ring seed mismatch"
weave_on $HOST1 launch-router --no-discovery
weave_on $HOST2 launch-router --no-discovery
weave_on $HOST3 launch-router --no-discovery
# Do some allocations to get the ring initialized on two hosts
start_container $HOST1
start_container $HOST2
# Connect 2 to 3 and allocate so they will each have half the ring
weave_on $HOST2 connect $HOST3
start_container $HOST3
# More allocations on 1 to increase the version number
start_container $HOST1
start_container $HOST1
weave_on $HOST1 connect $HOST3
# Check that weave on 3 is still running
assert_raises "weave_on $HOST3 status"
end_suite