Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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