From: David Galloway Date: Fri, 14 Dec 2018 19:53:20 +0000 (-0500) Subject: testnode: Blow away lingering OSD and partition data X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bddbd6a106ef423fd2ffa4144deb43e7937dcf04;p=ceph-cm-ansible.git testnode: Blow away lingering OSD and partition data Signed-off-by: David Galloway --- diff --git a/roles/testnode/tasks/zap_disks.yml b/roles/testnode/tasks/zap_disks.yml index 6c319ce..dacac06 100644 --- a/roles/testnode/tasks/zap_disks.yml +++ b/roles/testnode/tasks/zap_disks.yml @@ -65,6 +65,16 @@ - '"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