From 6dce51183bda78e2d7ce689c5e0a7bb2f9629f47 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 19 Jun 2019 15:07:24 +0200 Subject: [PATCH] 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 --- infrastructure-playbooks/rolling_update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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