Bug 797267

Summary: ricci doesn't properly return the cluster schema
Product: Red Hat Enterprise Linux 6 Reporter: Ryan McCabe <rmccabe>
Component: ricciAssignee: Ryan McCabe <rmccabe>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: cfeist, cluster-maint, rsteiger
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ricci-0.16.2-47.el6 Doc Type: Bug Fix
Doc Text:
No documentation necessary
Story Points: ---
Clone Of: 794907 Environment:
Last Closed: 2012-06-20 14:14:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 794907    
Bug Blocks: 726772    

Description Ryan McCabe 2012-02-24 17:47:37 UTC
+++ This bug was initially created as a clone of Bug #794907 +++

When asking clustermon for the cluster schema it mangles the schema so we can't use it for xmllint.

For example:
The original cluster.rng file has some of this info:


<start>
<element name="cluster" rha:description="Defines cluster properties, and
    contains all other configuration. cluster.conf(5)">

when pulling that from clustermon I see this output from the same section:

<start>
<element description="Defines cluster properties, and     contains all other configuration. cluster.conf(5)" name="cluster">

clustermon should return the exact (or possibly re-formatted with tabs/spaces) cluster.rng that is on the server.

--- Additional comment from rmccabe on 2012-02-21 13:11:33 EST ---

This would have to be fixed in both ricci and clustermon. The code that mangles the XML like this is XMLObject that both ricci and clustermon share. ricci will re-mangle proper output from clustermon when it reads it from the batch files.

--- Additional comment from rmccabe on 2012-02-21 13:13:24 EST ---

^^ or from stdout

Comment 6 Chris Feist 2012-03-15 19:56:06 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation necessary

Comment 9 errata-xmlrpc 2012-06-20 14:14:16 UTC
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.

http://rhn.redhat.com/errata/RHBA-2012-0898.html