Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 615826 - [Storage]'virsh' command unsupport define Physical disk pool with argument 'format type='auto''.
[Storage]'virsh' command unsupport define Physical disk pool with argument 'f...
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
6.0
x86_64 Linux
low Severity medium
: rc
: ---
Assigned To: Daniel Veillard
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-18 21:51 EDT by wangyimiao
Modified: 2010-07-19 08:02 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-19 08:02:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description wangyimiao 2010-07-18 21:51:44 EDT
Description of problem:
  'virsh' command unsupport define Physical disk pool with  argument 'format type='auto'',but virt-manager can suooprt it.

Version-Release number of selected component (if applicable):
-libvirt-0.8.1-15.el6.x86_64
-qemu-kvm-0.12.1.2-2.94.el6.x86_64
-qemu-img-0.12.1.2-2.94.el6.x86_64
-kernel-2.6.32-50.el6.x86_64

How reproducible:
5/5

Steps to Reproduce:

1.Use virt-manager to create a Physical disk pool with format='auto' and checked 'build pool'.

1).# virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------
default              active     yes             
ewr                  active     yes  

2).# virsh pool-dumpxml ewr
<pool type='disk'>
  <name>ewr</name>
  <uuid>9e27b06d-688b-25cd-e294-6bee49a6a3ae</uuid>
  <capacity>500105249280</capacity>
  <allocation>0</allocation>
  <available>500105217024</available>
  <source>
    <device path='/dev/sdb'>
    <freeExtent start='32256' end='500105249280'/>
    </device>
    <format type='unknown'/>
  </source>
  <target>
    <path>/dev</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>


2.Use 'virsh' command to define Physical disk pool with  argument 'format type='auto''.

1).# cat sdb1.xml 
<pool type='disk'>
  <name>sdb</name>
   <source>
    <device path='/dev/sdb'>
    </device>
    <format type='auto'/>
  </source>
  <target>
    <path>/dev</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>

2).# virsh pool-define sdb1.xml 
error: Failed to define pool from sdb1.xml
error: XML description for unknown pool format type auto is not well formed or invalid

Issue: 'virsh' command unsupport define Physical disk pool with argument 'format type='auto'',but virt-manager can suooprt it.



Actual results:

virsh pool-define sdb1.xml 
error: Failed to define pool from sdb1.xml
error: XML description for unknown pool format type auto is not well formed or invalid

'virsh' command unsupport define Physical disk pool with argument 'format type='auto''.

Expected results:
'virsh' command can define Physical disk pool with argument 'format type='auto'' succeed.
Comment 2 RHEL Product and Program Management 2010-07-18 22:17:48 EDT
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **
Comment 3 Cole Robinson 2010-07-19 08:02:26 EDT
This is NOTABUG. Libvirt doesn't expose an 'auto' format for disk pools, it's just a virt-manager creation. At the libvirt level, it is the same as completely leaving out the <format> tag.

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