Check insecure global id reclaim setting before and after upgrade.

PROD-36942

Change-Id: I2065ec7eda16f06c3c5c333e64be33d9b7f6f49a
diff --git a/ceph-upgrade.groovy b/ceph-upgrade.groovy
index a0d6a1f..d323f1d 100644
--- a/ceph-upgrade.groovy
+++ b/ceph-upgrade.groovy
@@ -26,6 +26,7 @@
 salt = new com.mirantis.mk.Salt()
 def python = new com.mirantis.mk.Python()
 ceph = new com.mirantis.mk.Ceph()
+upgradeChecks = new com.mirantis.mcp.UpgradeChecks()
 askConfirmation = (env.getProperty('ASK_CONFIRMATION') ?: true).toBoolean()
 
 pepperEnv = "pepperEnv"
@@ -191,6 +192,10 @@
             }
         }
 
+        stage('Pre-validate cluster model settings'){
+            upgradeChecks.check_36461_2(salt, pepperEnv, "", true)
+        }
+
         if (BACKUP_ENABLED.toBoolean() == true) {
             if (STAGE_UPGRADE_MON.toBoolean() == true) {
                 backup(pepperEnv, 'mon')
@@ -259,5 +264,12 @@
         if (WAIT_FOR_HEALTHY.toBoolean()) {
             ceph.waitForHealthy(pepperEnv, flags)
         }
+        stage('Post-upgrade cluster model settings validation'){
+            def checkResult = upgradeChecks.check_36461_2(salt, pepperEnv, "", false)
+            common.warningMsg(checkResult.isFixed)
+            if ( checkResult.waInfo != '') {
+                common.warningMsg(checkResult.waInfo)
+            }
+        }
     }
 }