mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
Merge pull request #24077 from alfredodeza/wip-rm35970
ceph-volume fix zap not working with LVs Reviewed-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
commit
641ff5e7c7
@ -100,8 +100,9 @@ class Zap(object):
|
||||
for vg_name in vgs:
|
||||
mlogger.info("Destroying volume group %s because --destroy was given", vg_name)
|
||||
api.remove_vg(vg_name)
|
||||
mlogger.info("Destroying physical volume %s because --destroy was given", device)
|
||||
api.remove_pv(device)
|
||||
if not lv:
|
||||
mlogger.info("Destroying physical volume %s because --destroy was given", device)
|
||||
api.remove_pv(device)
|
||||
|
||||
wipefs(path)
|
||||
zap_data(path)
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
# osd.0 device
|
||||
- name: zap test_group/data-lv1
|
||||
command: "ceph-volume lvm zap test_group/data-lv1"
|
||||
command: "ceph-volume lvm zap --destroy test_group/data-lv1"
|
||||
environment:
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
|
||||
|
@ -47,6 +47,8 @@
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
|
||||
# osd.0 data lv
|
||||
# note: we don't use --destroy here to test this works without that flag.
|
||||
# --destroy is used in the bluestore tests
|
||||
- name: zap test_group/data-lv1
|
||||
command: "ceph-volume lvm zap test_group/data-lv1"
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user