]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: zap devices used with the lvm scenario
authorAndrew Schoen <aschoen@redhat.com>
Fri, 21 Sep 2018 19:46:30 +0000 (14:46 -0500)
committerSébastien Han <seb@redhat.com>
Fri, 28 Sep 2018 12:49:56 +0000 (14:49 +0200)
Fixes: https://github.com/ceph/ceph-ansible/issues/3156
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index 7e05ee86437b9ff15c0e61f39fc74c815c5b4703..7e63b927e4e65c832a77aaef2e064b43b11a52c7 100644 (file)
     failed_when: false
     register: ceph_lockbox_partition_to_erase_path
 
-  - name: zap and destroy OSDs created by ceph-volume
+  - name: zap and destroy osds created by ceph-volume with lvm_volumes
     ceph_volume:
       data: "{{ item.data }}"
       data_vg: "{{ item.data_vg|default(omit) }}"
     when:
       - osd_scenario == "lvm"
 
+  - name: zap and destroy osds created by ceph-volume with devices
+    ceph_volume:
+      data: "{{ item }}"
+      action: "zap"
+    environment:
+      CEPH_VOLUME_DEBUG: 1
+    with_items: "{{ devices | default([]) }}"
+    when:
+      - osd_scenario == "lvm"
+
   - name: get ceph block partitions
     shell: |
       blkid -o device -t PARTLABEL="ceph block"