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