Bug 652189

Summary: Storage pool with soft link whose target is missing will be disabled
Product: Red Hat Enterprise Linux 6 Reporter: Gris Ge <fge>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: dallan, eblake, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-16 04:17:17 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 Gris Ge 2010-11-11 10:16:59 UTC
Description of problem:


Version-Release number of selected component (if applicable):

RHEL6 GA
libvirt-client-0.8.1-27.el6.x86_64
libvirt-0.8.1-27.el6.x86_64
libvirt-python-0.8.1-27.el6.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Create a folder which contain a soft link to a ISO.
2. Add this folder to libvirt storage pool
3. Remove tha ISO, but keep the soft link.
4. The storage pool will get disabled.
  
Actual results:
/var/log/messages
============================
Nov 11 18:06:46 Gris-Redhat libvirtd: 18:06:46.998: error : storagePoolLookupByName:299 : Storage pool not found: no pool with matching name 'test'
Nov 11 18:07:23 Gris-Redhat libvirtd: 18:07:23.289: error : virStorageBackendProbeTarget:72 : cannot open volume '/media/private/test_folder/openfiler-2.3-x86_64-disc1.iso': No such file or directory


The storage pool for that folder goes disabled.

Expected results:

Skip the file which is missing or corrupted

Additional info:

Comment 2 Dave Allan 2010-11-16 04:17:17 UTC
I believe this BZ is a duplicate of 626873; please feel free to reopen if that's incorrect.

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