233933
From eb784a40a4f72e347945e0d66ac1a28389bb076c Mon Sep 17 00:00:00 2001
233933
From: Jiffin Tony Thottan <jthottan@redhat.com>
233933
Date: Fri, 28 Apr 2017 17:27:46 +0530
233933
Subject: [PATCH 062/124] glusterd/ganesha : perform removal of ganesha.conf on
233933
 nodes only in ganesha cluster
233933
233933
Label: DOWNSTREAM ONLY
233933
233933
Change-Id: I864ecd9391adf80fb1fa6ad2f9891a9ce77135e7
233933
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
233933
Reviewed-on: https://review.gluster.org/17138
233933
Smoke: Gluster Build System <jenkins@build.gluster.org>
233933
Reviewed-by: soumya k <skoduri@redhat.com>
233933
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
233933
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
233933
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
233933
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/167147
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
 xlators/mgmt/glusterd/src/glusterd-ganesha.c | 19 +++++++++----------
233933
 1 file changed, 9 insertions(+), 10 deletions(-)
233933
233933
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
233933
index ee8b588..b743216 100644
233933
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
233933
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
233933
@@ -746,17 +746,16 @@ stop_ganesha(char **op_errstr)
233933
         0,
233933
     };
233933
 
233933
-    runinit(&runner);
233933
-    runner_add_args(&runner, GANESHA_PREFIX "/ganesha-ha.sh",
233933
-                    "--setup-ganesha-conf-files", CONFDIR, "no", NULL);
233933
-    ret = runner_run(&runner);
233933
-    if (ret) {
233933
-        gf_asprintf(op_errstr,
233933
-                    "removal of symlink ganesha.conf "
233933
-                    "in /etc/ganesha failed");
233933
-    }
233933
-
233933
     if (check_host_list()) {
233933
+        runinit(&runner);
233933
+        runner_add_args(&runner, GANESHA_PREFIX "/ganesha-ha.sh",
233933
+                        "--setup-ganesha-conf-files", CONFDIR, "no", NULL);
233933
+        ret = runner_run(&runner);
233933
+        if (ret) {
233933
+            gf_asprintf(op_errstr,
233933
+                        "removal of symlink ganesha.conf "
233933
+                        "in /etc/ganesha failed");
233933
+        }
233933
         ret = manage_service("stop");
233933
         if (ret)
233933
             gf_asprintf(op_errstr,
233933
-- 
233933
1.8.3.1
233933