Bug 782588 - sosreport cluster module - hide libxml2 debug output
Summary: sosreport cluster module - hide libxml2 debug output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sos
Version: 5.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Bryn M. Reeves
QA Contact: David Kutálek
URL:
Whiteboard:
Depends On:
Blocks: 1049888 1098793
TreeView+ depends on / blocked
 
Reported: 2012-01-17 19:54 UTC by David Kutálek
Modified: 2014-10-16 03:41 UTC (History)
6 users (show)

Fixed In Version: sos-1.7-9.67.el5
Doc Type: Bug Fix
Doc Text:
no docs needed
Clone Of:
: 1098793 (view as bug list)
Environment:
Last Closed: 2014-09-16 00:31:13 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1200 0 normal SHIPPED_LIVE sos bug fix update 2014-09-16 04:17:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.