tests/takeover: Allow takeover runs with differing IP allocations per node
[vlendec/samba-autobuild/.git] / ctdb / tests / takeover / lcp2.024.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, no IPs assigned, all healthy, all in STARTUP runstate"
6
7 export CTDB_TEST_LOGLEVEL=2
8
9 required_result <<EOF
10 DATE TIME [PID]: Failed to find node to cover ip 192.168.21.254
11 DATE TIME [PID]: Failed to find node to cover ip 192.168.21.253
12 DATE TIME [PID]: Failed to find node to cover ip 192.168.21.252
13 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.254
14 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.253
15 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.252
16 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.251
17 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.250
18 DATE TIME [PID]: Failed to find node to cover ip 192.168.20.249
19 192.168.21.254 -1
20 192.168.21.253 -1
21 192.168.21.252 -1
22 192.168.20.254 -1
23 192.168.20.253 -1
24 192.168.20.252 -1
25 192.168.20.251 -1
26 192.168.20.250 -1
27 192.168.20.249 -1
28 EOF
29
30 export CTDB_TEST_RUNSTATE=4,4,4
31
32 simple_test 0,0,0 <<EOF
33 192.168.21.254 -1
34 192.168.21.253 -1
35 192.168.21.252 -1
36 192.168.20.254 -1
37 192.168.20.253 -1
38 192.168.20.252 -1
39 192.168.20.251 -1
40 192.168.20.250 -1
41 192.168.20.249 -1
42 EOF