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