Bug 1664590

Summary: Gluster peer probe doesn't work for IPv6
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Milind Changire <mchangir>
Component: rpcAssignee: Milind Changire <mchangir>
Status: CLOSED DUPLICATE QA Contact: Rahul Hinduja <rhinduja>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.4CC: bugs, rhs-bugs, sabose, sankarshan, sheggodu, y.zhao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1635863 Environment:
Last Closed: 2019-01-18 11:13:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1635863    
Bug Blocks: 1618669, 1624708, 1676886, 1680596    

Description Milind Changire 2019-01-09 09:08:02 UTC
+++ This bug was initially created as a clone of Bug #1635863 +++

Description of problem:

# gluster peer probe gluster-1
peer probe: failed: Probe returned with Transport endpoint is not connected

Version-Release number of selected component (if applicable):
# gluster peer probe gluster-1
peer probe: failed: Probe returned with Transport endpoint is not connected


How reproducible:
Install 4.1.4 and run gluster peer probe ipv6-peer

Steps to Reproduce:
1. turn on "option transport.address-family inet6" in glusterd.vol
2. Verify the remote peer is ping6-able
3. Run "gluster peer probe"

Actual results:

# gluster peer probe gluster-1
peer probe: failed: Probe returned with Transport endpoint is not connected
# ping6 gluster-1
PING gluster-1(gluster-1 (3010::13:199:0:0:42)) 56 data bytes
64 bytes from gluster-1 (3010::13:199:0:0:42): icmp_seq=1 ttl=64 time=1.54 ms
64 bytes from gluster-1 (3010::13:199:0:0:42): icmp_seq=2 ttl=64 time=0.439 ms


Expected results:
Peer probe should succeeds.

Additional info:

1). Log from glusterd.log

[2018-10-03 19:06:25.009874] I [MSGID: 106487] [glusterd-handler.c:1244:__glusterd_handle_cli_probe] 0-glusterd: Received CLI probe req gluster-1 24007
[2018-10-03 19:06:25.010729] I [MSGID: 106128] [glusterd-handler.c:3635:glusterd_probe_begin] 0-glusterd: Unable to find peerinfo for host: gluster-1 (24007)
[2018-10-03 19:06:25.028897] W [MSGID: 106061] [glusterd-handler.c:3408:glusterd_transport_inet_options_build] 0-glusterd: Failed to get tcp-user-timeout
[2018-10-03 19:06:25.029031] I [rpc-clnt.c:1059:rpc_clnt_connection_init] 0-management: setting frame-timeout to 600
[2018-10-03 19:06:25.033267] E [MSGID: 101075] [common-utils.c:312:gf_resolve_ip6] 0-resolver: getaddrinfo failed (Name or service not known)
[2018-10-03 19:06:25.033366] E [name.c:267:af_inet_client_get_remote_sockaddr] 0-management: DNS resolution failed on host gluster-1
[2018-10-03 19:06:25.033538] I [MSGID: 106498] [glusterd-handler.c:3561:glusterd_friend_add] 0-management: connect returned 0
[2018-10-03 19:06:25.033657] I [MSGID: 106004] [glusterd-handler.c:6382:__glusterd_peer_rpc_notify] 0-management: Peer <gluster-1> (<00000000-0000-0000-0000-000000000000>), in state <Establishing Connection>, has disconnected from glusterd.

2). Peer probe works for ipv4 address with the same config

--- Additional comment from Yan on 2018-10-15 21:03:27 IST ---



Please refer: https://bugzilla.redhat.com/show_bug.cgi?id=1609799


Could any one rebuild newer libtirpc and glusterfs with --with-ipv6-default flag to fix the issue?

--- Additional comment from Worker Ant on 2018-12-28 15:35:02 IST ---

REVIEW: https://review.gluster.org/21948 ([WIP] rpc: use address-family option from vol file) posted (#3) for review on master by Milind Changire

Comment 2 Milind Changire 2019-01-18 11:13:36 UTC

*** This bug has been marked as a duplicate of bug 1618669 ***