ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / takeover / lcp2.029.sh
blob535496301329fcf721ced9fb86305c0a8991bb5f
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "4 nodes, some IPs unassigned on target nodes"
7 export CTDB_TEST_LOGLEVEL=INFO
9 required_result <<EOF
10 ${TEST_DATE_STAMP} 10.19.99.251 -> 2 [+9216]
11 ${TEST_DATE_STAMP} 130.216.30.173 -> 2 [+24345]
12 ${TEST_DATE_STAMP} 130.216.30.171 -> 2 [+39970]
13 130.216.30.181 0
14 130.216.30.180 1
15 130.216.30.179 2
16 130.216.30.178 3
17 130.216.30.177 0
18 130.216.30.176 1
19 130.216.30.175 0
20 130.216.30.174 1
21 130.216.30.173 2
22 130.216.30.172 3
23 130.216.30.171 2
24 130.216.30.170 3
25 10.19.99.253 0
26 10.19.99.252 1
27 10.19.99.251 2
28 10.19.99.250 3
29 EOF
31 # In this example were 4 releases from node 2 in a previous iteration
33 # Release of IP 130.216.30.179/27 on interface ethX1 node:3
34 # Release of IP 130.216.30.173/27 on interface ethX1 node:0
35 # Release of IP 130.216.30.171/27 on interface ethX1 node:1
36 # Release of IP 10.19.99.251/22 on interface ethX2 node:0
38 # However, one release failed so no takeovers were done. This means
39 # that the target node for each IP still thinks that the IPs are held
40 # by node 2. The release of 130.216.30.179 was so late that node 2
41 # still thought that it held that address.
43 simple_test 0,0,0,0 multi <<EOF
44 130.216.30.181 0
45 130.216.30.180 1
46 130.216.30.179 3
47 130.216.30.178 3
48 130.216.30.177 0
49 130.216.30.176 1
50 130.216.30.175 0
51 130.216.30.174 1
52 130.216.30.173 2
53 130.216.30.172 3
54 130.216.30.171 1
55 130.216.30.170 3
56 10.19.99.253 0
57 10.19.99.252 1
58 10.19.99.251 2
59 10.19.99.250 3
61 130.216.30.181 0
62 130.216.30.180 1
63 130.216.30.179 3
64 130.216.30.178 3
65 130.216.30.177 0
66 130.216.30.176 1
67 130.216.30.175 0
68 130.216.30.174 1
69 130.216.30.173 0
70 130.216.30.172 3
71 130.216.30.171 2
72 130.216.30.170 3
73 10.19.99.253 0
74 10.19.99.252 1
75 10.19.99.251 0
76 10.19.99.250 3
78 130.216.30.181 0
79 130.216.30.180 1
80 130.216.30.179 2
81 130.216.30.178 3
82 130.216.30.177 0
83 130.216.30.176 1
84 130.216.30.175 0
85 130.216.30.174 1
86 130.216.30.173 0
87 130.216.30.172 3
88 130.216.30.171 1
89 130.216.30.170 3
90 10.19.99.253 0
91 10.19.99.252 1
92 10.19.99.251 0
93 10.19.99.250 3
95 130.216.30.181 0
96 130.216.30.180 1
97 130.216.30.179 2
98 130.216.30.178 3
99 130.216.30.177 0
100 130.216.30.176 1
101 130.216.30.175 0
102 130.216.30.174 1
103 130.216.30.173 0
104 130.216.30.172 3
105 130.216.30.171 1
106 130.216.30.170 3
107 10.19.99.253 0
108 10.19.99.252 1
109 10.19.99.251 0
110 10.19.99.250 3