|
|
233933 |
From 93635333d17a03078a6bf72771445e1bd9ebdc15 Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
233933 |
Date: Thu, 2 Mar 2017 12:22:30 +0530
|
|
|
233933 |
Subject: [PATCH 060/124] ganesha/scripts : Stop ganesha process on all nodes
|
|
|
233933 |
if cluster setup fails
|
|
|
233933 |
|
|
|
233933 |
During staging phase of volume option "nfs-ganesha", symlink "ganesha.conf"
|
|
|
233933 |
will be created plus ganesha process will be started. The cluster setup
|
|
|
233933 |
happens during commit phase of that option. So if cluster set up fails, the
|
|
|
233933 |
ganesha process will be running on all cluster nodes.
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM ONLY
|
|
|
233933 |
|
|
|
233933 |
Change-Id: Ib2cb85364b7ef5b702acb4826ffdf8e6f31a2acd
|
|
|
233933 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
233933 |
Reviewed-on: https://review.gluster.org/16823
|
|
|
233933 |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
Tested-by: Kaleb KEITHLEY <kkeithle@redhat.com>
|
|
|
233933 |
Reviewed-by: soumya k <skoduri@redhat.com>
|
|
|
233933 |
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
|
|
|
233933 |
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
233933 |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167145
|
|
|
233933 |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
extras/ganesha/scripts/ganesha-ha.sh | 9 +++++++++
|
|
|
233933 |
1 file changed, 9 insertions(+)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
index 7ba80b5..db3f921 100644
|
|
|
233933 |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
@@ -175,6 +175,13 @@ determine_servers()
|
|
|
233933 |
fi
|
|
|
233933 |
}
|
|
|
233933 |
|
|
|
233933 |
+stop_ganesha_all()
|
|
|
233933 |
+{
|
|
|
233933 |
+ local serverlist=${1}
|
|
|
233933 |
+ for node in ${serverlist} ; do
|
|
|
233933 |
+ manage_service "stop" ${node}
|
|
|
233933 |
+ done
|
|
|
233933 |
+}
|
|
|
233933 |
|
|
|
233933 |
setup_cluster()
|
|
|
233933 |
{
|
|
|
233933 |
@@ -191,6 +198,8 @@ setup_cluster()
|
|
|
233933 |
pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} --transport udpu ${servers}
|
|
|
233933 |
if [ $? -ne 0 ]; then
|
|
|
233933 |
logger "pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} ${servers} failed"
|
|
|
233933 |
+ #set up failed stop all ganesha process and clean up symlinks in cluster
|
|
|
233933 |
+ stop_ganesha_all ${servers}
|
|
|
233933 |
exit 1;
|
|
|
233933 |
fi
|
|
|
233933 |
pcs cluster start --all
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|