Bug 750573
Summary: | sosreport cluster modules fail with badly formed cluster.conf | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Bryn M. Reeves <bmr> | ||||||
Component: | sos | Assignee: | Bryn M. Reeves <bmr> | ||||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 5.7 | CC: | agk, bmr, dkutalek, gavin, lmiksik, prc, psplicha | ||||||
Target Milestone: | rc | Keywords: | EasyFix | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | sos-1.7-9.58.el5 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause: The sosreport command uses the python libxml2 bindings to parse XML formatted files such as /etc/cluster/cluster.conf. Malformed XML will trigger a parser exception. This exception was caught by the generic module handling routines and was not reported to the user.
Consequence: Systems having a malformed cluster.conf will report no errors but the cluster module terminates abnormally without collecting a full set of data.
Fix: The cluster module has been modified to catch parser exceptions internally and alter the user to the problem via a diagnostic message.
Result: The sosreport command's cluster module now correctly identifies and reports these problems as well as collecting the complete set of information on such systems.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 773350 (view as bug list) | Environment: | |||||||
Last Closed: | 2012-02-21 03:25:53 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: | 773350, 782064 | ||||||||
Attachments: |
|
Description
Bryn M. Reeves
2011-11-01 15:58:46 UTC
Same problem with unguarded parseFile calls in the gfs2 plugin. Created attachment 531158 [details]
Avoid user visible exceptions when parsing XML
Wrap calls to libxml2.parseFile() with try/catch blocks.
Created attachment 531159 [details]
Avoid user visible exceptions when parsing XML
Also make sure we release libxml2 objects since they are not reference counted.
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: Cause: The sosreport command uses the python libxml2 bindings to parse XML formatted files such as /etc/cluster/cluster.conf. Malformed XML will trigger a parser exception. This exception was caught by the generic module handling routines and was not reported to the user. Consequence: Systems having a malformed cluster.conf will report no errors but the cluster module terminates abnormally without collecting a full set of data. Fix: The cluster module has been modified to catch parser exceptions internally and alter the user to the problem via a diagnostic message. Result: The sosreport command's cluster module now correctly identifies and reports these problems as well as collecting the complete set of information on such systems. 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/RHSA-2012-0153.html |