Hide Forgot
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().
Fixed upstream here: https://github.com/feist/pcs/commit/22fc367f28405efeb8794343b4df945a63b171c2
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
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