Bug 1414404
Summary: | virt-xml-validate fail to validate interface xml | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yalzhang <yalzhang> | |
Component: | libvirt | Assignee: | Laine Stump <laine> | |
Status: | CLOSED ERRATA | QA Contact: | chhu | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.3 | CC: | jdenemar, rbalakri, xuzhang | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-3.2.0-1.el7.x86_64 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1436300 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-01 17:21:45 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: |
Description
yalzhang@redhat.com
2017-01-18 12:30:35 UTC
Is this for netcf component or not? In any case, seems like the validation is expecting some <start mode='xx'/> element. There are RNG files in both libvirt and netcf. In this case it's the copy in libvirt, but the two should match. I believe there are some missing <interleave> elements in the interface RNG Actually it was much simpler than that - the <start> element should be optional but it isn't. I've sent patches upstream to both libvirt and netcf to remedy this: https://www.redhat.com/archives/libvir-list/2017-March/msg01262.html https://lists.fedorahosted.org/archives/list/netcf-devel@lists.fedorahosted.org/thread/OCLPQ2WBSH7NPCHTYSWTCIVQ6QVWAUIR/ verified on libvirt-3.2.0-1.el7.x86_64, the result is as expected. 1. # cat -n /usr/share/libvirt/schemas/interface.rng .. 281 <define name="startmode"> 282 <optional> 283 <element name="start"> 284 <attribute name="mode"> 285 <choice> 286 <value>onboot</value> 287 <value>none</value> 288 <value>hotplug</value> 289 <!-- Jim Fehlig lists the following that SuSe supports: 290 manual, ifplug, nfsroot --> 291 </choice> 292 </attribute> 293 </element> 294 </optional> 295 </define> ... 2. # virsh iface-list --all Name State MAC Address --------------------------------------------------- enp0s25 active 1c:6f:65:06:bc:81 eth0 inactive lo active 00:00:00:00:00:00 # virsh iface-dumpxml enp0s25 > /tmp/net # virt-xml-validate /tmp/net /tmp/net validates Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 |