6 Verify that a node's public IP address can be deleted using 'ctdb deleteip'.
8 This is an extended version of simple/17_ctdb_config_delete_ip.sh
12 . "${TEST_SCRIPTS_DIR}/integration.bash"
18 ctdb_test_check_real_cluster
22 select_test_node_and_ips
23 get_test_ip_mask_and_iface
25 echo "Checking that node ${test_node} hosts ${test_ip}..."
26 try_command_on_node $test_node "ip addr show to ${test_ip} | grep -q ."
28 echo "Attempting to remove ${test_ip} from node ${test_node}."
29 try_command_on_node $test_node $CTDB delip $test_ip
30 try_command_on_node $test_node $CTDB ipreallocate
31 wait_until_ips_are_on_node '!' $test_node $test_ip
36 echo "Waiting for ${test_ip} to disappear from node ${test_node}..."
38 try_command_on_node -v $test_node "ip addr show to ${test_node}"
41 if [ $(($count * $increment)) -ge $timeout ] ; then
42 echo "BAD: Timed out waiting..."
52 echo "GOOD: IP was successfully removed!"