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