From d739f415497083f28675c4bce5d1b7333adaa424 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 9 Jul 2019 13:12:54 +0200 Subject: [PATCH] shrink-osd: (ceph-disk only) remove prepare container When shrinking an OSD, its corresponding 'prepare container' should be removed otherwise it prevent from redeploying a new osd because of this leftover. Signed-off-by: Guillaume Abrioux --- infrastructure-playbooks/shrink-osd-ceph-disk.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure-playbooks/shrink-osd-ceph-disk.yml b/infrastructure-playbooks/shrink-osd-ceph-disk.yml index 636a745a3..c889f5f99 100644 --- a/infrastructure-playbooks/shrink-osd-ceph-disk.yml +++ b/infrastructure-playbooks/shrink-osd-ceph-disk.yml @@ -177,6 +177,15 @@ when: - containerized_deployment + - name: remove prepare container + command: docker rm ceph-osd-prepare-"{{ hostvars[item.1]['ansible_hostname'] }}"-"{{ item.0.stdout }}" + delegate_to: "{{ item.1 }}" + with_together: + - "{{ resolved_parent_device.results }}" + - "{{ osd_hosts }}" + when: + - containerized_deployment + - name: zap ceph osd partitions from dedicated devices shell: | for osd in {{ ' '.join(item.1.stdout_lines) }} -- 2.47.3