Bug 1501924
Summary: | crm_mon -X output does not conform to the schema due to recent changes in bundles | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomas Jelinek <tojeline> |
Component: | pacemaker | Assignee: | Ken Gaillot <kgaillot> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 7.5 | CC: | abeekhof, cluster-maint, mnovacek |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | 7.5 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pacemaker-1.1.18-2.el7 | Doc Type: | No Doc Update |
Doc Text: |
The version with this issue was never released
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 15:32:51 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
Tomas Jelinek
2017-10-13 13:27:44 UTC
Thanks again for the catch. In this case, the schema is correct, but the value changed when rkt support was added, because we were focused on maintaining the text output ("Docker container"). I'll lowercase the value for XML, to maintain backward compatibility with the last release. I have verified that the output of 'crm_mon -X' is valid against the /usr/shared/pacemaker/crm_mon.rng schema in pacemaker-1.1.18-6.el7.x86. ----- Common part: >virt-153# pcs resource show Docker container: http-bundle [httpd] http-bundle-docker-0 (ocf::heartbeat:docker): Started virt-153 Before the fix (pacemaker-1.1.18-1) =================================== >virt-153# crm_mon -X >/tmp/crm_mon.xml >virt-153# grep \<bundle /tmp/crm_mon.xml <bundle id="http-bundle" type="Docker" image="httpd" unique="false" managed="true" failed="false" > >virt-153# jing /usr/share/pacemaker/crm_mon.rng /tmp/crm_mon.xml /tmp/crm_mon.xml:27:108: error: value of attribute "type" is invalid; must be equal to "docker" or "rkt" >virt-153# echo $? 1 After the fix (pacemaker-1.1.18-6) ================================== >virt-153# rmp -q pacemaker pacemaker-1.1.18-6.el7.x86_64 >virt-153# crm_mon -X >/tmp/crm_mon.xml >virt-153# grep \<bundle /tmp/crm_mon.xml <bundle id="http-bundle" type="docker" image="httpd" unique="false" managed="true" failed="false" > >virt-153# jing /usr/share/pacemaker/crm_mon.rng /tmp/crm_mon.xml >virt-153# echo $? 0 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-2018:0860 |