]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Blow away lingering OSD and partition data 430/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 14 Dec 2018 19:53:20 +0000 (14:53 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 14 Dec 2018 19:56:30 +0000 (14:56 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/zap_disks.yml

index 6c319cecc4fab3726834aa5447a75e726414bd9f..dacac0621c7bedee5676b4ca81854353cdddbe6e 100644 (file)
     - '"loop" not in item.key'
     - '"ram" not in item.key'
 
+## See https://tracker.ceph.com/issues/22354 and
+## https://github.com/ceph/ceph/pull/20400
+- name: Blow away lingering OSD data and FSIDs
+  shell: "dd if=/dev/zero of=/dev/{{ item.key }} bs=1M count=110"
+  with_dict: "{{ ansible_devices }}"
+  when:
+    - item.key not in root_disk
+    - '"loop" not in item.key'
+    - '"ram" not in item.key'
+
 - name: Remove all LVM data
   shell: "dmsetup remove_all --force"
   register: removed_lvm_data