6 Verify 'ctdb freeze' works correctly.
8 This is a superficial test that simply checks that 'ctdb statistics'
9 reports the node becomes frozen. No checks are done to ensure that
10 client access to databases is blocked.
14 * An active CTDB cluster with at least 2 active nodes.
18 1. Verify that the status on all of the ctdb nodes is 'OK'.
19 2. Use 'ctdb freeze -n <node>' to freeze the databases on one of the
21 3. Run 'ctdb statistics' to verify that 'frozen' has the value '1' on
26 * When the database is frozen, the 'frozen' variable in the
27 'ctdb statistics' output is set to 1 on the node.
31 . ctdb_test_functions.bash
40 ctdb_restart_when_done
44 echo "Freezing node $test_node"
46 try_command_on_node 0 $CTDB freeze -n $test_node
48 wait_until_node_has_status $test_node frozen