Bug 1126872
Summary: | ccs list services displays traceback (Comment instance has no attribute 'tagName') | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Chester <knappch> |
Component: | ricci | Assignee: | Chris Feist <cfeist> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | ccaulfie, cluster-maint, jruemker, rpeterso, rsteiger, teigland |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ccs-0.16.2-77.el6.x86_64 | Doc Type: | Bug Fix |
Doc Text: |
Cause: ccs doesn't properly handle comments in cluster.conf file
Consequence: Tracebacks can occur in ccs when listing services if XML comments exist in the services section of cluster.conf
Fix: ccs must ignore any comments in the services/resources sections of cluster.conf instead of trying to parse them.
Result: ccs does not traceback when comments exist in the services or resources sections of cluster.conf
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-22 07:33:55 UTC | Type: | Bug |
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: | 1172231 |
Description
Chester
2014-08-05 13:47:27 UTC
[root@qpid-mgmt-02 tmp]# clustat Cluster Status for qpid-mgmt @ Tue Aug 5 09:39:45 2014 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ qpid-mgmt-01 1 Online qpid-mgmt-02 2 Online, Local After rebooting, cluster seems to be in reliable state: [root@qpid-mgmt-02 ~]# clustat Cluster Status for qpid-mgmt @ Tue Aug 5 09:49:36 2014 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ qpid-mgmt-01 1 Online, rgmanager qpid-mgmt-02 2 Online, Local, rgmanager Service Name Owner (Last) State ------- ---- ----- ------ ----- service:qpid-mgmt-01-service qpid-mgmt-01 started service:qpid-mgmt-02-service qpid-mgmt-02 started service:qpid-mgmt-primary-service (qpid-mgmt-01) recoverable And listing the services works: [root@qpid-mgmt-02 ~]# ccs -h qpid-mgmt-02 --lsnodes qpid-mgmt-01: votes=1, nodeid=1 qpid-mgmt-02: votes=1, nodeid=2 So, it seems to traceback is limited to the cluster being out of whack This error is occurring because ccs is not handling the comments in the cluster.conf file properly. As a temporary workaround, removing the comments from the service & resources section will prevent this error from occurring. Fix Upstream: https://github.com/feist/ccs/commit/c672a2386688da1166898ce5e088951b07c04ba7 To test, use cluster.conf with these contents: <?xml version="1.0"?> <cluster config_version="20" name="a"> <cman expected_votes="1" two_node="1"/> <clusternodes> </clusternodes> <fencedevices/> <rm> <resources> <!-- COMMENT --> <ip address="192.168.111.1" monitor_link="1"/> </resources> </rm> </cluster> And run: 'ccs -f /tmp/test.conf --lsservices', before the fix you get a traceback, after, you get this: resources: ip: monitor_link=1, address=192.168.111.1 Before Fix (using test_file created from cluster.conf in comment #5): [root@ask-03 ~]# rpm -q ccs ccs-0.16.2-75.el6.x86_64 [root@ask-03 ~]# ccs -f test_file --lsservices resources: Traceback (most recent call last): File "/usr/sbin/ccs", line 2450, in <module> main(sys.argv[1:]) File "/usr/sbin/ccs", line 279, in main if (listservices): list_services() File "/usr/sbin/ccs", line 726, in list_services print_services_map(node,0) File "/usr/sbin/ccs", line 747, in print_services_map print_services_map(cn, level + 1) File "/usr/sbin/ccs", line 745, in print_services_map print prefix + node.tagName + ": " + nodeattr AttributeError: Comment instance has no attribute 'tagName' After Fix (using test_file created from cluster.conf in comment #5): [root@ask-02 ~]# rpm -q ccs ccs-0.16.2-77.el6.x86_64 [root@ask-02 ~]# ccs -f test_file --lsservices resources: ip: monitor_link=1, address=192.168.111.1 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. https://rhn.redhat.com/errata/RHBA-2015-1405.html *** Bug 1199602 has been marked as a duplicate of this bug. *** |