From 890e1687d0180f02637c0853ef14aeaf32941a8f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 15 Sep 2022 11:07:33 +0200 Subject: [PATCH] ceph-volume/tests: fix lvm centos8-filestore-create job /dev/vdc1 can't be zapped if it still holds an lv mapper. let's use --destroy in the lvm zap command in order to remove the held lv mapper before zapping the partition and recreate the partition after. Fixes: https://tracker.ceph.com/issues/57553 Signed-off-by: Guillaume Abrioux --- .../functional/lvm/playbooks/test_filestore.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml b/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml index aca1f40a652..a9b6aa26778 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml +++ b/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml @@ -87,12 +87,22 @@ environment: CEPH_VOLUME_DEBUG: 1 - # osd.0 journal device (zap without --destroy that removes the LV) + # osd.0 journal device - name: zap /dev/vdc1 - command: "ceph-volume --cluster {{ cluster }} lvm zap /dev/vdc1" + command: "ceph-volume --cluster {{ cluster }} lvm zap --destroy /dev/vdc1" environment: CEPH_VOLUME_DEBUG: 1 + - name: re-create partition /dev/vdc1 + parted: + device: /dev/vdc + number: 1 + part_start: 0% + part_end: 50% + unit: '%' + state: present + label: gpt + - name: prepare osd.0 again using test_group/data-lv1 command: "ceph-volume --cluster {{ cluster }} lvm prepare --filestore --data test_group/data-lv1 --journal /dev/vdc1 --osd-id 0" environment: -- 2.39.5