Bug 615826

Summary: [Storage]'virsh' command unsupport define Physical disk pool with argument 'format type='auto''.
Product: Red Hat Enterprise Linux 6 Reporter: wangyimiao <yimwang>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: crobinso, eblake, llim, tyan, weizhan, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-19 12:02:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wangyimiao 2010-07-19 01:51:44 UTC
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 Program Management 2010-07-19 02:17:48 UTC
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 12:02:26 UTC
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.