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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 617dce5e10bfb2e309b043124999c8f32ebdaf4f)

roles/ceph-facts/tasks/facts.yml

index 09d96f0769ad88871587cec8a1b42f8a45814475..4b35971528cf272b8f1cede307dac91676ab10c0 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"