Bug 626873 - pool creation fails if directory includes a broken symlink
pool creation fails if directory includes a broken symlink
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Osier Yang
Virtualization Bugs
: 652189 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2010-08-24 11:33 EDT by Eric Paris
Modified: 2011-05-19 09:20 EDT (History)
8 users (show)

See Also:
Fixed In Version: libvirt-0.8.7-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-05-19 09:20:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0596 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-05-18 13:56:36 EDT

  None (edit)
Description Eric Paris 2010-08-24 11:33:55 EDT

I have a broken symlink in /var/lib/libvirt/images

I created this xml file:

<pool type='dir'>

and run virsh pool-create [path to file]

This fails to create the pool with the error:

error: Failed to create pool from [path to file]
error: cannot open volume '/var/lib/libvirt/images/[broken symlink]': No such file or directory

I don't understand why a broken symlink should cause the pool creation to fail...
Comment 2 Dave Allan 2010-11-15 23:17:17 EST
*** Bug 652189 has been marked as a duplicate of this bug. ***
Comment 3 Osier Yang 2010-12-21 22:44:58 EST
patch post upstream:

Comment 4 Jiri Denemark 2011-01-09 18:57:29 EST
Built into libvirt-0.8.7-1.el6
Comment 6 Nan Zhang 2011-01-10 03:46:54 EST
Verified with libvirt-0.8.7-1.el6.x86_64, it's already fixed.

# ln -s /tmp/aaa /var/lib/libvirt/images/testpool

# ll /var/lib/libvirt/images/
total 5691056
-rw-------. 1 qemu qemu 6442450944 Jan 10 03:43 demo.img
lrwxrwxrwx. 1 root root          8 Jan 10 03:23 testpool -> /tmp/aaa
-rw-------. 1 root root 8589934592 Dec 30 01:49 rhel5u6.img
-rw-------. 1 root root 1427636224 Jan  4 05:50 rhel6.qcow2
-rw-------. 1 root root 8589934592 Dec 30 02:22 test.img

# virsh pool-define ~/default-pool.xml
Pool default defined from /root/default-pool.xml
Comment 9 Cui Chun 2011-02-09 02:24:59 EST
Rechecked it on the following test environment according to comment 6. It is passed.

Test environment:
Comment 12 errata-xmlrpc 2011-05-19 09:20:43 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.