Bug 1257200 - virt-xml-validate fails for openstack instance
Summary: virt-xml-validate fails for openstack instance
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-26 13:11 UTC by Timofey Durakov
Modified: 2015-08-31 10:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-31 10:14:52 UTC
Embargoed:


Attachments (Terms of Use)
domain xml dump (2.84 KB, text/plain)
2015-08-26 13:11 UTC, Timofey Durakov
no flags Details

Description Timofey Durakov 2015-08-26 13:11:41 UTC
Created attachment 1067254 [details]
domain xml dump

Description of problem:


Version-Release number of selected component (if applicable):
1.2.2

How reproducible:
always

Steps to Reproduce:
1. deploy devstack
2. start instance
3. validate xml of newly created instance

Actual results:
stack@node2:/opt/stack/data/nova/instances/e6817eb9-0af6-4265-b77c-d0a4df79c1a8$ virt-xml-validate libvirt.xml 
Relax-NG validity error : Extra element cpu in interleave
libvirt.xml:53: element cpu: Relax-NG validity error : Element domain failed to validate content
libvirt.xml fails to validate

Expected results:
domain.xml validates


Additional info:

Comment 1 Ján Tomko 2015-08-31 10:14:52 UTC
Fixed upstream by:
commit adff345e1ec9a6f528731ae40168a76b8e7620e0
Author:     Martin Kletzander <mkletzan>
AuthorDate: 2015-01-05 17:03:58 +0100
Commit:     Martin Kletzander <mkletzan>
CommitDate: 2015-01-13 08:51:01 +0100

    qemu: Allow enabling/disabling features with host-passthrough
    
    QEMU supports feature specification with -cpu host and we just skip
    using that.  Since QEMU developers themselves would like to use this
    feature, this patch modifies the code to work.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178850
    
    Signed-off-by: Martin Kletzander <mkletzan>

git describe: v1.2.11-143-gadff345 contains: v1.2.12-rc1~66

commit dfc708750bb62cabd4617f3c0cf29beb27f28c28
Author:     Eric Blake <eblake>
AuthorDate: 2015-03-26 16:48:07 -0600
Commit:     Eric Blake <eblake>
CommitDate: 2015-03-26 16:57:26 -0600

    relaxng: allow : in /dev/disk/by-path names
    
    On IRC, Hydrar pointed a problem where 'virsh edit' failed on
    his domain created through an ISCSI pool managed by virt-manager,
    all because the XML included a block device with colons in the
    name.
    
    * docs/schemas/basictypes.rng (absFilePath): Add colon as safe.
    * tests/qemuxml2argvdata/qemuxml2argv-disk-iscsi.xml: New file.
    * tests/qemuxml2argvdata/qemuxml2argv-disk-iscsi.args: Likewise.
    * tests/qemuxml2argvtest.c (mymain): Test it.
    
    Signed-off-by: Eric Blake <eblake>

git describe: v1.2.14-rc1 contains: v1.2.14-rc1^0


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