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

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