From: Guillaume Abrioux Date: Wed, 19 Jun 2019 13:07:24 +0000 (+0200) Subject: upgrade: accept HEALTH_OK and HEALTH_WARN as valid state X-Git-Tag: v4.0.0rc10~46 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=77d24203fa61f16c5e70a5d7b6a9b4225f76356d;p=ceph-ansible.git upgrade: accept HEALTH_OK and HEALTH_WARN as valid state 3a100cfa5265b3a5327ef6a8d382a8059391b903 introduced a check which is a bit too restrictive, let's accept HEALTH_OK and HEALTH_WARN. Signed-off-by: Guillaume Abrioux (cherry picked from commit 6dce51183bda78e2d7ce689c5e0a7bb2f9629f47) --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 6663e61de..3f0b8d713 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -118,7 +118,7 @@ - name: fail if cluster isn't in an acceptable state fail: msg: "cluster is not in an acceptable state!" - when: not (check_cluster_status.stdout | from_json).health.status == 'HEALTH_OK' + when: (check_cluster_status.stdout | from_json).health.status == 'HEALTH_ERR' when: inventory_hostname == groups[mon_group_name] | first - name: ensure /var/lib/ceph/bootstrap-rbd-mirror is present