From: Guillaume Abrioux Date: Mon, 13 Jan 2020 15:31:00 +0000 (+0100) Subject: osd: ensure osd ids collected are well restarted X-Git-Tag: v4.0.9~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ed540da7e6ec652a6162cf9d1aa14b513b52859;p=ceph-ansible.git osd: ensure osd ids collected are well restarted This commit refact the condition in the loop of that task so all potential osd ids found are well started. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1790212 Signed-off-by: Guillaume Abrioux (cherry picked from commit 58e6bfed2d1c9f6e86fd1a680f26539f539afcd0) --- diff --git a/roles/ceph-osd/tasks/start_osds.yml b/roles/ceph-osd/tasks/start_osds.yml index 46e83d691..3be380638 100644 --- a/roles/ceph-osd/tasks/start_osds.yml +++ b/roles/ceph-osd/tasks/start_osds.yml @@ -40,7 +40,7 @@ enabled: yes masked: no daemon_reload: yes - with_items: "{{ ((ceph_osd_ids.stdout | from_json).keys() | list) if not containerized_deployment else osd_ids_non_container.stdout_lines }}" + with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) + osd_ids_non_container.stdout_lines | default([]) }}" - name: ensure systemd service override directory exists file: