Bug 1038107

Summary: "pcs cluster enable/disable" do not sets correctly the startup of the daemons
Product: Red Hat Enterprise Linux 6 Reporter: Davide Brunato <brunato>
Component: pcsAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.5CC: cluster-maint, fdinitto, jharriga, nyewale, rsteiger
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: pcs-0.9.122-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:21:47 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:

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