backupkey: replace heimdal rsa key generation with GnuTLS
[Samba.git] / ctdb / tests / takeover / simulation / node_group_extra.py
blob7e9e518bddd28ddc20ecc8541bfd361c85662116
1 #!/usr/bin/env python
3 # This example demonstrates a node group configuration. Is it meant
4 # to be the same as node_group_simple.py, but with a couple of nodes
5 # added later, so they are listed after the management node.
7 # When run with deterministic IPs (use "-d" to show the problem) it
8 # does many gratuitous IP reassignments.
10 from ctdb_takeover import Cluster, Node, process_args
12 process_args()
14 addresses1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] + ['P', 'Q', 'R', 'S', 'T', 'U']
15 addresses2 = ['I', 'J', 'K', 'L']
17 c = Cluster()
19 for i in range(4):
20 c.add_node(Node(addresses1))
22 for i in range(3):
23 c.add_node(Node(addresses2))
25 c.add_node(Node([]))
26 c.add_node(Node(addresses1))
27 c.add_node(Node(addresses2))
29 c.recover()
31 c.random_iterations()