Bug 1304465 - dnscache in libglusterfs returns 127.0.0.1 for 1st non-localhost request
dnscache in libglusterfs returns 127.0.0.1 for 1st non-localhost request
Status: NEW
Product: GlusterFS
Classification: Community
Component: core (Show other bugs)
mainline
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: bugs@gluster.org
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-03 12:16 EST by Niels de Vos
Modified: 2016-02-03 12:16 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Niels de Vos 2016-02-03 12:16:01 EST
Description of problem:
When 

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. setup a Gluster volume (server is called storage.example.com below)
2. on a non-Gluster server (client only):
   # mount -t glusterfs -o backup-volfile-servers=storage.example.com \
            localhost:/volume /mnt

Actual results:
Mounting will fail.

Expected results:
Mounting succeeds.

Additional info:
Enabling DEBUG logging with the additional "log-level=DEBUG" mount option shows that the 1st DNS lookup in common-utils.c:333:gf_resolve_ip6 returns 127.0.0.1 for the storage.example.com hostname.

Note You need to log in before you can comment on or make changes to this bug.