|
|
233933 |
From de24d64c2599e48a05e8792b845cfecc210a6fc5 Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Kotresh HR <khiremat@redhat.com>
|
|
|
233933 |
Date: Mon, 22 Jul 2019 17:35:21 +0530
|
|
|
233933 |
Subject: [PATCH 258/261] geo-rep: Fix mount broker setup issue
|
|
|
233933 |
|
|
|
233933 |
The patch [1] added validation in gverify.sh to check if the gluster
|
|
|
233933 |
binary on slave by executing gluster directly on slave. But for
|
|
|
233933 |
non-root users, even though gluster binary is present, path is not
|
|
|
233933 |
found when executed via ssh. Hence validate the gluster binary using
|
|
|
233933 |
bash builtin 'type' command.
|
|
|
233933 |
|
|
|
233933 |
[1] https://review.gluster.org/19224
|
|
|
233933 |
|
|
|
233933 |
Backport of:
|
|
|
233933 |
> Patch: https://review.gluster.org/23089
|
|
|
233933 |
> Change-Id: I93ca62c0c5b1e16263e586ddbbca8407d60ca126
|
|
|
233933 |
> fixes: bz#1731920
|
|
|
233933 |
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
233933 |
|
|
|
233933 |
Change-Id: I93ca62c0c5b1e16263e586ddbbca8407d60ca126
|
|
|
233933 |
BUG: 1720992
|
|
|
233933 |
Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/176727
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
geo-replication/src/gverify.sh | 6 +++---
|
|
|
233933 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/geo-replication/src/gverify.sh b/geo-replication/src/gverify.sh
|
|
|
233933 |
index 7c88f9f..692c1d6 100755
|
|
|
233933 |
--- a/geo-replication/src/gverify.sh
|
|
|
233933 |
+++ b/geo-replication/src/gverify.sh
|
|
|
233933 |
@@ -207,13 +207,13 @@ function main()
|
|
|
233933 |
fi;
|
|
|
233933 |
|
|
|
233933 |
if [[ -z "${GR_SSH_IDENTITY_KEY}" ]]; then
|
|
|
233933 |
- err=$((ssh -p ${SSH_PORT} -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no $2@$3 "gluster --version") 2>&1)
|
|
|
233933 |
+ ssh -p ${SSH_PORT} -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no $2@$3 "type -p gluster"
|
|
|
233933 |
else
|
|
|
233933 |
- err=$((ssh -p ${SSH_PORT} -i ${GR_SSH_IDENTITY_KEY} -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no $2@$3 "gluster --version") 2>&1)
|
|
|
233933 |
+ ssh -p ${SSH_PORT} -i ${GR_SSH_IDENTITY_KEY} -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no $2@$3 "type -p gluster"
|
|
|
233933 |
fi
|
|
|
233933 |
|
|
|
233933 |
if [ $? -ne 0 ]; then
|
|
|
233933 |
- echo "FORCE_BLOCKER|gluster command on $2@$3 failed. Error: $err" > $log_file
|
|
|
233933 |
+ echo "FORCE_BLOCKER|gluster command not found on $3 for user $2." > $log_file
|
|
|
233933 |
exit 1;
|
|
|
233933 |
fi;
|
|
|
233933 |
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|