Testing: IP allocation simulation - update options processing in examples.
authorMartin Schwenke <martin@meltin.net>
Mon, 2 Aug 2010 05:01:47 +0000 (15:01 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 2 Aug 2010 05:01:47 +0000 (15:01 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/takeover/mgmt_simple.py
tests/takeover/node_pool_extra.py
tests/takeover/node_pool_simple.py
tests/takeover/nondet_path_01.py

index bc5872f42fabd6114b9b744f4b8fda59b7c295bd..f891199655ab6ef4d48135072947151b2e8f94d0 100755 (executable)
@@ -4,7 +4,9 @@
 # interface node and a management node.  When run with deterministic
 # IPs there are gratuitous IP reassignments.
 
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
 
 addresses = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
 
index dcac553403ae4580f095dac36986608b26e1a661..b4ae892bcc51061601bdc0f7870341319ac6e5c9 100755 (executable)
@@ -7,7 +7,9 @@
 # When run with deterministic IPs (use "-d" to show the problem) it
 # does many gratuitous IP reassignments.
 
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
 
 addresses1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] + ['P', 'Q', 'R', 'S', 'T', 'U']
 addresses2 = ['I', 'J', 'K', 'L']
index 0acd0044428a6bd85b24d8a73fc09fc905da3ad8..86c5d10fd4a5d9aeac2e877494dfc059ea613d91 100755 (executable)
@@ -4,7 +4,9 @@
 # configuration.  When run with deterministic IPs (use "-d" to show
 # the problem) it does many gratuitous IP reassignments.
 
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
 
 addresses1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
 addresses2 = ['I', 'J', 'K']
index b96fad3f153b4584c1d24d14343e40d0b3583468..a62847a216322ce8054d1041aa8bcd1efc235cf6 100755 (executable)
@@ -2,9 +2,10 @@
 
 # This is a contrived example that makes the balancing algorithm fail
 # for nondeterministic IPs (run with "-dv --nd" to see the failure).
-# The --hack option fixes the problem.
 
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
 
 addresses1 = ['A', 'B', 'C', 'D']
 addresses2 = ['B', 'E', 'F']