upgrade: accept HEALTH_OK and HEALTH_WARN as valid state

3a100cfa52 introduced a check which is a
bit too restrictive, let's accept HEALTH_OK and HEALTH_WARN.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/4140/head
Guillaume Abrioux 2019-06-19 15:07:24 +02:00
parent ba73dc7b21
commit 6dce51183b
1 changed files with 1 additions and 1 deletions

View File

@ -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