From 60bc1e38db0e797ad6553584927f86486ae09c19 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Sat, 13 Oct 2018 10:42:18 +0200 Subject: [PATCH] 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 --- roles/ceph-handler/handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)