Execute haproxy state earlier in control upgrade
Pre-upgrade requires updated proxy
PROD-36562
Change-Id: I0a3996bbf5ca304af6cf9be6748237fe384263a7
diff --git a/openstack-control-upgrade.groovy b/openstack-control-upgrade.groovy
index 97e4797..14f4c06 100644
--- a/openstack-control-upgrade.groovy
+++ b/openstack-control-upgrade.groovy
@@ -151,6 +151,8 @@
"Above you can find detailed info this pipeline will execute.\nThe info provides brief description of each stage, actions that will be performed and service/workload impact during each stage.\nPlease read it carefully.", "yellow")
}
+ common.infoMsg("Refreshing haproxy config for mysql proxies")
+ salt.enforceState(env, 'I@haproxy:proxy:listen:mysql_cluster', ['haproxy.proxy'])
for (target in upgradeTargets){
common.stageWrapper(upgradeStageMap, "Pre upgrade", target, interactive) {
@@ -167,9 +169,6 @@
}
}
- common.infoMsg("Refreshing haproxy config for mysql proxies")
- salt.enforceState(env, 'I@haproxy:proxy:listen:mysql_cluster', ['haproxy.proxy'])
-
for (target in upgradeTargets) {
common.stageWrapper(upgradeStageMap, "Upgrade OS", target, interactive) {
if (OS_DIST_UPGRADE.toBoolean() == true){