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 <gabrioux@redhat.com>
pull/4218/head v3.2.19
Guillaume Abrioux 2019-07-09 13:12:54 +02:00 committed by Dimitri Savineau
parent 4b49013369
commit d739f41549
1 changed files with 9 additions and 0 deletions

View File

@ -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) }}