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