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:
Use command 'vol-create' with the Vol XML to create a volume,but it will failed with error: "command 'vol-create' requires <file> option"
Version-Release number of selected component (if applicable):
libvirt-0.8.7-14.el6.x86_64
qemu-img-0.12.1.2-2.152.el6.x86_64
qemu-kvm-0.12.1.2-2.152.el6.x86_64
kernel-2.6.32-125.el6.x86_64
How reproducible:
5/5
Steps to Reproduce:
1.Setup a pool of directory type with that xml.
<pool type='dir'>
<name>dir_pool</name>
<uuid>70a7eb15-6c34-ee9c-bf57-69e8e5ff3fb2</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images</path>
<permissions>
<mode>0700</mode>
<owner>0</owner>
<group>0</group>
<label>some_label_t</label>
</permissions>
</target>
</pool>
# virsh pool-define dir_pool.xml
# virsh pool-start dir_pool
Pool dir_pool started
2. Create a raw vol
#cat raw.xml
<volume>
<name>raw.img</name>
<source>
</source>
<capacity>22300000</capacity>
<allocation>22300000</allocation>
<target>
<path>/var/lib/libvirt/images/raw.img</path>
<format type='raw'/>
</target>
</volume>
# virsh vol-create --pool dir_pool raw.xml
error: command 'vol-create' requires <file> option
Actual results:
Use command 'vol-create' with the Vol XML to create a volume,but it will failed with error: "command 'vol-create' requires <file> option"
Expected results:
Volume should be created successfully
Additional info:
1.If add option "--file" vol created will be successful.
# virsh vol-create --pool dir_pool --file col.xml
Vol raw.img created from col.xml
2.Or if delete option "--pool" vol created will be successful.
# virsh vol-create dir_pool col.xml
Vol raw.img created from col.xml
Comment 2RHEL Program Management
2011-04-04 02:10:18 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Description of problem: Use command 'vol-create' with the Vol XML to create a volume,but it will failed with error: "command 'vol-create' requires <file> option" Version-Release number of selected component (if applicable): libvirt-0.8.7-14.el6.x86_64 qemu-img-0.12.1.2-2.152.el6.x86_64 qemu-kvm-0.12.1.2-2.152.el6.x86_64 kernel-2.6.32-125.el6.x86_64 How reproducible: 5/5 Steps to Reproduce: 1.Setup a pool of directory type with that xml. <pool type='dir'> <name>dir_pool</name> <uuid>70a7eb15-6c34-ee9c-bf57-69e8e5ff3fb2</uuid> <capacity>0</capacity> <allocation>0</allocation> <available>0</available> <source> </source> <target> <path>/var/lib/libvirt/images</path> <permissions> <mode>0700</mode> <owner>0</owner> <group>0</group> <label>some_label_t</label> </permissions> </target> </pool> # virsh pool-define dir_pool.xml # virsh pool-start dir_pool Pool dir_pool started 2. Create a raw vol #cat raw.xml <volume> <name>raw.img</name> <source> </source> <capacity>22300000</capacity> <allocation>22300000</allocation> <target> <path>/var/lib/libvirt/images/raw.img</path> <format type='raw'/> </target> </volume> # virsh vol-create --pool dir_pool raw.xml error: command 'vol-create' requires <file> option Actual results: Use command 'vol-create' with the Vol XML to create a volume,but it will failed with error: "command 'vol-create' requires <file> option" Expected results: Volume should be created successfully Additional info: 1.If add option "--file" vol created will be successful. # virsh vol-create --pool dir_pool --file col.xml Vol raw.img created from col.xml 2.Or if delete option "--pool" vol created will be successful. # virsh vol-create dir_pool col.xml Vol raw.img created from col.xml