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