From: Guillaume Abrioux Date: Sat, 13 Oct 2018 08:42:18 +0000 (+0200) Subject: handler: fix osd containers handler X-Git-Tag: v3.2.0beta6~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=60bc1e38db0e797ad6553584927f86486ae09c19;p=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 --- diff --git a/roles/ceph-handler/handlers/main.yml b/roles/ceph-handler/handlers/main.yml index bc6732eb0..95132e6cb 100644 --- a/roles/ceph-handler/handlers/main.yml +++ b/roles/ceph-handler/handlers/main.yml @@ -105,8 +105,8 @@ - osd_group_name in group_names - containerized_deployment - not rolling_update - - ceph_osd_container_stat.get('rc') == 0 - inventory_hostname == groups.get(osd_group_name) | last + - ceph_osd_container_stat.get('rc') == 0 - ceph_osd_container_stat.get('stdout_lines', [])|length != 0 - handler_health_osd_check - hostvars[item]['_osd_handler_called'] | default(False)