6 Verify that 'ctdb getvar' works correctly.
8 Expands on the steps below as it actually checks the values of all
9 variables listed by 'ctdb listvars'.
13 * An active CTDB cluster with at least 2 active nodes.
17 1. Verify that the status on all of the ctdb nodes is 'OK'.
18 2. Run 'ctdb getvars <varname>' with a valid variable name (possibly
19 obtained via 'ctdb listvars'.
20 3. Verify that the command displays the correct value of the variable
21 (corroborate with the value shown by 'ctdb listvars'.
25 * 'ctdb getvar' shows the correct value of the variable.
29 .
"${TEST_SCRIPTS_DIR}/integration.bash"
37 try_command_on_node
-v 0 "$CTDB listvars"
39 echo "Veryifying all variable values using \"ctdb getvar\"..."
42 while read var x val
; do
43 try_command_on_node
0 "$CTDB getvar $var"
47 if [ "$val" != "$val2" ] ; then
48 echo "MISMATCH on $var: $val != $val2"