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