ctdb_tests: Reconfigure the cluster when restarting CTDB
authorMartin Schwenke <martin@meltin.net>
Fri, 23 Feb 2018 01:21:23 +0000 (12:21 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 19 Mar 2018 01:23:18 +0000 (02:23 +0100)
The previous test might have made configuration changes, so call
setup_ctdb() to cause the configuration to be rewritten.  This is only
really useful in local daemons tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash

index 7a1938ed50cdbe81e5319616974742e70b791d59..eec9e3b20dff9e506b9bc949ea6456d8c4ef3431 100644 (file)
@@ -44,6 +44,10 @@ ctdb_test_exit ()
     if $ctdb_test_restart_scheduled || ! cluster_is_healthy ; then
        echo "Restarting CTDB (scheduled)..."
        ctdb_stop_all || true  # Might be restarting some daemons were shutdown
+
+       echo "Reconfiguring cluster..."
+       setup_ctdb
+
        ctdb_start_all
     else
        # This could be made unconditional but then we might get