74b1de
From 3cb9ed7e20f59eec036908eed4cfdbc61e990ee2 Mon Sep 17 00:00:00 2001
74b1de
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
74b1de
Date: Tue, 11 Dec 2018 10:09:42 -0500
74b1de
Subject: [PATCH 081/124] ganesha-ha: ensure pacemaker is enabled after setup
74b1de
74b1de
There appears to be a race between `pcs cluster setup ...` early
74b1de
in the setup and the `systemctl enable pacemaker` at the end. The
74b1de
`pcs cluster setup ...` disables pacemaker and corosync. (Now, in
74b1de
pacemaker-1.1.18. Was it always the case?)
74b1de
74b1de
I am not able to reproduce this on my devel system. I speculate that
74b1de
on a busy system that the `pcs cluster setup ...` disable may, under
74b1de
the right conditions, not run until after the setup script enables
74b1de
it. It must require the right alignment of the Sun, Moon, and all
74b1de
the planets.
74b1de
74b1de
Regardless, we'll use the --enable option to `pcs cluster setup ...`
74b1de
to ensure that the cluster (re)starts pacemaker.
74b1de
74b1de
Label: DOWNSTREAM ONLY
74b1de
74b1de
Change-Id: I771ff62c37426438b80e61651a8b4ecaf2d549c3
74b1de
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/167166
74b1de
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
74b1de
---
74b1de
 extras/ganesha/scripts/ganesha-ha.sh | 4 ++--
74b1de
 1 file changed, 2 insertions(+), 2 deletions(-)
74b1de
74b1de
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
74b1de
index 4a98f32..32af1ca 100644
74b1de
--- a/extras/ganesha/scripts/ganesha-ha.sh
74b1de
+++ b/extras/ganesha/scripts/ganesha-ha.sh
74b1de
@@ -195,9 +195,9 @@ setup_cluster()
74b1de
 
74b1de
     pcs cluster auth ${servers}
74b1de
     # pcs cluster setup --name ${name} ${servers}
74b1de
-    pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} --transport udpu ${servers}
74b1de
+    pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} --enable --transport udpu ${servers}
74b1de
     if [ $? -ne 0 ]; then
74b1de
-        logger "pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} ${servers} failed"
74b1de
+        logger "pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} --enable --transport udpu ${servers} failed"
74b1de
         #set up failed stop all ganesha process and clean up symlinks in cluster
74b1de
         stop_ganesha_all "${servers}"
74b1de
         exit 1;
74b1de
-- 
74b1de
1.8.3.1
74b1de