Skip to content

Commit 1dcc072

Browse files
committed
facts: fix mgr/mon collocation
`service dump` hangs when no active mgr is available. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
1 parent af5b3f5 commit 1dcc072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/ceph-facts/tasks/facts.yml

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
when:
185185
- (inventory_hostname in groups.get(rgw_group_name, []) or inventory_hostname in groups.get(nfs_group_name, []))
186186
- groups.get(mon_group_name, []) | length > 0
187+
- handler_mgr_status | default(False)
187188
block:
188189
- name: get ceph current status
189190
command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json"

0 commit comments

Comments
 (0)