Bug 621821

Summary: unexpected domain xml error
Product: Red Hat Enterprise Linux 6 Reporter: Dan Kenigsberg <danken>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: eblake, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-06 08:12:21 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 Dan Kenigsberg 2010-08-06 08:10:56 UTC
Description of problem:
I generated a somewhat odd-indented domain xml and fed it into createXML. On first attempt I an error, but following attempts succeed.

Version-Release number of selected component (if applicable):
libvirt-0.8.1-20.el6.x86_64

How reproducible:
sometime

03:53:12.098: debug : virDomainCreateXML:1937 : conn=0x7f39b800d670, xmlDesc=Starting vhostmd: [  OK  ]
<?xml version="1.0" ?><domain type="kvm">
        <name>ayal</name>
        <uuid>9ffe28b6-6134-4b1e-8804-1185f49c436f</uuid>
        <memory>262144</memory>
        <currentMemory>262144</currentMemory>
        <vcpu>1</vcpu>
        <devices>
                <controller index="0" ports="16" type="virtio-serial"/>
                <channel type="unix">
                        <target name="org.linux-kvm.port.0" type="virtio"/>
                        <source mode="bind" path="/var/lib/libvirt/qemu/channels/ayal.org.linux-kvm.port.0"/>
                </channel>
                <interface type="bridge">
                        <mac address="aa:bb:dd:dd:aa:bb"/>
                        <model type="virtio"/>
                        <source bridge="rhevm"/>
                </interface>
                <input bus="ps2" type="mouse"/>
                <graphics autoport="yes" listen="0" passwd="*****" passwdValidTo="1970-01-01T00:00:01" port="-1" type="vnc"/>
        <disk device="disk" type="file"><source file="/dev/shm/vhostmd0"/><target bus="virtio" dev="vdzz"/><readonly/></disk></devices>
        <os>
                <type arch="x86_64" machine="pc">hvm</type>
                <boot dev="cdrom"/>
        </os>
        <clock adjustment="8" offset="variable"/>
        <cpu match="exact">
                <model>qemu64</model>
                <feature name="svm" policy="disable"/>
        </cpu>
</domain>, flags=0
03:53:12.098: error : catchXMLError:590 : at line 1: Start tag expected, '<' not found

Comment 1 Dan Kenigsberg 2010-08-06 08:12:21 UTC
sorry, my bug.