Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The sub-element for panic device should be "interleave" in rng file
Version-Release number of selected component:
libvirt-3.2.0-6.virtcov.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Check the definition of panic device in domaincommon.rng:
# cat /usr/share/libvirt/schemas/domaincommon.rng
......
<define name="panic">
<element name="panic">
<optional>
<attribute name="model">
<choice>
<value>isa</value>
<value>pseries</value>
<value>hyperv</value>
<value>s390</value>
</choice>
</attribute>
</optional>
<optional>
<ref name="alias"/>
</optional>
<optional>
<ref name="address"/>
</optional>
</element>
</define>
......
2.
1) Prepare a guest xml with panic device like below:
# cat vm1.xml
......
<panic model='isa'>
<alias name='panic0'/>
<address type='isa' iobase='0x505'/>
</panic>
......
2) Validate it:
# virt-xml-validate /tmp/vm1.xml
/tmp/vm1.xml validates
3.
1) Switch the order of alias and address:
# cat vm1.xml
......
<panic model='isa'>
<address type='isa' iobase='0x505'/>
<alias name='panic0'/>
</panic>
......
2) Validate again:
# virt-xml-validate /tmp/vm1.xml
Relax-NG validity error : Extra element devices in interleave
/tmp/vm1.xml:39: element devices: Relax-NG validity error : Element domain failed to validate content
/tmp/vm1.xml fails to validate
Actual results:
In step3, xml validation failed.
Expected results:
In step3, xml validation should succeed. This requires that the sub-element for panic device be "interleave" in rng, like:
<define name="panic">
<element name="panic">
<optional>
<attribute name="model">
<choice>
<value>isa</value>
<value>pseries</value>
<value>hyperv</value>
<value>s390</value>
</choice>
</attribute>
</optional>
**<interleave>**
<optional>
<ref name="alias"/>
</optional>
<optional>
<ref name="address"/>
</optional>
**</interleave>**
</element>
</define>
Additional info:
And I can't find alias info for panic device in active dumpxml after start guest successfully.
Fixed upstream by:
commit c376c7699645d315c7bb8a936cfe19e24d729b65
Author: Erik Skultety <eskultet>
AuthorDate: Wed May 2 13:54:55 2018 +0200
Commit: Erik Skultety <eskultet>
CommitDate: Wed May 2 14:52:09 2018 +0200
docs: schema: Add missing <interleave> element to panic device
Panic device has 2 optional sub-elements - <alias> and <address> the
order of which should be interchangeable in the XML.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1456165
Verify this bug with:
libvirt-4.4.0-2.el7.x86_64
steps:
1) Prepare a guest xml with panic device like below:
# cat vm1.xml
......
<panic model='isa'>
<address type='isa' iobase='0x505'/>
<alias name='ua-70080af6-afec-4398-9c91-e431d05319e8'/>
</panic>
......
2) Validate it:
# virt-xml-validate vm1.xml
vm1.xml validates
As the result match with expected result, mark it as verified
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/RHSA-2018:3113
Description of problem: The sub-element for panic device should be "interleave" in rng file Version-Release number of selected component: libvirt-3.2.0-6.virtcov.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Check the definition of panic device in domaincommon.rng: # cat /usr/share/libvirt/schemas/domaincommon.rng ...... <define name="panic"> <element name="panic"> <optional> <attribute name="model"> <choice> <value>isa</value> <value>pseries</value> <value>hyperv</value> <value>s390</value> </choice> </attribute> </optional> <optional> <ref name="alias"/> </optional> <optional> <ref name="address"/> </optional> </element> </define> ...... 2. 1) Prepare a guest xml with panic device like below: # cat vm1.xml ...... <panic model='isa'> <alias name='panic0'/> <address type='isa' iobase='0x505'/> </panic> ...... 2) Validate it: # virt-xml-validate /tmp/vm1.xml /tmp/vm1.xml validates 3. 1) Switch the order of alias and address: # cat vm1.xml ...... <panic model='isa'> <address type='isa' iobase='0x505'/> <alias name='panic0'/> </panic> ...... 2) Validate again: # virt-xml-validate /tmp/vm1.xml Relax-NG validity error : Extra element devices in interleave /tmp/vm1.xml:39: element devices: Relax-NG validity error : Element domain failed to validate content /tmp/vm1.xml fails to validate Actual results: In step3, xml validation failed. Expected results: In step3, xml validation should succeed. This requires that the sub-element for panic device be "interleave" in rng, like: <define name="panic"> <element name="panic"> <optional> <attribute name="model"> <choice> <value>isa</value> <value>pseries</value> <value>hyperv</value> <value>s390</value> </choice> </attribute> </optional> **<interleave>** <optional> <ref name="alias"/> </optional> <optional> <ref name="address"/> </optional> **</interleave>** </element> </define> Additional info: And I can't find alias info for panic device in active dumpxml after start guest successfully.