Test suite: better debug info when the cluster is unexpectedly unhealthy.
authorMartin Schwenke <martin@meltin.net>
Mon, 6 Jul 2009 07:52:11 +0000 (17:52 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 7 Jul 2009 23:45:35 +0000 (09:45 +1000)
commitb67946a6f6b185a7920bf1e560988417c8c4d87d
tree14e399490b1eebd49667f131885ffb891a7db531
parent3f7a4afa0fcc5825beb89267973939df8cde4999
Test suite: better debug info when the cluster is unexpectedly unhealthy.

cluster_is_healthy() is now run locally in tests and internally causes
_cluster_is_healthy() to be run on node 0.  When it detects that the
cluster is unhealthy and $ctdb_test_restart_scheduled is not true,
debug information is printed.  This replaces the previous use of
$CTDB_TEST_CLEANING_UP.

To avoid spurious debug on expected restarts, added scheduled
restarts to several tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
40 files changed:
tests/complex/31_nfs_tickle.sh
tests/complex/32_cifs_tickle.sh
tests/complex/33_gratuitous_arp.sh
tests/complex/41_failover_ping_discrete.sh
tests/complex/42_failover_ssh_hostname.sh
tests/scripts/ctdb_test_functions.bash
tests/simple/01_ctdb_version.sh
tests/simple/02_ctdb_listvars.sh
tests/simple/03_ctdb_getvar.sh
tests/simple/04_ctdb_setvar.sh
tests/simple/05_ctdb_listnodes.sh
tests/simple/06_ctdb_getpid.sh
tests/simple/07_ctdb_process_exists.sh
tests/simple/08_ctdb_isnotrecmaster.sh
tests/simple/09_ctdb_ping.sh
tests/simple/11_ctdb_ip.sh
tests/simple/12_ctdb_getdebug.sh
tests/simple/13_ctdb_setdebug.sh
tests/simple/14_ctdb_statistics.sh
tests/simple/15_ctdb_statisticsreset.sh
tests/simple/16_ctdb_config_add_ip.sh
tests/simple/17_ctdb_config_delete_ip.sh
tests/simple/18_ctdb_freeze.sh
tests/simple/19_ctdb_thaw.sh
tests/simple/20_ctdb_getmonmode.sh
tests/simple/21_ctdb_disablemonitor.sh
tests/simple/22_ctdb_enablemonitor.sh
tests/simple/23_ctdb_moveip.sh
tests/simple/24_ctdb_getdbmap.sh
tests/simple/25_dumpmemory.sh
tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh
tests/simple/31_ctdb_disable.sh
tests/simple/32_ctdb_enable.sh
tests/simple/41_ctdb_ban.sh
tests/simple/42_ctdb_unban.sh
tests/simple/51_ctdb_bench.sh
tests/simple/52_ctdb_fetch.sh
tests/simple/53_ctdb_transaction.sh
tests/simple/61_ctdb_persistent_safe.sh
tests/simple/62_ctdb_persistent_unsafe.sh