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