ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / takeover_helper / 210.sh
blobeacf0242a3f16be2d109ad8a027e28f1766e1f55
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, all ok, no IPs, IPREALLOCATED timeout"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x0 CURRENT RECMASTER
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0
13 CONTROLFAILS
14 137 1 TIMEOUT CTDB_CONTROL_IPREALLOCATED fake timeout
16 EOF
18 required_error ETIMEDOUT <<EOF
19 No nodes available to host public IPs yet
20 IPREALLOCATED failed on node 1, ret=$(errcode ETIMEDOUT)
21 Assigning banning credits to node 1
22 takeover run failed, ret=$(errcode ETIMEDOUT)
23 EOF
24 test_takeover_helper
26 required_result 0 <<EOF
27 Public IPs on ALL nodes
28 EOF
29 test_ctdb_ip_all