]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
upgrade: accept HEALTH_OK and HEALTH_WARN as valid state
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jun 2019 13:07:24 +0000 (15:07 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 Jun 2019 15:47:33 +0000 (15:47 +0000)
3a100cfa5265b3a5327ef6a8d382a8059391b903 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>
(cherry picked from commit 6dce51183bda78e2d7ce689c5e0a7bb2f9629f47)

infrastructure-playbooks/rolling_update.yml

index 6663e61de69874f2dbf8833b7ea9c3e7c5ec358d..3f0b8d7139841c4361da254620aaeae0e6884ffd 100644 (file)
             - 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