summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/takeover/mgmt_simple.py
blob: f891199655ab6ef4d48135072947151b2e8f94d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

# This is an example showing a current SONAS configuration with 3
# interface node and a management node.  When run with deterministic
# IPs there are gratuitous IP reassignments.

from ctdb_takeover import Cluster, Node, process_args

process_args()

addresses = ['A', 'B', 'C', 'D', 'E', 'F', 'G']

c = Cluster()

for i in range(3):
    c.add_node(Node(addresses))

c.add_node(Node([]))

c.recover()

c.random_iterations()