From: wumingqiao Date: Wed, 15 May 2019 07:27:21 +0000 (+0800) Subject: shrink_osd: mark all osd(s) out in one command X-Git-Tag: v5.0.0alpha1~343 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5320aa11c4fdd568fe4d123907633696412a080a;p=ceph-ansible.git shrink_osd: mark all osd(s) out in one command Signed-off-by: wumingqiao --- diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index edf78194e..6ec5ef0fa 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -87,10 +87,9 @@ with_items: "{{ find_osd_hosts.results }}" - name: mark osd(s) out of the cluster - command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd out {{ item }}" + command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd out {{ osd_to_kill.replace(',', ' ') }}" run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" - with_items: "{{ osd_to_kill.split(',') }}" - name: stop osd(s) service service: