From bddbd6a106ef423fd2ffa4144deb43e7937dcf04 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 14 Dec 2018 14:53:20 -0500 Subject: [PATCH] testnode: Blow away lingering OSD and partition data Signed-off-by: David Galloway --- roles/testnode/tasks/zap_disks.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/testnode/tasks/zap_disks.yml b/roles/testnode/tasks/zap_disks.yml index 6c319cec..dacac062 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 -- 2.47.3