Bug 714431

Summary: Empty LVM volume group leads to side effects on storage pools
Product: [Community] Virtualization Tools Reporter: Simon Niechzial <simon>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, xen-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: 2012-01-25 01:40:51 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:

Description Simon Niechzial 2011-06-19 09:27:41 UTC
Description of problem:

One or more empty LVM volume groups (read: no logical volumes inside) lead to side effects on other storage pools and VM creation.

Version-Release number of selected component (if applicable):
libvirt-bin                         0.8.3-5+squeeze1
libvirt0                            0.8.3-5+squeeze1 
python-libvirt                      0.8.3-5+squeeze1 
virt-manager                        0.8.4-8

How reproducible:
always

Steps to Reproduce:
1. Create a local or remote connection to a QEMU/KVM instance in virt-manager
2. Under "details -> storage" add an existing LVM volume group, e.g. "vg1" with path "/dev/vg1" selected from the dropdown. Make sure, the volume group contains no LVs
3. Make sure you have an ISO image accessible in a storage pool of type "dir"
4. Create a new VM named "test" with "local install media (iso-image or cdrom)"
5. Choose "use iso image" and browse to an image in the dir-storage
6. continue
  
Actual results:
virt-manager fails with "Checking installer location failed: Could not find media '/var/images/debian-6.0.0-amd64-netinst.iso'."

libvirt logs "error : virStorageBackendStablePath:1279 : cannot read dir '/dev/vg1': No such file or directory"

Expected results:
normal continuation of the VM setup process

Additional info:
The error message by libvirt is correct as you can see here:
 ls /dev/vg1
 ls: cannot access /dev/vg1: No such file or directory
The path is only created on first LV creation.
But I see no reason why this should affect the other storage-pools

Comment 1 Cole Robinson 2012-01-25 01:40:51 UTC

*** This bug has been marked as a duplicate of bug 782261 ***