ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / takeover / lcp2.022.sh
blob52ac6ea4ce346dbac865d294018852dc1b2eba78
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, 2->3 unhealthy, all IPs assigned, NoIPTakeover"
7 export CTDB_TEST_LOGLEVEL=ERR
9 # We expect the IPs stay where they are (as opposed to
10 # NoIPHostOnAllDisabled). IPs are hosted when all nodes are disabled,
11 # but they have nowhere else to go because of NoIPTakeover.
12 required_result <<EOF
13 192.168.21.254 2
14 192.168.21.253 2
15 192.168.21.252 2
16 192.168.20.254 2
17 192.168.20.253 2
18 192.168.20.252 2
19 192.168.20.251 2
20 192.168.20.250 2
21 192.168.20.249 2
22 EOF
24 export CTDB_SET_NoIPTakeover=1
26 simple_test 2,2,2 <<EOF
27 192.168.21.254 2
28 192.168.21.253 2
29 192.168.21.252 2
30 192.168.20.254 2
31 192.168.20.253 2
32 192.168.20.252 2
33 192.168.20.251 2
34 192.168.20.250 2
35 192.168.20.249 2
36 EOF