diff options
author | Kaushal M <kaushal@redhat.com> | 2014-06-19 15:31:46 +0530 |
---|---|---|
committer | Krishnan Parthasarathi <kparthas@redhat.com> | 2014-09-23 02:17:58 -0700 |
commit | 371bb42410ca5bbcf1f13ad1c8d015fcbe6ec5ce (patch) | |
tree | 7e18fab14610d50af3520cd47bd9432236258021 /tests/cluster.rc | |
parent | f14d9bdd52b428466e7863d06c89b4684be3da07 (diff) |
glusterd: Authenticate management handshake requests
Management handshake requests, which are used to validate op-version
supported by the peers, are now only allowed if,
- the glusterd doesn't have any other peer, or
- the request was sent by another peer.
This prevents the op-version of a peer being changed because of a
connection attempt by an invalid peer.
Change-Id: I248c386ed5ec4f8360e7b5e7f9ab74b7e8a7fc65
BUG: 1109741
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/8126
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'tests/cluster.rc')
-rwxr-xr-x | tests/cluster.rc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc index 42f3ad24434..5c821776156 100755 --- a/tests/cluster.rc +++ b/tests/cluster.rc @@ -61,13 +61,17 @@ function define_glusterds() { done } +function start_glusterd() { + local g + local index=$1 -function start_glusterds() { - local g; + g="glusterd_${index}" + ${!g} +} +function start_glusterds() { for i in `seq 1 $CLUSTER_COUNT`; do - g="glusterd_$i"; - ${!g}; + start_glusterd $i done } |