Actions
Bug #37411
closedzapping a device not that is a pv but with no vgs fails
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When running `ceph-volume lvm zap --destroy` against a device that is a pv but has not been used for a vg fails.
[root@osd0 vagrant]# pvs PV VG Fmt Attr PSize PFree /dev/nvme1n1 lvm2 --- 10.00g 10.00g /dev/sda3 VolGroup00 lvm2 a-- <38.97g 0 [root@osd0 vagrant]# vgs VG #PV #LV #SN Attr VSize VFree VolGroup00 1 2 0 wz--n- <38.97g 0 [root@osd0 vagrant]# ceph-volume lvm zap --destroy /dev/nvme1n1 Running command: /usr/sbin/cryptsetup status /dev/mapper/ --> Zapping: /dev/nvme1n1 --> Destroying volume group because --destroy was given Running command: /usr/sbin/vgremove -v -f stderr: VG name on command line not found in list of VGs: Volume group name "" has invalid characters. Cannot process volume group --> Unable to remove vg --> RuntimeError: command returned non-zero exit status: 5
Actions