-host in auto.master not mounting nfs exports

Bug #1386869 reported by dsijbesma
74
This bug affects 14 people
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
Fix Released
High
Seyeong Kim
Trusty
Invalid
Undecided
Unassigned
Utopic
Fix Released
Undecided
Seyeong Kim

Bug Description

[SRU justification]

[Impact]

Using the auto.net in auto.master recognizes the nfs shares but unable to cd into the latest directory which contains the actual data.

-host doesn't mount anything

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: autofs 5.0.8-1ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-23.31-generic 3.16.4
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Tue Oct 28 21:09:05 2014
ExecutablePath: /usr/sbin/automount
InstallationDate: Installed on 2014-10-25 (3 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: autofs
UpgradeStatus: No upgrade log present (probably fresh install)

[Test Case]
# need nfs server
# suppose that nfs is nfs hostname

apt-get install autofs

# add -host to /etc/auto.master

cd /net

ls nfs

# error there

[Regression Potential]

[Other Info]

Revision history for this message
dsijbesma (dsijbesma) wrote :
Revision history for this message
Todd Kaehler (todd-kaehler) wrote :

I am having same problem with auto.net. When I try to cd to /net/salmo (one of our servers) I get in syslog:

automount[234566]: key "salmo" not found in map source(s).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autofs (Ubuntu):
status: New → Confirmed
dsijbesma (dsijbesma)
description: updated
Revision history for this message
Todd Kaehler (todd-kaehler) wrote :

In /etc/auto.master if I change:

/net -hosts

to

/net /etc/auto.net

it works...

Revision history for this message
pd5rm (pd5rm) wrote :

I had this problem as well after an upgrade from 14.04 to 14.10.

The workaround suggested in comment #4 works for me. Thanks a lot!

Revision history for this message
dsijbesma (dsijbesma) wrote : Re: [Bug 1386869] Re: -host in auto.master not mounting nfs exports

Changing the entry

/net -hosts

to

/net /etc/auto.net

in /etc/auto.master does work for me now as well. In the time of
initiating this bug report it wasn't.

David

On 10/29/2014 11:49 PM, Todd Kaehler wrote:
> In /etc/auto.master if I change:
>
> /net -hosts
>
> to
>
> /net /etc/auto.net
>
> it works...
>

Revision history for this message
Paul Smith (psmith-gnu) wrote :

This appears to be a bug in the version of autofs that Ubuntu is shipping. See this report from ArchLinux: https://bugs.archlinux.org/task/38379

Revision history for this message
Paul Smith (psmith-gnu) wrote :

Also there's a problem reported in Fedora against 5.0.7, but apparently still present for 5.0.8: https://bugzilla.redhat.com/show_bug.cgi?id=1038356

Changed in autofs (Ubuntu):
importance: Undecided → High
Revision history for this message
Dwaine Gonyier (dgonyier) wrote :

Having the same issue, using work around similar to comment #4 works for me.

Revision history for this message
Kenneth John Sissons (kjsissons) wrote :

From an strace of /usr/sbin/automount, the call to RPC portmapper is being made to port 28416 (0x6f00) instead of 111 (0x006f).

I think there's a missing htons() call in there somewhere.

...
13151 sendto(5, "y!\201\10\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0"..., 40, 0, {sa_family=AF_INET, sin_port=htons(28416), sin_addr=inet_addr("192.168.2.249")}, 16) = 40
...

$ dpkg-query -S /usr/sbin/automount
autofs: /usr/sbin/automount
$ dpkg-query -l autofs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-================-================-=================================================
ii autofs 5.0.8-1ubuntu1 i386 kernel-based automounter for Linux

Revision history for this message
Paul Smith (psmith-gnu) wrote :

Is there a reason we can't just go get the patches that Ian Kent already provided for Fedora (see my link to the Red Hat bugzilla entry, which contains references to RPM versions that fix the problem) and apply them here and/or in Debian since the bug exists there as well?

Seyeong Kim (seyeongkim)
description: updated
Changed in autofs (Ubuntu):
assignee: nobody → Seyeong Kim (xtrusia)
Seyeong Kim (seyeongkim)
Changed in autofs (Ubuntu):
status: Confirmed → In Progress
Changed in autofs (Ubuntu Utopic):
status: New → In Progress
assignee: nobody → Seyeong Kim (xtrusia)
Revision history for this message
Chris J Arges (arges) wrote :

@xtrusia:

1) Can you make the changelog include the bug it closes for example:
"Fix mount issues when using '-host' in conf file. (LP: #1386869)"

