glusterfs does not fallback to ipv4

Bug #943826 reported by rngadam
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glusterfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

Although the Ubuntu install has ipv6 enabled and configured, it uses a DNS resolvers that does not return results for ipv6 names:

rngadam@rngadam-vbox:~$ nslookup
> set q=any
> rngadam-vbox.cowin.local
Server: 10.236.20.254
Address: 10.236.20.254#53

Name: rngadam-vbox.cowin.local
Address: 10.236.10.160

> set q=AAAA
> rngadam-vbox.cowin.local
Server: 10.236.20.254
Address: 10.236.20.254#53

*** Can't find rngadam-vbox.cowin.local: No answer

This leads to inability for gluster to resolve names:

==> /var/log/glusterfs/etc-glusterfs-glusterd.vol.log <==
[2012-03-01 15:11:57.691325] E [common-utils.c:125:gf_resolve_ip6] 0-resolver: getaddrinfo failed (Name or service not known)
[2012-03-01 15:11:57.691504] E [name.c:253:af_inet_client_get_remote_sockaddr] 0-management: DNS resolution failed on host cnshaqs10.cowin.local

EXPECTED

When unable to resolve ip6 address, should fallback to ip4 address and still work.

Alternatively, should be able to force ip4 transport with this config (currently, only inet and inet/inet6 is available):

vi /etc/glusterfs/glusterd.vol
option transport.address-family inet/inet4

ADDITIONAL

rngadam@rngadam-vbox:/etc/glusterfs$ sudo service glusterfs-server start
 * Starting glusterd service glusterd [ OK ]
/usr/sbin/glusterd: option requires an argument -- 'f'
Try `glusterd --help' or `glusterd --usage' for more information.

AFAIK, /etc/init.d/glusterfs uses -f $CONFIG_FILE but I can't figure out where it is set...

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: glusterfs-server 3.2.1-1
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic i686
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Thu Mar 1 15:43:20 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
SourcePackage: glusterfs
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
rngadam (rngadam) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.