Bug 502007

Summary: pvremove, vgremove, lvremove tests/commands sometimes fail
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-21 15:19:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build.log from failed tests
none
build.log from failed tests none

Description Richard W.M. Jones 2009-05-21 14:34:09 UTC
Created attachment 344970 [details]
build.log from failed tests

During tests, particularly on Koji, the tests
associated with these commands will
sometimes fail.

The 'make check' will display something
like this:

 32/140 test_pvremove_0
test_pvremove_0 FAILED
 33/140 test_pvremove_1
test_pvremove_1 FAILED
 34/140 test_pvremove_2
test_pvremove_2 FAILED
 35/140 test_vgremove_0
test_vgremove_0 FAILED
 36/140 test_vgremove_1
test_vgremove_1 FAILED
 37/140 test_lvremove_0
test_lvremove_0 FAILED
 38/140 test_lvremove_1
test_lvremove_1 FAILED
 39/140 test_lvremove_2
test_lvremove_2 FAILED

Comment 1 Richard W.M. Jones 2009-05-21 14:36:34 UTC
Created attachment 344972 [details]
build.log from failed tests

Comment 2 Richard W.M. Jones 2009-05-21 14:41:12 UTC
The error message is:

/sbin/lvm pvcreate /dev/sda
guestfsd: error: File descriptor 3 (socket:[12577]) leaked on lvm invocation. Parent PID 1: 
  Device /dev/sda not found (or ignored by filtering).

I suspect what is happening here is that because
/dev/sda is partitioned, pvcreate really wants to
refuse to create a PV on top of the partition table.
The tests should be changed so that they create the
PV on /dev/sda1.

Comment 3 Richard W.M. Jones 2009-05-21 15:19:32 UTC
This should be fixed by upstream changeset
2a042d9844ca203ccea28a5d533c18f2dbdfcfa7.