]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
shrink-osd: (ceph-disk only) remove prepare container v3.2.19
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Jul 2019 11:12:54 +0000 (13:12 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 9 Jul 2019 13:04:19 +0000 (09:04 -0400)
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>
infrastructure-playbooks/shrink-osd-ceph-disk.yml

index 636a745a33d62594c90e1f877bbfb52ee018d6f0..c889f5f99e2dc9e788855ab3deeb022dc10778ac 100644 (file)
       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) }}