From 9ed540da7e6ec652a6162cf9d1aa14b513b52859 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 13 Jan 2020 16:31:00 +0100 Subject: [PATCH] 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) --- roles/ceph-osd/tasks/start_osds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: