6 Verify that 'ctdb getdebug' works as expected.
10 * An active CTDB cluster with at least 2 active nodes.
14 1. Verify that the status on all of the ctdb nodes is 'OK'.
15 2. Get the current debug level on a node, using 'ctdb getdebug -n <node>'.
19 * 'ctdb getdebug' shows the debug level on all the nodes.
23 . "${TEST_SCRIPTS_DIR}/integration.bash"
31 try_command_on_node 0 "$CTDB listnodes | wc -l"
34 try_command_on_node -v 1 "onnode -q all $CTDB getdebug"
35 getdebug_onnode="$out"
39 '^(ERROR|WARNING|NOTICE|INFO|DEBUG)$' \
44 while [ $n -lt $num_nodes ] ; do
45 cmd="${cmd}${cmd:+; }$CTDB getdebug -n $n"
48 try_command_on_node -v 1 "$cmd"
51 if [ "$getdebug_onnode" = "$getdebug_n" ] ; then
52 echo "They're the same... cool!"
54 die "Error: they differ."
61 t=$(echo "$line" | sed -r -e 's@Node [[:digit:]]+ is at debug level ([[:alpha:]]+) \((-?[[:digit:]]+)\)$@\|\1\|\2|@')
62 seps="${seps}${seps:+${nl}}|Name|Level|${nl}${t}"
63 done <<<"$getdebug_onnode"