]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: fix mon/mgr collocation
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Apr 2022 21:39:12 +0000 (23:39 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 21 Apr 2022 08:12:08 +0000 (10:12 +0200)
`service dump` hangs when no active mgr is available.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-facts/tasks/facts.yml

index be318de3c1beb8064491c6b02357d4d087e9fbf3..ae1a2dc0897b46cf4b30b2c2a4d3b9c81fef4ed3 100644 (file)
   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"