6 Verify that 'ctdb stop' causes a node to yield the recovery master role.
10 * An active CTDB cluster with at least 2 active nodes.
14 1. Determine which node is the recmaster.
15 2. Stop this node using the 'ctdb stop' command.
16 3. Verify that the status of the node changes to 'stopped'.
17 4. Verify that this node no longer has the recovery master role.
21 * The 'ctdb stop' command causes a node to yield the recmaster role.
25 .
"${TEST_SCRIPTS_DIR}/integration.bash"
34 ctdb_restart_when_done
36 echo "Finding out which node is the recovery master..."
37 try_command_on_node
-v 0 "$CTDB recmaster"
40 echo "Stopping node ${test_node} - it is the current recmaster..."
41 try_command_on_node
1 $CTDB stop
-n $test_node
43 wait_until_node_has_status
$test_node stopped
45 echo "Checking which node is the recovery master now..."
46 try_command_on_node
-v 0 "$CTDB recmaster"
49 if [ "$recmaster" != "$test_node" ] ; then
50 echo "OK: recmaster moved to node $recmaster"
52 echo "BAD: recmaster did not move"