Bug 1214664
Summary: | Libvirt throws XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng after virsh edit | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Vadim A. Misbakh-Soloviov <redhat> | ||||
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | unspecified | CC: | berrange, crobinso, rbalakri | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-10-06 19:36:21 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Thanks for the example XML. The problem is the <graphics> element has a port number that is not validating against the schema: <graphics type='vnc' port='55910' autoport='no' passwd='[hidden]'/> <graphics type='spice' port='56910' autoport='no' passwd='[hidden]'/> The RNG schema has a bug in that it uses a data type 'short' which allows range [-32,768, 32,767] which excludes otherwise valid port numbers :-( commit 615bdfda07b7a59125c16ac780762a07d97ef4fe Author: Daniel P. Berrange <berrange> Date: Thu Apr 23 11:49:23 2015 +0100 rng: fix port number range validation In v1.2.15 |
Created attachment 1017888 [details] Domain config example Description of problem: After update to the latest versions (can't say exactly version when it started, but for now it is 1.2.14) on all my servers I started to experience following situation: if I edit domain configuration (even increase or decrease RAM by 1kb) and exit editor, libvirt throws following error: ``` error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Extra element devices in interleave Element domain failed to validate content Failed. Try again? [y,n,i,f,?]: ``` If I press "i" it says "Domain <name> XML configuration edited." and then flawlessly start that domain without any errors reported. Is it a bug or did I miss something during update? Version-Release number of selected component (if applicable): 1.2.14 How reproducible: Every time Steps to Reproduce: 1. virsh edit <domainname> 2. <change something> 3. save and exit Actual results: error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Extra element devices in interleave Element domain failed to validate content Expected results: Domain <domainname> XML configuration edited. Additional info: Config is attached