Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 782588

Summary: sosreport cluster module - hide libxml2 debug output
Product: Red Hat Enterprise Linux 5 Reporter: David Kutálek <dkutalek>
Component: sosAssignee: Bryn M. Reeves <bmr>
Status: CLOSED ERRATA QA Contact: David Kutálek <dkutalek>
Severity: low Docs Contact:
Priority: low    
Version: 5.8CC: agk, bmr, gavin, lmiksik, mkolbas, prc
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-1.7-9.67.el5 Doc Type: Bug Fix
Doc Text:
no docs needed
Story Points: ---
Clone Of:
: 1098793 (view as bug list) Environment:
Last Closed: 2014-09-16 00:31:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1049888, 1098793    

Description David Kutálek 2012-01-17 19:54:36 UTC
Description of problem:

On RHEL5 in cluster module, libxml2 is used to parse /etc/cluster/cluster.conf. When encountering badly formed xml config, libxml2 prints parsing debug info, which would be better to hide before user. It should be possible by redefinition od error handling routines.

Version-Release number of selected component (if applicable):

sos-1.7-9.62.el5

How reproducible:

Always

Steps to Reproduce:
1. Corrupt /etc/cluster/cluster.conf somehow
2. sosreport -o cluster
3.
  
Actual results:

libxml2 debuggin info is printed

Expected results:

would be better to not print it

Additional info:

Comment 1 RHEL Program Management 2012-06-12 01:17:53 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 2 Bryn M. Reeves 2014-02-14 15:45:44 UTC
# echo CRUNCH > /etc/cluster/cluster.conf
# sosreport --batch -o cluster

sosreport (version 1.7)

This utility will collect some detailed  information about the
hardware and  setup of your  Red Hat Enterprise Linux  system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
Red Hat will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.


/etc/cluster/cluster.conf:1: parser error : Start tag expected, '<' not found
CRUNCH
^
One or more plugins have detected a problem in your configuration.
Please review the following messages:

cluster:
    * required module is not loaded: dlm
    * service cman is not running
    * service cman is not started in default runlevel
    * service rgmanager is not running
    * service rgmanager is not started in default runlevel
    * cluster node is not quorate
    * /etc/cluster/cluster.conf contains malformed XML

 plugin cluster finished ...                   
 Completed.

Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-rhel5-vm1-836658-baf014.tar.bz2

The md5sum is: 4c9837065776a8aa2e57b894a7baf014

Please send this file to your support representative.

Comment 6 errata-xmlrpc 2014-09-16 00:31:13 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-2014-1200.html