From 679d3e2d10afeca5906b22a8222d7438df95336d Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 26 Nov 2020 09:53:04 +0100 Subject: [PATCH] osd: add tag on 'wait for all osd to be up' task This allows skipping this task if really desired. Use it carefully. Use it at your own risk. Fixes: #6073 Signed-off-by: Guillaume Abrioux (cherry picked from commit 5c4ae5356d9ae10573d699236897969052f77823) --- roles/ceph-osd/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index fc6d6a2d4..9e683bc3f 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -88,10 +88,12 @@ when: - not ansible_check_mode - inventory_hostname == ansible_play_hosts_all | last + tags: wait_all_osds_up - name: include crush_rules.yml include_tasks: crush_rules.yml when: hostvars[groups[mon_group_name][0]]['crush_rule_config'] | default(crush_rule_config) | bool + tags: wait_all_osds_up # Create the pools listed in openstack_pools - name: include openstack_config.yml @@ -101,3 +103,4 @@ - not rolling_update | default(False) | bool - openstack_config | bool - inventory_hostname == groups[osd_group_name] | last + tags: wait_all_osds_up \ No newline at end of file -- 2.39.5