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