Bug 1111662
| Summary: | Guestfs.Error("vgchange_uuid_all: Volume group has active logical volumes") | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | John Anderson <sontek> | ||||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | unspecified | CC: | acathrow, joseph.antony, mbooth, ptoscano, rjones | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-09-02 11:59:18 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 910835 [details]
log of sysprep
*** Bug 1111669 has been marked as a duplicate of this bug. *** The error might be from an earlier LVM operation: lvm vgchange -a n semid 32768: semop failed for cookie 0xd4ddd13: incorrect semaphore state Failed to set a proper state for notification semaphore identified by cookie value 223206675 (0xd4ddd13) to initialize waiting for incoming notifications. I do wonder if this is a manifestation of this problem: https://github.com/libguestfs/libguestfs/commit/7c8af234305f0fe2cb5a9042bd58fe3735e8cd73 (Fixed in 1.24.7, but not in 1.24.5 unless it was backported) Created attachment 931297 [details]
log of virt-sysprep ver 1.27.31
On running this command on an Ubuntu 14.04.1 LTS VM, packaging up a
CentOS 6.5 VM, I get the same error:
$ sudo virt-sysprep -d perfsonar-3.3.2
sysprep operation failed: exception: Guestfs.Error("vgchange_uuid_all: Volume group has active logical volumes")
$ virt-sysprep --version
virt-sysprep 1.24.5
Then on compiling up libguestfs-1.27.31 on the same Ubuntu VM, I get the
same error again:
$ sudo virt-sysprep -d perfsonar-3.3.2
[ 0.0] Examining the guest ...
[ 15.0] Performing "lvm-uuids" ...
virt-sysprep: libguestfs error: vgchange_uuid_all: Volume group has active logical volumes
$ virt-sysprep --version
virt-sysprep 1.27.31
A trace from running virt-sysprep using libguestfs version 1.27.31 is also attached.
On running this command on an Ubuntu 14.04.1 LTS VM, packaging up a
CentOS 6.5 VM, I get the same error:
$ sudo virt-sysprep -d perfsonar-3.3.2
sysprep operation failed: exception: Guestfs.Error("vgchange_uuid_all: Volume group has active logical volumes")
$ virt-sysprep --version
virt-sysprep 1.24.5
Then on compiling up libguestfs-1.27.31 on the same Ubuntu VM, I get the
same error again:
$ sudo virt-sysprep -d perfsonar-3.3.2
[ 0.0] Examining the guest ...
[ 15.0] Performing "lvm-uuids" ...
virt-sysprep: libguestfs error: vgchange_uuid_all: Volume group has active logical volumes
$ virt-sysprep --version
virt-sysprep 1.27.31
A trace from running virt-sysprep using libguestfs version 1.27.31 is also attached.
I think to be facing the same, when building libguestfs/master on a current Ubuntu/devel (i.e. soon to be Utopic). Will take a look. (Oops, sorry Joseph for having accidentally removed you from CC, readding.) Thanks Pino! I am currently working around this for the moment on libguestfs ver 1.27.31 by disabling lvm-uuids: # virt-sysprep --operations defaults,-lvm-uuids -d perfsonar-3.3.2 The image uploaded successfully into OpenStack glance and I've booted it successfully. Cheers, Joseph This issue is fixed with https://github.com/libguestfs/libguestfs/commit/c004e4648d2091eb217026b15eed7e041557b635 which is in libguestfs >= 1.27.36. |
I'm running the following: sudo virt-sysprep -d ubuntu1404_smbase and getting the error: sysprep operation failed: exception: Guestfs.Error("vgchange_uuid_all: Volume group has active logical volumes") I'm using: $ virt-sysprep --version virt-sysprep 1.24.5 I have attached the whole log.