]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: wait for all osds once
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 27 Nov 2019 14:29:06 +0000 (09:29 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 Jan 2020 15:54:01 +0000 (16:54 +0100)
cf8c6a3 moves the 'wait for all osds' task from openstack_config to the
main tasks list.
But the openstack_config code was executed only on the last OSD node.
We don't need to do this check on all OSD node so we need to add set
run_once to true on that task.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5bd1cf40eb5823aab3c4e16b60b37c30600f9283)

roles/ceph-osd/tasks/main.yml

index 3c4554aad762e88259d1a8845b3038927f443929..2c03b5370a3d7db5b4c32dc901faa5b283a628db 100644 (file)
@@ -96,6 +96,7 @@
   delay: "{{ delay_wait_osd_up }}"
   changed_when: false
   delegate_to: "{{ groups[mon_group_name][0] }}"
+  run_once: true
   until:
     - (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_osds"] | int > 0
     - (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_osds"] == (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_up_osds"]