From 1f7ebd90d0b17fdaa03537897d2114dbf69463b4 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Mon, 26 Aug 2019 15:20:28 +0200 Subject: [PATCH] TT#63466 Ensure sp1<->sp2 and db->prx replications are using GTID On early upgrades mr5.5->mr6.5 GTID was not reconfigured on the very first upgraded node... It is a test to ensure we have covered all the upgrade scenarios. Change-Id: I40433f536402c52b582911fc18bd4021ed050bbf --- templates/930_service-mariadb.yaml.tt2 | 23 +++++++++++++++++++++++ templates/goss.yaml.tt2 | 1 + 2 files changed, 24 insertions(+) create mode 100644 templates/930_service-mariadb.yaml.tt2 diff --git a/templates/930_service-mariadb.yaml.tt2 b/templates/930_service-mariadb.yaml.tt2 new file mode 100644 index 0000000..13a8190 --- /dev/null +++ b/templates/930_service-mariadb.yaml.tt2 @@ -0,0 +1,23 @@ +[% + hostname = ngcp.get_hostname(); + + is_proxy = ngcp.has_role(hostname, 'proxy'); +-%] +command: + + grep using_gtid=2 /ngcp-data/mysql/master.info: + exit-status: 0 + stdout: + - "/using_gtid=2/" + stderr: [] + timeout: 10000 + +[% IF general.ngcp_type == 'carrier' && is_proxy -%] + grep using_gtid=2 /ngcp-data/mysql2/master-db01*.info: + exit-status: 0 + stdout: + - "/using_gtid=2/" + stderr: [] + timeout: 10000 + +[% END -%] diff --git a/templates/goss.yaml.tt2 b/templates/goss.yaml.tt2 index a35b642..502c68c 100644 --- a/templates/goss.yaml.tt2 +++ b/templates/goss.yaml.tt2 @@ -40,4 +40,5 @@ gossfile: 911_service-grafana.yaml: {} [% IF general.ngcp_type != 'spce' -%] 920_service-asterisk-odbc-pro.yaml: {} + 930_service-mariadb.yaml: {} [% END -%]