Bug 721113

Summary: ccs should not backtrace when clustermon is not running
Product: Red Hat Enterprise Linux 6 Reporter: Chris Feist <cfeist>
Component: ricciAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: medium    
Version: 6.3CC: cluster-maint, rsteiger
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ricci-0.16.2-48.el6 Doc Type: Bug Fix
Doc Text:
No documentation necessary.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 14:13:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 756082    

Description Chris Feist 2011-07-13 18:42:19 UTC
Description of problem:
When a node has ricci installed and running, but not clustermon, many ccs functions cause a backtrace.

Version-Release number of selected component (if applicable):
ricci-0.16.2-35.el6.x86_64
ccs-0.16.2-35.el6.x86_64

How reproducible:
All the time

Steps to Reproduce:
1.  Have a node with ricci installed, but not cman
2.  Run 'ccs -h localhost --getconf' on the node.

  
Actual results:
Backtrace.

Expected results:
Warning about clustermon not installed, or at least ricci not ready.

Comment 6 Chris Feist 2012-02-03 23:04:14 UTC
To replicate:


[root@amoco-01 ~]# rpm -e --nodeps modcluster
[root@amoco-01 ~]# ccs -h localhost --getconf
Traceback (most recent call last):
  File "/usr/sbin/ccs", line 2144, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/ccs", line 240, in main
    if (getconf): get_cluster_conf()
  File "/usr/sbin/ccs", line 588, in get_cluster_conf
    xml = get_cluster_conf_xml()
  File "/usr/sbin/ccs", line 744, in get_cluster_conf_xml
    xml = send_ricci_command("cluster", "get_cluster.conf")
  File "/usr/sbin/ccs", line 2061, in send_ricci_command
    xml = dom.getElementsByTagName('function_response')[0].toxml()
IndexError: list index out of range

With new package:
[cfeist@gold ccs]$ ./ccs -i -h amoco-01 --getconf
Error: Unable to retrieve information from ricci (is modcluster installed?)


[root@amoco-01 ~]# yum install modcluster
...

[cfeist@gold ccs]$ ./ccs -i -h amoco-01 --getconf
<cluster config_version="14" name="test">  
  <fence_daemon/>  
  <clusternodes>    
    <clusternode name="amoco-01.lab.msp.redhat.com" nodeid="1"/>    
    <clusternode name="amoco-02.lab.msp.redhat.com" nodeid="2"/>    
  </clusternodes>  
  <cman/>  
  <fencedevices/>  
  <rm>    
    <failoverdomains/>    
    <resources/>    
  </rm>  
</cluster>

Commit:
https://github.com/feist/ccs/commit/18a82dc730bde984344f1390be0b4dd9c58fd24b

Comment 7 Chris Feist 2012-02-28 00:15:05 UTC
Using ricci-0.16.2-48.el6:


[root@ask-04 tmp]# rpm -e --nodeps modcluster
[root@ask-04 tmp]# ccs -h localhost --getconf
Error: Unable to retrieve information from ricci (is modcluster installed?)

Comment 9 Chris Feist 2012-03-15 19:49:31 UTC
    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:
No documentation necessary.

Comment 11 errata-xmlrpc 2012-06-20 14:13:12 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-2012-0898.html