Bug 1038107 - "pcs cluster enable/disable" do not sets correctly the startup of the daemons
Summary: "pcs cluster enable/disable" do not sets correctly the startup of the daemons
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pcs
Version: 6.5
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 12:45 UTC by Davide Brunato
Modified: 2014-10-14 07:21 UTC (History)
5 users (show)

Fixed In Version: pcs-0.9.122-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 07:21:47 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1526 0 normal SHIPPED_LIVE pcs bug fix and enhancement update 2014-10-14 01:22:04 UTC

Description Davide Brunato 2013-12-04 12:45:06 UTC
Description of problem:

"pcs" doesn't operate on the cman service. It only disables or enable pacemaker and corosync daemons. For RHEL clustering it seems better if this command acts on cman and pacemaker start-up (corosync is also activated by cman, so is better if remain disabled). 

Version-Release number of selected component (if applicable):

0.9.90-2

How reproducible:

Steps to Reproduce:
1. chkconfig --list | egrep "(corosync|pacemaker|cman)"
2. pcs cluster disable
3. chkconfig --list | egrep "(corosync|pacemaker|cman)"
4. chkconfig cman off
5. pcs cluster enable
6. chkconfig --list | egrep "(corosync|pacemaker|cman)"

Actual results:

Output of step #1:
cman           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
corosync       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Output of step #3:
cman           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off

Output of step #6:
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Expected results:

Output of step #1:
cman           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
corosync       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Output of step #3:
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off 
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off

Output of step #6:
cman           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Additional info:

Maybe is sufficient correct the file:

/usr/lib/python2.6/site-packages/pcs/utils.py 

using the call "utils.is_rhel6" into the functions utils.enableServices() and utils.disableServices().

Comment 4 Chris Feist 2014-06-16 21:46:46 UTC
Fixed upstream here: https://github.com/feist/pcs/commit/22fc367f28405efeb8794343b4df945a63b171c2

Comment 5 Chris Feist 2014-06-16 21:49:29 UTC
Before Fix:  (enables corosync *and* pacemaker)

[root@bid-05 ~]# rpm -q pcs
pcs-0.9.121-1.el6.x86_64
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
[root@bid-05 ~]# pcs cluster enable
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root@bid-05 ~]# pcs cluster disable
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off


After Fix: (only enables pacemaker)

[root@bid-05 ~]# rpm -q pcs
pcs-0.9.122-4.el6.x86_64
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
[root@bid-05 ~]# pcs cluster enable
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root@bid-05 ~]# pcs cluster disable
[root@bid-05 ~]# chkconfig --list | grep 'cman\|corosync\|pacemaker'
cman           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
corosync       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pacemaker      	0:off	1:off	2:off	3:off	4:off	5:off	6:off

Comment 8 errata-xmlrpc 2014-10-14 07:21:47 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-2014-1526.html


Note You need to log in before you can comment on or make changes to this bug.