I have a broken symlink in /var/lib/libvirt/images
I created this xml file:
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...
*** Bug 652189 has been marked as a duplicate of this bug. ***
patch post upstream:
Built into libvirt-0.8.7-1.el6
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/
-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
Rechecked it on the following test environment according to comment 6. It is passed.
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.