[Bug 1101779] Re: autofs "lookup_mount: exports lookup" fails on IPv6-only hosts

Thomas Dreibholz dreibh at iem.uni-due.de
Wed Feb 26 14:12:51 UTC 2014


autofs fails to mount an IPv6 server. It seems to be that, regardless of
proto=tcp6, the DNS lookup uses IPv4:

Feb 26 15:09:15 svartkulp automount[21673]: mount_mount: mount(nfs): nfs options="nfsvers=4,proto=tcp6,rsize=32768,wsize=32768,soft,async,intr,noatime,nodiratime,rw", nobind=0, nosymlink=0, ro=0
Feb 26 15:09:15 svartkulp automount[21673]: mount_mount: mount(nfs): calling mkdir_path /nfs/adm
Feb 26 15:09:15 svartkulp automount[21673]: mount_mount: mount(nfs): calling mount -t nfs -s -o nfsvers=4,proto=tcp6,rsize=32768,wsize=32768,soft,async,intr,noatime,nodiratime,rw 10.1.1.4:/filesrv/adm /nfs/adm
Feb 26 15:09:15 svartkulp automount[21673]: >> mount.nfs: Failed to resolve server 10.1.1.4: Address family for hostname not supported
Feb 26 15:09:15 svartkulp automount[21673]: mount(nfs): nfs: mount failure nfs.simula.nornet:/filesrv/adm on /nfs/adm
Feb 26 15:09:15 svartkulp automount[21673]: dev_ioctl_send_fail: token = 103
Feb 26 15:09:15 svartkulp automount[21673]: failed to mount /nfs/adm
Feb 26 15:09:15 svartkulp automount[21673]: handle_packet: type = 3
Feb 26 15:09:15 svartkulp automount[21673]: handle_packet_missing_indirect: token 104, name adm, request pid 21681
Feb 26 15:09:15 svartkulp automount[21673]: attempting to mount entry /nfs/adm
Feb 26 15:09:15 svartkulp automount[21673]: lookup_mount: lookup(file): looking up adm
Feb 26 15:09:15 svartkulp automount[21673]: dev_ioctl_send_fail: token = 104
Feb 26 15:09:15 svartkulp automount[21673]: failed to mount /nfs/adm

My system runs Ubuntu 12.04.4 LTS.

** Also affects: autofs (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: autofs5 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1101779

Title:
  autofs "lookup_mount: exports lookup" fails on IPv6-only hosts

Status in The Linux Mint Distribution:
  New
Status in “autofs” package in Ubuntu:
  New
Status in “autofs5” package in Ubuntu:
  New
Status in Debian GNU/Linux:
  Unknown
Status in Fedora:
  Unknown

Bug description:
  Using Linux Mint 14 and both autofs 5.0.6 and 5.0.7, when attempting to access an NFS server mounted under /net with an auto.master configuration such as:
  /net -hosts

  If the host is only accessible over IPv6 (i.e. it only has an AAAA record in DNS, or there is no accessible A address), attempting to 'cd' to its host name (e.g. "cd /net/server") will timeout after a few seconds (bash: cd: server: No such file or directory) and result in a syslog entry similar to:
  Jan 19 22:39:43 client automount[5582]: lookup_mount: exports lookup failed for server

  Immediately upon adding an accessible A (IPv4) address for the server,
  everything will work correctly (and NFS mounts created by autofs will
  continue to use the IPv6 address by default).

  It appears that the rpc_get_exports() function in autofs is not
  correctly defaulting to IPv6 when it is available, even though NFS
  will default to IPv6, and is failing when the server is not accessible
  over IPv4.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linuxmint/+bug/1101779/+subscriptions



More information about the foundations-bugs mailing list