Bug 677814

Summary: ccs_tool will fail if different ports are used
Product: Red Hat Enterprise Linux 5 Reporter: Benjamin Kahn <bkahn>
Component: cmanAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.5CC: cluster-maint, edamato, jwest, lhh, mjuricek, ndoane, pm-eus, rdassen, sbradley
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cman-2.0.115-68.el5_6.3 Doc Type: Bug Fix
Doc Text:
Previous versions of the ccs_tool utility did not allow users to specify the port numbers to use when distributing the configuration. Consequent to this, changing the port numbers for Cluster Manager components rendered this utility unable to establish a connection with a cluster. With this update, the ccs_tool utility now allows users to specify the port numbers on the command line, so that the connection can be established as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-28 07:38:31 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: 656427    
Bug Blocks:    

Description Benjamin Kahn 2011-02-15 22:38:58 UTC
This bug has been copied from bug #656427 and has been proposed
to be backported to 5.6 z-stream (EUS).

Comment 6 Jaromir Hradilek 2011-03-29 21:29:04 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:
Previous versions of the ccs_tool utility did not allow users to specify the port numbers to use when distributing the configuration. Consequent to this, changing the port numbers for Cluster Manager components rendered this utility unable to establish a connection with a cluster. With this update, the ccs_tool utility now allows users to specify the port numbers on the command line, so that the connection can be established as expected.

Comment 9 Martin Juricek 2011-04-26 16:29:21 UTC
Specifying port number in ccs_tool works with cman-2.0.115-68.el5_6.2


[root@a1 cluster]# rpm -qa | grep cman
cman-2.0.115-68.el5_6.2

[root@a1 cluster]# cat /etc/sysconfig/cman
CCSD_OPTS="-P f:40006 -P b:40008 -P c:40009"

[root@a1 cluster]# netstat -tulpn | grep ccs
tcp        0      0 0.0.0.0:40009               0.0.0.0:*                  
LISTEN      28455/ccsd          
tcp        0      0 ::1:40006                   :::*                       
LISTEN      28455/ccsd          
udp        0      0 :::40008                    :::*                           
        28455/ccsd          

[root@a1 cluster]# ccs_tool update -P c:40009 /etc/cluster/cluster.conf
Set cluster base port to 40009
Config file updated from version 2 to 3

Update complete.
[root@a1 cluster]# 


Usage of the -P option is not described in the man page, so I changing the
state to ASSIGNED. 
Please update the man page.

Comment 10 Lon Hohberger 2011-04-26 16:44:11 UTC
Looks like there were two patches and I only backported the functional one to the 5.6 Z-stream.

Comment 12 Lon Hohberger 2011-04-26 16:55:01 UTC
Respin has the same content as RHEL 5.7 man page now:

      Note: If ccsd is run on a non-standard base port, you can  spec-
      ify this to a ccs_tool update in the same manner as you would to
      ccsd:

      For example:

        ccs_tool update -P c:40003 /etc/cluster/cluster.conf

The -P option is not a global option, but specific to the "update" procedure, and is thus documented in the 'update' section.

Comment 13 Martin Juricek 2011-04-27 10:23:32 UTC
Tested package cman-2.0.115-68.el5_6.3
- ccs_tool man page is updated
- specifying port number in ccs_tool works OK


[root@a1 cluster]# rpm -qa | grep cman
cman-2.0.115-68.el5_6.3

[root@a1 cluster]# cat /etc/sysconfig/cman
CCSD_OPTS="-P f:40006 -P b:40008 -P c:40009"

[root@a1 cluster]# netstat -tulpn | grep ccsd
tcp        0      0 0.0.0.0:40009               0.0.0.0:*                   LISTEN      28455/ccsd          
tcp        0      0 ::1:40006                   :::*                        LISTEN      28455/ccsd          
udp        0      0 :::40008                    :::*                                    28455/ccsd 
         
[root@a1 cluster]# ccs_tool update -P c:40009 /etc/cluster/cluster.conf
Set cluster base port to 40009
Config file updated from version 3 to 4

Update complete.
[root@a1 cluster]#

Comment 14 errata-xmlrpc 2011-04-28 07:38:31 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0470.html