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
23 ctdb_restart_when_done
25 select_test_node_and_ips
26 get_test_ip_mask_and_iface
28 echo "Checking that node ${test_node} hosts ${test_ip} on interface ${iface}..."
29 try_command_on_node
$test_node "ip addr show dev $iface | grep -E 'inet6?[[:space:]]*${test_ip}/'"
31 echo "Attempting to remove ${test_ip} from node ${test_node}."
32 try_command_on_node
$test_node $CTDB delip
$test_ip
33 wait_until_ips_are_on_node
'!' $test_node $test_ip
38 echo "Waiting for ${test_ip} to disappear from ${iface}..."
40 try_command_on_node
-v $test_node "ip addr show dev $iface"
41 if echo "$out" |
grep -E 'inet6?[[:space:]]*${test_ip}/'; then
43 if [ $
(($count * $increment)) -ge $timeout ] ; then
44 echo "BAD: Timed out waiting..."
54 echo "GOOD: IP was successfully removed!"