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: v5.0.0alpha1~259 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6dce51183bda78e2d7ce689c5e0a7bb2f9629f47;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 --- 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