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"
20 if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
21 echo "SKIPPING this test - only runs against local daemons"
25 echo "Starting CTDB with failover disabled..."
26 ctdb_test_init --disable-failover
30 echo "Getting IP allocation..."
31 try_command_on_node -v any "$CTDB ip all | tail -n +2"
33 while read ip pnn ; do
34 if [ "$pnn" != "-1" ] ; then
35 die "BAD: IP address ${ip} is assigned to node ${pnn}"
41 echo "GOOD: All IP addresses are unassigned"
43 echo "----------------------------------------"
45 echo "Starting CTDB with an empty public addresses configuration..."
46 ctdb_test_init --no-public-addresses
50 echo "Trying explicit ipreallocate..."
51 try_command_on_node any $CTDB ipreallocate
53 echo "Good, that seems to work!"