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 621821 - unexpected domain xml error
unexpected domain xml error
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Daniel Veillard
Virtualization Bugs
Depends On:
  Show dependency treegraph
Reported: 2010-08-06 04:10 EDT by Dan Kenigsberg
Modified: 2010-08-06 04:12 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-08-06 04:12:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Kenigsberg 2010-08-06 04:10:56 EDT
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):

How reproducible:

03:53:12.098: debug : virDomainCreateXML:1937 : conn=0x7f39b800d670, xmlDesc=Starting vhostmd: [  OK  ]
<?xml version="1.0" ?><domain type="kvm">
                <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"/>
                <interface type="bridge">
                        <mac address="aa:bb:dd:dd:aa:bb"/>
                        <model type="virtio"/>
                        <source bridge="rhevm"/>
                <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>
                <type arch="x86_64" machine="pc">hvm</type>
                <boot dev="cdrom"/>
        <clock adjustment="8" offset="variable"/>
        <cpu match="exact">
                <feature name="svm" policy="disable"/>
</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 04:12:21 EDT
sorry, my bug.

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