6 Check that CTDB operates correctly if:
8 * failover is disabled; or
9 * there are 0 public IPs configured
11 This test only does anything with local daemons. On a real cluster it
12 has no way of updating configuration.
16 . "${TEST_SCRIPTS_DIR}/integration.bash"
24 if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
25 echo "SKIPPING this test - only runs against local daemons"
30 ctdb_restart_when_done
32 select_test_node_and_ips
36 echo "Starting CTDB with failover disabled..."
37 setup_ctdb --disable-failover
42 echo "Getting IP allocation..."
43 try_command_on_node -v any "$CTDB ip all | tail -n +2"
45 while read ip pnn ; do
46 if [ "$pnn" != "-1" ] ; then
47 die "BAD: IP address ${ip} is assigned to node ${pnn}"
53 echo "GOOD: All IP addresses are unassigned"
55 echo "----------------------------------------"
58 echo "Starting CTDB with an empty public addresses configuration..."
59 setup_ctdb --no-public-addresses
64 echo "Trying explicit ipreallocate..."
65 try_command_on_node any $CTDB ipreallocate
67 echo "Good, that seems to work!"