Bug 476708

Summary: virsh pool-define-as creates xml libvirt doesn't like
Product: [Fedora] Fedora Reporter: Jarod Wilson <jarod>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: berrange, clalance, crobinso, mjenner, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-10 08:33:34 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jarod Wilson 2008-12-16 11:57:31 EST
Description of problem:
virsh pool-define-as creates xml that libvirt doesn't like. From the libvirt.org site, the following input xml works fine:

<pool type="iscsi">
    <host name="iscsi.example.com"/>
    <device path="demo-target"/>

Looking at the cmdPoolDefineAs() function in virsh.c, the generated xml looks more like this:

<pool type="iscsi">

When one tries to feed this xml into virsh pool-define (or tries to use virsh pool-define-as w/the appropriate flags, one gets:

libvir: Storage error : XML description for missing storage pool source host name is not well formed or invalid

So either cmdPoolDefineAs needs to be modified to spit out something that looks more like the example, or both forms need to be parseable.

Version-Release number of selected component (if applicable):
Comment 2 Cole Robinson 2009-01-21 09:15:46 EST
Hi, this is fixed upstream as of Dec 22:


Moving to POST.
Comment 3 Daniel Berrange 2009-03-10 08:33:34 EDT
Fixed in rawhide in 0.6.1 release (or perhaps even 0.6.0)