REVIEW: http://review.gluster.org/14404 (common-ha: stonith-enabled option set error in new pacemaker) posted (#1) for review on master by Kaleb KEITHLEY (kkeithle)
COMMIT: http://review.gluster.org/14404 committed in master by Kaleb KEITHLEY (kkeithle) ------ commit 5bd9d42c997695d0c673ae50c1dbb9f4ab23695d Author: Kaleb S KEITHLEY <kkeithle> Date: Tue May 17 17:27:37 2016 -0400 common-ha: stonith-enabled option set error in new pacemaker Setting the option too early results in an error in newer versions of pacemaker. Postpone setting the option in order for it to succeed. N.B. We do not use a fencing agent. Yes, we know this is not supported. Change-Id: I86953fdd67e6736294dbd2d0795611837188bd9d BUG: 1336945 Signed-off-by: Kaleb S KEITHLEY <kkeithle> Reviewed-on: http://review.gluster.org/14404 Smoke: Gluster Build System <jenkins.com> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.com> Reviewed-by: soumya k <skoduri> Reviewed-by: jiffin tony Thottan <jthottan>
REVIEW: http://review.gluster.org/14426 (common-ha: wait for cluster to elect DC before accessing CIB) posted (#1) for review on master by Kaleb KEITHLEY (kkeithle)
Ken Gaillot 2016-05-19 10:50:42 EDT Your "too early" comment finally rang a bell: What you're seeing is an unfortunately necessary side effect of a fix for an issue in 6.7. The situation was discussed in BZ#1320740. The bottom line is, yes, you have to wait a short while after startup before querying or writing to the CIB in RHEL 6.8, so the cluster has time to elect a DC. The easiest way is just to loop if the option change fails, or to loop until "crmadmin --dc_lookup --timeout=5000" exits 0 before doing the option change.
REVIEW: http://review.gluster.org/14426 (common-ha: wait for cluster to elect DC before accessing CIB) posted (#2) for review on master by Kaleb KEITHLEY (kkeithle)
COMMIT: http://review.gluster.org/14426 committed in master by Kaleb KEITHLEY (kkeithle) ------ commit 4394291064b68f7c1a8634a00b211154087df1bc Author: Kaleb S KEITHLEY <kkeithle> Date: Thu May 19 12:57:58 2016 -0400 common-ha: wait for cluster to elect DC before accessing CIB access attempts, e.g. `pcs property set stonith-enabled=false` will fail (or time out) if attempted "too early", i.e. before the cluster has elected its DC. Change-Id: Ifc0aa7ce652c1da339b9eb8fe17e40e8a09b1096 BUG: 1336945 Signed-off-by: Kaleb S KEITHLEY <kkeithle> Reviewed-on: http://review.gluster.org/14426 CentOS-regression: Gluster Build System <jenkins.com> NetBSD-regression: Gluster Build System <jenkins.com> Tested-by: Gluster Build System <jenkins.com> Reviewed-by: soumya k <skoduri> NetBSD-regression: NetBSD Build System <jenkins.org> Smoke: Gluster Build System <jenkins.com> Reviewed-by: jiffin tony Thottan <jthottan>