mirror of https://github.com/ceph/ceph-ansible.git
handler: fix osd containers handler
`ceph_osd_container_stat` might not be set on other osd node. We must ensure we are on the last node before trying to evaluate `ceph_osd_container_stat`. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/3230/head
parent
40b7747af7
commit
60bc1e38db
|
@ -105,8 +105,8 @@
|
||||||
- osd_group_name in group_names
|
- osd_group_name in group_names
|
||||||
- containerized_deployment
|
- containerized_deployment
|
||||||
- not rolling_update
|
- not rolling_update
|
||||||
- ceph_osd_container_stat.get('rc') == 0
|
|
||||||
- inventory_hostname == groups.get(osd_group_name) | last
|
- inventory_hostname == groups.get(osd_group_name) | last
|
||||||
|
- ceph_osd_container_stat.get('rc') == 0
|
||||||
- ceph_osd_container_stat.get('stdout_lines', [])|length != 0
|
- ceph_osd_container_stat.get('stdout_lines', [])|length != 0
|
||||||
- handler_health_osd_check
|
- handler_health_osd_check
|
||||||
- hostvars[item]['_osd_handler_called'] | default(False)
|
- hostvars[item]['_osd_handler_called'] | default(False)
|
||||||
|
|
Loading…
Reference in New Issue