Bug 726065
Summary: | cman_tool -r version fails to validate cluster.conf file if it contains an ampersand '&' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Julio Entrena Perez <jentrena> |
Component: | cluster | Assignee: | Fabio Massimo Di Nitto <fdinitto> |
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | ccaulfie, cluster-maint, jentrena, lhh, mjuricek, rpeterso, teigland |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | cluster-3.0.12.1-9.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: xml format requires special handling of some characters
Consequence: the handling of those characters was not implemented correctly, causing cluster.conf not to function as expected
Fix: implemented correct handling of characters
Result: cluster.conf works as expected
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 14:52:36 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: | 658636 |
Description
Julio Entrena Perez
2011-07-27 12:59:48 UTC
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=ccfe7c7037d784cd4b004a4ff808f93517738247 How to test the patch and test results: add a semi-random & in cluster.conf: for example: <fencedevices> <fencedevice name="xvm" agent="fence_xvm&"/> </fencedevices> (cluster is not running/can“t start) ccs_config_validate will fail update packages to the new version ccs_config_validate will succeed cluster can/will start Attempt to update config (just bump the version num is sufficient) config will be loaded correctly (cluster.conf was propagated manually, ricci uses xml to import/export the config and the saveXML functions should do the right thing) the above tests will verify ccs_config_dump code path. To test the equivalent changes in libccs, keep the above cluster running and perform ccs_tool query. By default ccs_tool use libccs fullxpath implementation (the bits that have been modified) [root@rhel6-node2 cluster]# ccs_tool query /cluster/fencedevices/fencedevice/@agent fence_xvm& and double check with direct output from xmlimport in objdb: [root@fedora14-node2 cluster]# ccs_tool query -n /cluster/fencedevices/fencedevice/@agent fence_xvm& [root@fedora14-node2 cluster]# corosync-objctl |grep fencedevice.agent cluster.fencedevices.fencedevice.agent=fence_xvm& 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: xml format requires special handling of some characters Consequence: the handling of those characters was not implemented correctly, causing cluster.conf not to function as expected Fix: implemented correct handling of characters Result: cluster.conf works as expected 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-2011-1516.html |