[Bugs] [Bug 1320489] glfs-mgmt: fix connecting to multiple volfile transports
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 24 15:08:16 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1320489
--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13819 committed in master by Jeff Darcy
(jdarcy at redhat.com)
------
commit 1b1fae4b8b351ee768f8fa61c3e5e5debfa2eb15
Author: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Date: Wed Mar 23 15:45:08 2016 +0530
glfs-mgmt: fix connecting to multiple volfile transports
Problem:
[
{"host":"1.2.3.4", "port":"24007", "transport":"tcp"},
{"host":"/var/run/glusterd.socket", "transport":"unix"}
]
Consider the above case where we have two volfile servers, each
has different transport type, we first try to connect to server1
which has transport type "tcp" let's say we found that host address
is invalid, now we pick the next available server2, in our case
it is of type "unix" and try to connect to it.
but we fail to connect to it even we have right unix path, because
multiple volfile servers with different transport type is not taken
care currently.
Solution:
Every time we receive a RPC_CLNT_DISCONNECT event in mgmt_rpc_notify,
we need to check the transport type of the volfile server in the list
and set the keys "transport.socket.connect-path" or "remote-host"
accordingly.
Change-Id: I36bec46ef2e92e4642a7d7d64b423d0bc3ab269b
BUG: 1320489
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Reviewed-on: http://review.gluster.org/13819
Smoke: Gluster Build System <jenkins at build.gluster.com>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Tested-by: Prasanna Kumar Kalever <pkalever at redhat.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Jeff Darcy <jdarcy at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=oTpndCtaH3&a=cc_unsubscribe
More information about the Bugs
mailing list