Description of problem:
The vol-pool command in virsh is only capable of returning a pool name, not a pool UUID.
It's not a killer, but it would be nice if vol-pool supported returning a pool UUID as well.
A patch has been submitted upstream that adds this support:
Version-Release number of selected component (if applicable):
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
libvirt-0_8_1-10_el6 has been built in RHEL-6-candidate with the fix.
Verified PASSED with libvirt-0.8.1-10.el6.
# virsh vol-pool --uuid /mnt/vol/foo.img
# virsh vol-pool /mnt/vol/foo.img
Verified this bug with RHEL6 RC build and it passed:
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.