Fix ignore warning on ceph major upgrade.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Mon, 26 Sep 2016 13:36:29 +0000 (15:36 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Mon, 26 Sep 2016 16:23:18 +0000 (16:23 +0000)
The paramater IgnoreCephUpgradeWarnings is type cast into a boolean
which is rendered as 'True' or 'False' as a string not 'true' or
'false'.  This fix the check.

Change-Id: I8840c384d07f9d185a72bde5f91a3872a321f623
Closes-Bug: 1627736

extraconfig/tasks/major_upgrade_ceph_mon.sh

index 21a2b5b..b633e65 100755 (executable)
@@ -24,7 +24,7 @@ if [ ${CEPH_STATUS} = HEALTH_ERR ]; then
 fi
 
 # Useful when upgrading with OSDs num < replica size
-if [ ${ignore_ceph_upgrade_warnings:-false} != "true" ]; then
+if [[ ${ignore_ceph_upgrade_warnings:-False} != [Tt]rue ]]; then
     timeout 300 bash -c "while [ ${CEPH_STATUS} != HEALTH_OK ]; do
       echo WARNING: Waiting for Ceph cluster status to go HEALTH_OK;
       sleep 30;