2) Can you ensure the patch is in DEP-3 format:
http://dep.debian.net/deps/dep3/

Thanks,
--chris

Revision history for this message
Chris J Arges (arges) wrote :

@xtrusia:
1) The changelog looks good except you should format your name correctly. Use 'Seyeong Kim' instead of 'seyeong.kim'.

2) You still haven't formatted the patch using DEP-3.

Revision history for this message
Seyeong Kim (seyeongkim) wrote :
Revision history for this message
Seyeong Kim (seyeongkim) wrote :
Revision history for this message
Chris J Arges (arges) wrote :

Sponsored vivid SRU.
Sponsored Utopic SRU after adjustments due to recent update.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello dsijbesma, or anyone else affected,

Accepted autofs into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/autofs/5.0.8-1ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in autofs (Ubuntu Utopic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello dsijbesma, or anyone else affected,

Accepted autofs into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/autofs/5.0.8-1ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Seyeong Kim (seyeongkim) wrote :

utopic : ii autofs 5.0.8-1ubuntu1.2 amd64 kernel-based automounter for Linux

works

vivid : ii autofs 5.0.8-1ubuntu3.1 amd64 kernel-based automounter for Linux

works

tags: added: verification-done
removed: verification-needed
Revision history for this message
Philip Guyton (phil-lxnet) wrote :

vivid
ii autofs 5.0.8-1ubuntu3.1 amd64 kernel-based automounter for Linux

fixes the following (previous to enabling proposed):-

key "<machine name" not found in map source(s)

automounting NFSv4 with Kerberos auth now works.

non selectively (unfortunately) enabled proposed repo

Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autofs - 5.0.8-1ubuntu3.1

---------------
autofs (5.0.8-1ubuntu3.1) vivid; urgency=medium

  * Fix mount issues when using '-host' in conf file. (LP: #1386869)

 -- Seyeong Kim <email address hidden> Tue, 28 Apr 2015 11:53:54 -0500

Changed in autofs (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for autofs has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autofs - 5.0.8-1ubuntu1.2

---------------
autofs (5.0.8-1ubuntu1.2) utopic; urgency=medium

  * Fix mount issues when using '-host' in conf file. (LP: #1386869)

 -- Seyeong Kim <email address hidden> Tue, 28 Apr 2015 12:02:37 -0500

Changed in autofs (Ubuntu Utopic):
status: Fix Committed → Fix Released
Revision history for this message
Greg Stachowski (greg-stachowski) wrote :

This bug has now appeared in 14.04 LTS after the upgrade to autofs 5.0.7-3ubuntu3.2 (a couple of weeks ago, it doesn't manifest until autofs was restarted at reboot). The fix in #4 doesn't work. Can we get the 5.0.8-1ubuntu1.2 package backported to 14.04 ASAP? For an LTS release breaking autofs and leaving it without a fix is unacceptable.

Seyeong Kim (seyeongkim)
tags: added: sts
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

@greg-stachowski

Is it the same after rebooting?

I tested it today, right after installing autofs i could reproduce it

but after rebooting the machine, it works fine

Please check this again

Thanks

Seyeong Kim (seyeongkim)
Changed in autofs (Ubuntu Trusty):
status: New → Invalid
Revision history for this message
C. Alex. North-Keys (erlkonig-talisman) wrote :

autofs function (5.0.7-3ubuntu3.2) can apparently be broken by enabling DoS features in a TP-LINK TL-SG3424 switch, specifically the one labelled "SYN sPort less 1024". This has turned out to be the problem at my site. I'm not in a position right now to see if higher autofs versions (5.1.1+) have the same weakness, so for now I'm just going to leave that DoS defense disabled.

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.