Add check for galera clustercheck password presence
Related-Prod: PROD-35705
Change-Id: Iaca788558c9a2773db8aa5de695d9b25db2c6a91
diff --git a/upgrade-mcp-release.groovy b/upgrade-mcp-release.groovy
index 9d3981b..eb53100 100644
--- a/upgrade-mcp-release.groovy
+++ b/upgrade-mcp-release.groovy
@@ -247,6 +247,14 @@
}
}
+def check_35705(String cluster_name) {
+ def galeracheckpasswordPillar = salt.getPillar(venvPepper, 'I@salt:master', '_param:galera_clustercheck_password').get("return")[0].values()[0]
+ if (galeracheckpasswordPillar == '' || galeracheckpasswordPillar == 'null' || galeracheckpasswordPillar == null) {
+ error('Galera clustercheck password is not defined.\n' +
+ 'See https://docs.mirantis.com/mcp/q4-18/mcp-release-notes/mu/mu-12/mu-12-addressed/mu-12-dtrain/mu-12-dt-manual.html#improper-operation-of-galera-ha for more info')
+ }
+}
+
def wa32182(String cluster_name) {
if (salt.testTarget(venvPepper, 'I@opencontrail:control or I@opencontrail:collector')) {
def clusterModelPath = "/srv/salt/reclass/classes/cluster/${cluster_name}"
@@ -659,6 +667,7 @@
fullRefreshOneByOne(venvPepper, allMinions)
check_34406(cluster_name)
+ check_35705(cluster_name)
common.infoMsg('Perform: Validate reclass medata before processing')
validateReclassModel(minions, 'before')