Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The vol-* help seems incorrect
Version-Release number of selected component (if applicable):
RHEL6.0
qemu-img-0.12.1.2-2.68.el6.x86_64
qemu-kvm-0.12.1.2-2.68.el6.x86_64
libvirt-0.8.1-7.el6.x86_64
How reproducible:
1.
[root@dhcp-65-144 ~]# cat pool-mig.xml
<pool type='netfs'>
<name>pool-mig</name>
<uuid>3e33ce45-4f53-4fa7-bb32-11f34168b82b</uuid>
<capacity>161061273600</capacity>
<allocation>61805625344</allocation>
<available>99255648256</available>
<source>
<host name='10.66.90.115'/>
<dir path='/vol/kvm1/auto/images_good'/>
<format type='auto'/>
</source>
<target>
<path>/var/lib/libvirt/images</path>
<permissions>
<mode>0700</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>
2.
[root@dhcp-65-144 ~]# virsh pool-define pool-mig.xml
Pool pool-mig defined from pool-mig.xml
3.
[root@dhcp-65-144 ~]# virsh pool-start pool-mig
Pool pool-mig started
4.
[root@dhcp-65-144 images]# virsh vol-list pool-mig
Name Path
-----------------------------------------
win2003r2-64-el6.qcow2 /var/lib/libvirt/images/win2003r2-64-el6.qcow2
5.
[root@dhcp-65-144 images]# virsh vol-dumpxml /var/lib/libvirt/images/win2003r2-64-el6.qcow2
<volume>
<name>win2003r2-64-el6.qcow2</name>
<key>/var/lib/libvirt/images/win2003r2-64-el6.qcow2</key>
<source>
</source>
<capacity>20971520000</capacity>
<allocation>5330206720</allocation>
<target>
<path>/var/lib/libvirt/images/win2003r2-64-el6.qcow2</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>36</owner>
<group>36</group>
<label>system_u:object_r:nfs_t:s0</label>
</permissions>
</target>
</volume>
6.
[root@dhcp-66-70-18 ~]# virsh -h|grep vol
.....
vol-path convert a vol UUID to vol path
vol-name convert a vol UUID to vol name
vol-key convert a vol UUID to vol key
Actual results:
UUID have undefined in the vol XML.
Expected results:
1.Change the UUID in the help doc to 'name' or 'path'.
Additional info:
1.In the above,"convert a vol UUID to vol .." notes seems incorrect,because I can not find UUID mark in the XML of steps 5.
Created attachment 421569[details]
Patch to improve virsh help info, plus add --pool support to vol-key
This patch improves the help descriptions for vol-key, vol-name, and vol-path.
From:
vol-path convert a vol UUID to vol path
vol-name convert a vol UUID to vol name
vol-key convert a vol UUID to vol key
To:
vol-path returns the volume path for a given volume name or key
vol-name returns the volume name for a given volume key or path
vol-key returns the volume key for a given volume name or path
Additionally, because the vol-key command didn't previously support being given a --pool <string> vol_name argument, this patch adds that too.
This patch has also been submitted upstream:
http://www.redhat.com/archives/libvir-list/2010-June/msg00136.html
Comment 3RHEL Program Management
2010-06-07 15:58:55 UTC
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
inclusion.
Comment 9releng-rhel@redhat.com
2010-11-11 14:49:55 UTC
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.
Description of problem: The vol-* help seems incorrect Version-Release number of selected component (if applicable): RHEL6.0 qemu-img-0.12.1.2-2.68.el6.x86_64 qemu-kvm-0.12.1.2-2.68.el6.x86_64 libvirt-0.8.1-7.el6.x86_64 How reproducible: 1. [root@dhcp-65-144 ~]# cat pool-mig.xml <pool type='netfs'> <name>pool-mig</name> <uuid>3e33ce45-4f53-4fa7-bb32-11f34168b82b</uuid> <capacity>161061273600</capacity> <allocation>61805625344</allocation> <available>99255648256</available> <source> <host name='10.66.90.115'/> <dir path='/vol/kvm1/auto/images_good'/> <format type='auto'/> </source> <target> <path>/var/lib/libvirt/images</path> <permissions> <mode>0700</mode> <owner>0</owner> <group>0</group> </permissions> </target> </pool> 2. [root@dhcp-65-144 ~]# virsh pool-define pool-mig.xml Pool pool-mig defined from pool-mig.xml 3. [root@dhcp-65-144 ~]# virsh pool-start pool-mig Pool pool-mig started 4. [root@dhcp-65-144 images]# virsh vol-list pool-mig Name Path ----------------------------------------- win2003r2-64-el6.qcow2 /var/lib/libvirt/images/win2003r2-64-el6.qcow2 5. [root@dhcp-65-144 images]# virsh vol-dumpxml /var/lib/libvirt/images/win2003r2-64-el6.qcow2 <volume> <name>win2003r2-64-el6.qcow2</name> <key>/var/lib/libvirt/images/win2003r2-64-el6.qcow2</key> <source> </source> <capacity>20971520000</capacity> <allocation>5330206720</allocation> <target> <path>/var/lib/libvirt/images/win2003r2-64-el6.qcow2</path> <format type='qcow2'/> <permissions> <mode>0644</mode> <owner>36</owner> <group>36</group> <label>system_u:object_r:nfs_t:s0</label> </permissions> </target> </volume> 6. [root@dhcp-66-70-18 ~]# virsh -h|grep vol ..... vol-path convert a vol UUID to vol path vol-name convert a vol UUID to vol name vol-key convert a vol UUID to vol key Actual results: UUID have undefined in the vol XML. Expected results: 1.Change the UUID in the help doc to 'name' or 'path'. Additional info: 1.In the above,"convert a vol UUID to vol .." notes seems incorrect,because I can not find UUID mark in the XML of steps 5.