|
|
233933 |
From 9b58731c83bc1ee9c5f2a3cd58a8f845cf09ee82 Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
|
|
|
233933 |
Date: Mon, 21 Mar 2016 13:54:19 +0530
|
|
|
233933 |
Subject: [PATCH 03/52] rpc: set bind-insecure to off by default
|
|
|
233933 |
|
|
|
233933 |
commit 243a5b429f225acb8e7132264fe0a0835ff013d5 turn's 'ON'
|
|
|
233933 |
allow-insecure and bind-insecure by default.
|
|
|
233933 |
|
|
|
233933 |
Problem:
|
|
|
233933 |
Now with newer versions we have bind-insecure 'ON' by default.
|
|
|
233933 |
So, while upgrading subset of nodes from a trusted storage pool,
|
|
|
233933 |
nodes which have older versions of glusterfs will expect
|
|
|
233933 |
connection from secure ports only (since they still have
|
|
|
233933 |
bind-insecure off) thus they reject connection from upgraded
|
|
|
233933 |
nodes which now have insecure ports.
|
|
|
233933 |
|
|
|
233933 |
Hence we will run into connection issues between peers.
|
|
|
233933 |
|
|
|
233933 |
Solution:
|
|
|
233933 |
This patch will turn bind-insecure 'OFF' by default to avoid
|
|
|
233933 |
problem explained above.
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM ONLY
|
|
|
233933 |
|
|
|
233933 |
Change-Id: Id7a19b4872399d3b019243b0857c9c7af75472f7
|
|
|
233933 |
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/70313
|
|
|
233933 |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
233933 |
Tested-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
rpc/rpc-lib/src/rpc-transport.c | 4 ++--
|
|
|
233933 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c
|
|
|
233933 |
index f9cbdf1..4beaaf9 100644
|
|
|
233933 |
--- a/rpc/rpc-lib/src/rpc-transport.c
|
|
|
233933 |
+++ b/rpc/rpc-lib/src/rpc-transport.c
|
|
|
233933 |
@@ -269,8 +269,8 @@ rpc_transport_load(glusterfs_ctx_t *ctx, dict_t *options, char *trans_name)
|
|
|
233933 |
else
|
|
|
233933 |
trans->bind_insecure = 0;
|
|
|
233933 |
} else {
|
|
|
233933 |
- /* By default allow bind insecure */
|
|
|
233933 |
- trans->bind_insecure = 1;
|
|
|
233933 |
+ /* Turning off bind insecure by default*/
|
|
|
233933 |
+ trans->bind_insecure = 0;
|
|
|
233933 |
}
|
|
|
233933 |
|
|
|
233933 |
ret = dict_get_str(options, "transport-type", &type);
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|