Squashed commit of the following:
commit 48a0b902b67da46f1eed4afa687bdcb56b59d02f Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Mon Dec 16 15:35:07 2019 +0200 Increase timouts in the mxs173_trottle_filter test commit 81d8083a89421a8004b8024d480ae0f35d715b86 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Mon Dec 16 14:19:39 2019 +0200 Increase timeouts in max1071_maxrow test commit e1039c6132f0e9274b8801165f3f905ede7c9421 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Mon Dec 16 00:06:53 2019 +0200 Remove hardcoded 'home/vagrant/' from all maxscale.cnf in system tests commit 28c8029e060afdcf5159bf802b13dcd5e484d9f1 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sun Dec 15 21:31:34 2019 +0200 Use private IP for Galera congiguration in maxscale-system-tests commit 66dc36cbf43a5fb92465df31e1295e82865be1fc Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sun Dec 15 09:06:28 2019 +0200 Fix typos in fwf_*.cpp commit 44c7a4384ddf39596c0254c955aeb6c008a00a35 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sun Dec 15 09:05:26 2019 +0200 Fix typos in fwf_*.cpp commit 2649017611908a8b0d27090f49722947ac31c4f4 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sun Dec 15 09:03:41 2019 +0200 Fix typos in fwf_*.cpp commit 5cc87658523e8496eaab17700be8a821af5b0cde Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sat Dec 14 23:54:53 2019 +0200 Fix typo in fwf_copy_rules.cpp commit fb1accc36cb9d79691469f63cb4535f3bc38dedd Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sat Dec 14 23:52:51 2019 +0200 More hardcoded 'vagrant' removals commit 77e49d474b4abe767629ff87b01f08137773d761 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sat Dec 14 23:35:09 2019 +0200 Fix hardcoded 'vagrant' user in fwf* tests Several firewall filter tests has hardcoded 'vagrant' as a user name for access user on the VM. Changed to node->access_user. commit ed5ab1487f37822db6a7478f76c0f3652776c389 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sat Dec 14 22:50:35 2019 +0200 Fix IP vs IP_private Many tests use IP instead of IP_private which makes them failed in the AWS or GCloud environment. The same applies to get_conn_num() etc functions. commit 0558aac23d303a675dc12d05b1766e698753b444 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Thu Aug 15 12:02:01 2019 +0300 fix IP -> IP_private for some mysqlmon* testst commit 5d9c70970d970eb995c8774d0088bd1c54ab76fe Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Sat Dec 14 20:20:51 2019 +0200 Replace IP to IP_private in the maxscale-system-tests commit b06cf3329af59ff100748691991213fe639f29e6 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Tue Nov 19 11:52:33 2019 +0200 Remove spaces from value which were read from *_network_config MDBCI can put spaces around values in the *_network_config file which can cause ssh connection failures in the tests. To fix it removing all spaces from all values which were read from *_network_config commit b3904f019847ef1db9d4ec9714ad9ef869fa0b01 Author: Timofey Turenko <timofey.turenko@mariadb.com> Date: Thu Dec 12 23:36:31 2019 +0200 Increate default timeout for all system tests
This commit is contained in:
@ -775,7 +775,7 @@ void TestConnections::process_template(int m, const char* template_name, const c
|
||||
}
|
||||
else
|
||||
{
|
||||
IPcnf = mdn[j]->IP[i];
|
||||
IPcnf = mdn[j]->IP_private[i];
|
||||
}
|
||||
sprintf(str, "sed -i \"s/###%s_server_IP_%0d###/%s/\" maxscale.cnf",
|
||||
mdn[j]->prefix, i + 1, IPcnf);
|
||||
@ -1131,7 +1131,7 @@ int TestConnections::start_binlog(int m)
|
||||
try_query(repl->nodes[1], "SET @@global.gtid_slave_pos=''");
|
||||
sprintf(sys1,
|
||||
"CHANGE MASTER TO MASTER_HOST='%s', MASTER_PORT=%d, MASTER_USER='repl', MASTER_PASSWORD='repl', MASTER_USE_GTID=Slave_pos",
|
||||
repl->IP[0],
|
||||
repl->IP_private[0],
|
||||
repl->port[0]);
|
||||
try_query(repl->nodes[1], "%s", sys1);
|
||||
try_query(repl->nodes[1], "start slave");
|
||||
@ -1149,7 +1149,7 @@ int TestConnections::start_binlog(int m)
|
||||
// repl->no_set_pos = true;
|
||||
repl->no_set_pos = false;
|
||||
tprintf("Configure first backend slave node to be slave of real master\n");
|
||||
repl->set_slave(repl->nodes[1], repl->IP[0], repl->port[0], log_file, log_pos);
|
||||
repl->set_slave(repl->nodes[1], repl->IP_private[0], repl->port[0], log_file, log_pos);
|
||||
}
|
||||
|
||||
if (!local_maxscale)
|
||||
@ -1176,7 +1176,7 @@ int TestConnections::start_binlog(int m)
|
||||
try_query(binlog, "SET @@global.gtid_slave_pos=''");
|
||||
sprintf(sys1,
|
||||
"CHANGE MASTER TO MASTER_HOST='%s', MASTER_PORT=%d, MASTER_USER='repl', MASTER_PASSWORD='repl', MASTER_USE_GTID=Slave_pos",
|
||||
repl->IP[0],
|
||||
repl->IP_private[0],
|
||||
repl->port[0]);
|
||||
try_query(binlog, "%s", sys1);
|
||||
}
|
||||
@ -1184,7 +1184,7 @@ int TestConnections::start_binlog(int m)
|
||||
{
|
||||
repl->no_set_pos = true;
|
||||
tprintf("configuring Maxscale binlog router\n");
|
||||
repl->set_slave(binlog, repl->IP[0], repl->port[0], log_file, log_pos);
|
||||
repl->set_slave(binlog, repl->IP_private[0], repl->port[0], log_file, log_pos);
|
||||
}
|
||||
// ssl between binlog router and Master
|
||||
if (backend_ssl)
|
||||
@ -1211,7 +1211,7 @@ int TestConnections::start_binlog(int m)
|
||||
try_query(repl->nodes[i], "SET @@global.gtid_slave_pos=''");
|
||||
sprintf(sys1,
|
||||
"CHANGE MASTER TO MASTER_HOST='%s', MASTER_PORT=%d, MASTER_USER='repl', MASTER_PASSWORD='repl', MASTER_USE_GTID=Slave_pos",
|
||||
maxscales->IP[m],
|
||||
maxscales->IP_private[m],
|
||||
maxscales->binlog_port[m]);
|
||||
try_query(repl->nodes[i], "%s", sys1);
|
||||
try_query(repl->nodes[i], "start slave");
|
||||
@ -1234,7 +1234,7 @@ int TestConnections::start_binlog(int m)
|
||||
for (i = 2; i < repl->N; i++)
|
||||
{
|
||||
try_query(repl->nodes[i], "stop slave");
|
||||
repl->set_slave(repl->nodes[i], maxscales->IP[m], maxscales->binlog_port[m], log_file, log_pos);
|
||||
repl->set_slave(repl->nodes[i], maxscales->IP_private[m], maxscales->binlog_port[m], log_file, log_pos);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1274,7 +1274,7 @@ bool TestConnections::replicate_from_master(int m)
|
||||
conn = open_conn_no_db(maxscales->binlog_port[m], maxscales->IP[m], repl->user_name, repl->password, ssl);
|
||||
|
||||
if (find_field(repl->nodes[0], "show master status", "File", log_file)
|
||||
|| repl->set_slave(conn, repl->IP[0], repl->port[0], log_file, log_pos)
|
||||
|| repl->set_slave(conn, repl->IP_private[0], repl->port[0], log_file, log_pos)
|
||||
|| execute_query(conn, "start slave"))
|
||||
{
|
||||
rval = false;
|
||||
@ -1295,7 +1295,7 @@ void TestConnections::revert_replicate_from_master()
|
||||
|
||||
for (int i = 1; i < repl->N; i++)
|
||||
{
|
||||
repl->set_slave(repl->nodes[i], repl->IP[0], repl->port[0], log_file, (char*)"4");
|
||||
repl->set_slave(repl->nodes[i], repl->IP_private[0], repl->port[0], log_file, (char*)"4");
|
||||
execute_query(repl->nodes[i], "start slave");
|
||||
}
|
||||
}
|
||||
@ -1335,8 +1335,8 @@ int TestConnections::start_mm(int m)
|
||||
find_field(repl->nodes[1], (char*) "show master status", (char*) "File", log_file2);
|
||||
find_field(repl->nodes[1], (char*) "show master status", (char*) "Position", log_pos2);
|
||||
|
||||
repl->set_slave(repl->nodes[0], repl->IP[1], repl->port[1], log_file2, log_pos2);
|
||||
repl->set_slave(repl->nodes[1], repl->IP[0], repl->port[0], log_file1, log_pos1);
|
||||
repl->set_slave(repl->nodes[0], repl->IP_private[1], repl->port[1], log_file2, log_pos2);
|
||||
repl->set_slave(repl->nodes[1], repl->IP_private[0], repl->port[0], log_file1, log_pos1);
|
||||
|
||||
repl->close_connections();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user