mirror of https://github.com/ceph/ceph-ansible.git
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
parent
4b49013369
commit
d739f41549
|
@ -177,6 +177,15 @@
|
||||||
when:
|
when:
|
||||||
- containerized_deployment
|
- 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
|
- name: zap ceph osd partitions from dedicated devices
|
||||||
shell: |
|
shell: |
|
||||||
for osd in {{ ' '.join(item.1.stdout_lines) }}
|
for osd in {{ ' '.join(item.1.stdout_lines) }}
|
||||||
|
|
Loading…
Reference in New Issue