From cb05199bac88673670cad7697ad0e26e09e9998d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 5 Jul 2018 21:03:57 +0300 Subject: [PATCH] Stop MaxScale before fixing replication Before the state of the backend servers is checked, MaxScale needs to be stopped to prevent the automated failover from interfering in the start-up process. --- maxscale-system-test/testconnections.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 7515b8232..194a804da 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -238,6 +238,15 @@ TestConnections::TestConnections(int argc, char *argv[]): maxscales->use_ipv6 = use_ipv6; maxscales->ssl = ssl; + // Stop MaxScale to prevent it from interfering with the replication setup process + if (!maxscale::manual_debug) + { + for (int i = 0; i < maxscales->N; i++) + { + maxscales->stop(i); + } + } + if (maxscale::required_repl_version.length()) { int ver_repl_required = get_int_version(maxscale::required_repl_version); @@ -643,11 +652,6 @@ void TestConnections::init_maxscale(int m) { const char * template_name = get_template_name(test_name); - if (!maxscale::manual_debug) - { - stop_maxscale(m); - } - process_template(m, template_name, maxscales->access_homedir[m]); maxscales->ssh_node_f(m, true, "cp maxscale.cnf %s;rm -rf %s/certs;mkdir -m a+wrx %s/certs;",