From def3801fcb4feadd30d9a858b8a543ab8ce923b7 Mon Sep 17 00:00:00 2001 From: Sofer Athlan-Guyot Date: Mon, 26 Sep 2016 15:36:29 +0200 Subject: Fix ignore warning on ceph major upgrade. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extraconfig/tasks') diff --git a/extraconfig/tasks/major_upgrade_ceph_mon.sh b/extraconfig/tasks/major_upgrade_ceph_mon.sh index 21a2b5bc..b633e658 100755 --- a/extraconfig/tasks/major_upgrade_ceph_mon.sh +++ b/extraconfig/tasks/major_upgrade_ceph_mon.sh @@ -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; -- cgit 1.2.3-korg