Replace 'service mysql reload' with
'systemctl restart mysql' in MySQL upgrade pipeline
In version 5.7 of MySQL file /etc/init.d/mysql
is missing so reload command doesn’t work. Systemd used instead
PROD-36756
Change-Id: I96fe4a0125efae8413def4a64fa67b5106de3d16
(cherry picked from commit 10d70fdd34df548302867e415fc1c66dd47b8d88)
diff --git a/openstack-galera-upgrade.groovy b/openstack-galera-upgrade.groovy
index f124051..05cb6b8 100644
--- a/openstack-galera-upgrade.groovy
+++ b/openstack-galera-upgrade.groovy
@@ -190,7 +190,7 @@
if (shutdownCluster) {
openstack.runOpenStackUpgradePhase(env, masterNode, 'render_config')
- salt.cmdRun(env, masterNode, "service mysql reload")
+ salt.cmdRun(env, masterNode, "systemctl restart mysql")
openstack.runOpenStackUpgradePhase(env, masterNode, 'verify')
}