From 5320aa11c4fdd568fe4d123907633696412a080a Mon Sep 17 00:00:00 2001 From: wumingqiao Date: Wed, 15 May 2019 15:27:21 +0800 Subject: [PATCH] shrink_osd: mark all osd(s) out in one command Signed-off-by: wumingqiao --- infrastructure-playbooks/shrink-osd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: