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
Guillaume Abrioux 2018-10-13 10:42:18 +02:00 committed by Sébastien Han
parent 40b7747af7
commit 60bc1e38db
1 changed files with 1 additions and 1 deletions

View File

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