Merge "Optionally fail ceph-health if HEALTH_WARN" into stable/ussuri
This commit is contained in:
commit
b2fc548882
|
@ -2,6 +2,7 @@
|
||||||
fail_without_ceph_ansible: false
|
fail_without_ceph_ansible: false
|
||||||
fail_without_deps: false
|
fail_without_deps: false
|
||||||
fail_on_ceph_health_err: false
|
fail_on_ceph_health_err: false
|
||||||
|
fail_on_ceph_health_warn: false
|
||||||
osd_percentage_min: 0
|
osd_percentage_min: 0
|
||||||
ceph_ansible_repo: "centos-ceph-nautilus"
|
ceph_ansible_repo: "centos-ceph-nautilus"
|
||||||
container_client: "podman"
|
container_client: "podman"
|
||||||
|
|
|
@ -53,6 +53,13 @@
|
||||||
- ceph_health.stdout != 'HEALTH_OK'
|
- ceph_health.stdout != 'HEALTH_OK'
|
||||||
- not fail_on_ceph_health_err|default(true)|bool
|
- not fail_on_ceph_health_err|default(true)|bool
|
||||||
|
|
||||||
|
- name: Fail if ceph health is HEALTH_WARN
|
||||||
|
fail:
|
||||||
|
msg: Ceph is in {{ ceph_health.stdout }} state.
|
||||||
|
when:
|
||||||
|
- ceph_health.stdout == 'HEALTH_WARN'
|
||||||
|
- fail_on_ceph_health_warn|default(false)|bool
|
||||||
|
|
||||||
- name: Fail if ceph health is HEALTH_ERR
|
- name: Fail if ceph health is HEALTH_ERR
|
||||||
fail:
|
fail:
|
||||||
msg: Ceph is in {{ ceph_health.stdout }} state.
|
msg: Ceph is in {{ ceph_health.stdout }} state.
|
||||||
|
|
Loading…
Reference in New Issue