From d9feaf8ade23e8c85981a00695af117cc083aafa Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 19 Apr 2022 23:36:08 +0200 Subject: [PATCH] facts: fix mgr/mon collocation `service dump` hangs when no active mgr is available. Signed-off-by: Guillaume Abrioux --- roles/ceph-facts/tasks/facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 09d96f076..4b3597152 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -211,6 +211,7 @@ when: - (inventory_hostname in groups.get(rgw_group_name, []) or inventory_hostname in groups.get(nfs_group_name, [])) - groups.get(mon_group_name, []) | length > 0 + - handler_mgr_status | default(False) block: - name: get ceph current status command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json"