Bug 1102620

Summary: lvm-clear-filter failed when has two same name but different uuid's VG
Product: Red Hat Enterprise Linux 6 Reporter: bfan
Component: libguestfsAssignee: Pino Toscano <ptoscano>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: leiwang, linl, mbooth, ptoscano, rjones, wshi, xchen
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1102619 Environment:
Last Closed: 2017-01-23 14:04:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1102619    
Bug Blocks: 1301844    

Description bfan 2014-05-29 10:23:52 UTC
+++ This bug was initially created as a clone of Bug #1102619 +++

Description of problem:
Prepare two different size disks, which one has a LV on the VG, two VGs have the same name but different uuid.
Add two disk then run "lvm-clear-filter", it failed by “device-mapper: create ioctl on vg-lv failed: Device or resource busy”


Version-Release number of selected component (if applicable):
libguestfs-1.22.6-22.el7.x86_64

How reproducible:
100%


Steps to Reproduce:
1.
# dd if=/dev/zero of=test1.img bs=1M count=500
# guestfish -a test1.img run : vgcreate vg /dev/sda : lvcreate lv vg 100

2.
# dd if=/dev/zero of=test2.img bs=1M count=500
# guestfish -a test2.img run : vgcreate vg /dev/sda : lvcreate lv vg 100

3.
# guestfish -a test1.img -a test2.img run : lvm-clear-filter


Actual results:


Expected results:



Additional info:

Comment 3 Richard W.M. Jones 2017-01-23 14:04:39 UTC
I'm closing this as WONTFIX as it's not a customer bug and is a
minor irritation.