TMP: add a ctdb snapshot of current ctdb master (git://git.samba.org/ctdb.git) to...
[obnox/samba/samba-obnox.git] / ctdb / tests / takeover / ip_groups2.py
1 #!/usr/bin/env python
2
3 # 2 groups of addresses, combined into 1 pool so the checking
4 # algorithm doesn't know about the groups, across 2 nodes.
5
6 from ctdb_takeover import Cluster, Node, process_args
7
8 process_args()
9
10 addresses20 = ['192.168.20.%d' % n for n in range(1, 13)]
11 addresses21 = ['192.168.21.%d' % n for n in range(1, 5)]
12
13 c = Cluster()
14
15 for i in range(2):
16     c.add_node(Node(addresses20 + addresses21))
17
18 c.recover()
19
20 c.random_iterations()