Test suite: Fix debug code for unexpectedly unhealthy cluster.
authorMartin Schwenke <martin@meltin.net>
Thu, 16 Jul 2009 04:04:06 +0000 (14:04 +1000)
committerMartin Schwenke <martin@meltin.net>
Thu, 16 Jul 2009 04:04:06 +0000 (14:04 +1000)
The debug code should run "ctdb status" on a cluster node, not on the
test client.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/scripts/ctdb_test_functions.bash

index b84fe7224ef604390ecc9957f77828d4a0c98574..6506730f7465695a7089769a2e315555524a5dd4 100644 (file)
@@ -342,7 +342,7 @@ cluster_is_healthy ()
        if ! ${ctdb_test_restart_scheduled:-false} ; then
            echo "DEBUG:"
            local i
-           for i in "ctdb status" "onnode -q 0 onnode all ctdb scriptstatus" ; do
+           for i in "onnode -q 0 ctdb status" "onnode -q 0 onnode all ctdb scriptstatus" ; do
                echo "$i"
                $i || true
            done
@@ -527,7 +527,7 @@ tcpdump_wait ()
     if ! wait_until 30 tcpdump_check ; then
        echo "DEBUG:"
        local i
-       for i in "ctdb status" "netstat -tanp" "tcpdump -n -e -r $tcpdump_filename" ; do
+       for i in "onnode -q 0 ctdb status" "netstat -tanp" "tcpdump -n -e -r $tcpdump_filename" ; do
            echo "$i"
            $i || true
        done