Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373577 - net-fs/autofs-5.0.6 problems with mounted shares
Summary: net-fs/autofs-5.0.6 problems with mounted shares
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 11:26 UTC by Juergen Rose
Modified: 2011-07-04 18:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
autofs-5.0.6-ipv6_name_lookup_regression.patch (autofs-5.0.6-ipv6_name_lookup_regression.patch,1.48 KB, patch)
2011-06-30 14:04 UTC, Dustin Polke
Details | Diff
autofs-5.0.6-r1.ebuild.diff (autofs-5.0.6-r1.diff,542 bytes, patch)
2011-06-30 14:04 UTC, Dustin Polke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2011-06-30 11:26:23 UTC
After installing autofs-5.0.6 and restarting autofs, the information of mounted shares seems to be broken after first access:

With the first NFS server:
==========================

root@lynx:/root(10)# /etc/init.d/autofs restart;  for ((i=0; i<3 ; i++)) { echo "--------------- i-$i -----------"; ll /net/moose/ ;  sleep 1; }
 * Stopping automounter ...                                                                                                   [ ok ]
 * Starting automounter ...                                                                                                   [ ok ]
--------------- i-0 -----------
/bin/ls: /net/moose/var: No such file or directory
/bin/ls: /net/moose/home_moose: No such file or directory
/bin/ls: /net/moose/data_moose: No such file or directory
total 0
drwxr-xr-x 2 root root 0 Jun 30 13:24 data_moose/
drwxr-xr-x 2 root root 0 Jun 30 13:24 home_moose/
drwxr-xr-x 2 root root 0 Jun 30 13:24 usr/
drwxr-xr-x 2 root root 0 Jun 30 13:24 var/
--------------- i-1 -----------
/bin/ls: cannot access /net/moose/var: No such file or directory
/bin/ls: cannot access /net/moose/home_moose: No such file or directory
/bin/ls: cannot access /net/moose/data_moose: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_moose/
d????????? ? ?    ?    ?            ? home_moose/
drwxr-xr-x 4 root root 0 Jun 30 13:24 usr/
d????????? ? ?    ?    ?            ? var/
--------------- i-2 -----------
/bin/ls: cannot access /net/moose/var: No such file or directory
/bin/ls: cannot access /net/moose/home_moose: No such file or directory
/bin/ls: cannot access /net/moose/data_moose: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_moose/
d????????? ? ?    ?    ?            ? home_moose/
drwxr-xr-x 4 root root 0 Jun 30 13:24 usr/
d????????? ? ?    ?    ?            ? var/


With the second NFS server:
==========================

root@lynx:/root(11)# /etc/init.d/autofs restart;  for ((i=0; i<3 ; i++)) { echo "--------------- i-$i -----------"; ll /net/cheetah/ ;  sleep 1; }
 * Stopping automounter ...                                                                                                   [ ok ]
 * Starting automounter ...                                                                                                   [ ok ]
--------------- i-0 -----------
/bin/ls: /net/cheetah/var: No such file or directory
/bin/ls: /net/cheetah/home_cheetah: No such file or directory
/bin/ls: /net/cheetah/data_cheetah: No such file or directory
total 0
drwxr-xr-x 2 root root 0 Jun 30 13:24 data_cheetah/
drwxr-xr-x 2 root root 0 Jun 30 13:24 home_cheetah/
drwxr-xr-x 2 root root 0 Jun 30 13:24 usr/
drwxr-xr-x 2 root root 0 Jun 30 13:24 var/
--------------- i-1 -----------
/bin/ls: cannot access /net/cheetah/var: No such file or directory
/bin/ls: cannot access /net/cheetah/home_cheetah: No such file or directory
/bin/ls: cannot access /net/cheetah/data_cheetah: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_cheetah/
d????????? ? ?    ?    ?            ? home_cheetah/
drwxr-xr-x 4 root root 0 Jun 30 13:24 usr/
d????????? ? ?    ?    ?            ? var/
--------------- i-2 -----------
/bin/ls: cannot access /net/cheetah/var: No such file or directory
/bin/ls: cannot access /net/cheetah/home_cheetah: No such file or directory
/bin/ls: cannot access /net/cheetah/data_cheetah: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_cheetah/
d????????? ? ?    ?    ?            ? home_cheetah/
drwxr-xr-x 4 root root 0 Jun 30 13:24 usr/
d????????? ? ?    ?    ?            ? var/
Comment 1 Juergen Rose 2011-06-30 12:10:48 UTC
I see this issue at several systems, e.g.:
root@inspironM12:/root(38)# /etc/init.d/autofs restart;  for ((i=0; i<3 ; i++)) { echo "--------------- i-$i -----------"; ll /net/moose/ ;  sleep 1; }
 * Stopping automounter ...                                                                                                                                                           [ ok ]
 * Starting automounter ...                                                                                                                                                           [ ok ]
--------------- i-0 -----------
/bin/ls: /net/moose/var: No such file or directory
/bin/ls: /net/moose/home_moose: No such file or directory
/bin/ls: /net/moose/data_moose: No such file or directory
total 0
drwxr-xr-x 2 root root 0 Jun 30 14:08 data_moose/
drwxr-xr-x 2 root root 0 Jun 30 14:08 home_moose/
drwxr-xr-x 2 root root 0 Jun 30 14:08 usr/
drwxr-xr-x 2 root root 0 Jun 30 14:08 var/
--------------- i-1 -----------
/bin/ls: cannot access /net/moose/var: No such file or directory
/bin/ls: cannot access /net/moose/home_moose: No such file or directory
/bin/ls: cannot access /net/moose/data_moose: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_moose/
d????????? ? ?    ?    ?            ? home_moose/
drwxr-xr-x 4 root root 0 Jun 30 14:08 usr/
d????????? ? ?    ?    ?            ? var/
--------------- i-2 -----------
/bin/ls: cannot access /net/moose/var: No such file or directory
/bin/ls: cannot access /net/moose/home_moose: No such file or directory
/bin/ls: cannot access /net/moose/data_moose: No such file or directory
total 0
d????????? ? ?    ?    ?            ? data_moose/
d????????? ? ?    ?    ?            ? home_moose/
drwxr-xr-x 4 root root 0 Jun 30 14:08 usr/
d????????? ? ?    ?    ?            ? var/



I have the following auto.master:
root@inspironM12:/root(39)# cat /etc/autofs/auto.master 
# $Id: autofs5-auto.master,v 1.1 2011/05/23 08:29:05 pva Exp $
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc   /etc/autofs/auto.misc
#/net   /etc/autofs/auto.net
#
#/home   /etc/autofs/auto.home
/disk   /etc/autofs/auto.home

# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
/net    -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
Comment 2 Juergen Rose 2011-06-30 13:01:26 UTC
After downgrading to autofs-5.0.5-r5 autofs works again as expected:

>>> Installing (1 of 1) net-fs/autofs-5.0.5-r5
 * checking 62 files for package collisions
>>> Merging net-fs/autofs-5.0.5-r5 to /
...
root@lynx:/root(21)# /etc/init.d/autofs restart;  for ((i=0; i<3 ; i++)) { echo "--------------- i-$i -----------"; ll /net/cheetah/ ;  sleep 1; }
 * Caching service dependencies ...
##############################################################
99servers.sh:  CUR_RUNLEVEL=|3| PREV_RUNLEVEL=|N|
##############################################################                                                                [ ok ]
 * Stopping automounter ...                                                                                                   [ ok ]
 * Starting automounter ...                                                                                                   [ ok ]
--------------- i-0 -----------
total 0
drwxr-xr-x 2 root root 0 Jun 30 14:55 data_cheetah/
drwxr-xr-x 2 root root 0 Jun 30 14:55 home_cheetah/
drwxr-xr-x 2 root root 0 Jun 30 14:55 usr/
drwxr-xr-x 2 root root 0 Jun 30 14:55 var/
--------------- i-1 -----------
total 13
drwxr-xr-x  7 root root 4096 Jan  7 19:29 data_cheetah/
drwxr-xr-x 12 root root 4096 Jan  7 12:57 home_cheetah/
drwxr-xr-x 30 root root 4096 Apr 18 04:46 usr/
drwxr-xr-x 21 root root  512 May 11  2010 var/
--------------- i-2 -----------
total 13
drwxr-xr-x  7 root root 4096 Jan  7 19:29 data_cheetah/
drwxr-xr-x 12 root root 4096 Jan  7 12:57 home_cheetah/
drwxr-xr-x 30 root root 4096 Apr 18 04:46 usr/
drwxr-xr-x 21 root root  512 May 11  2010 var/
Comment 3 Dustin Polke 2011-06-30 14:04:04 UTC
Created attachment 278703 [details, diff]
autofs-5.0.6-ipv6_name_lookup_regression.patch

This is probably due to a regression in the ipv6 lookup patch which has been already addressed by upstream.

@Peter: Please remove autofs-5.0.6.ebuild and rev bump to autofs-5.0.6-r1 to include upstream patch which I will attach to this bug.
I will attach a diff to include the patch to the ebuild as well. 

@Juergen: Please test after the new ebuild is in the tree whether it solves this issue
Comment 4 Dustin Polke 2011-06-30 14:04:54 UTC
Created attachment 278705 [details, diff]
autofs-5.0.6-r1.ebuild.diff
Comment 5 Dustin Polke 2011-06-30 14:22:07 UTC
Sorry for the bugspam, still learning to remember how to use new bugzilla...

@Peter: please see comment 3. Thanks!
Comment 6 Juergen Rose 2011-07-01 09:25:55 UTC
I am still waiting for the autofs-5.0.6-r1.ebuild in the tree.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-07-01 11:22:59 UTC
Thank you guys. autofs-5.0.6-r1.ebuild with the patch is in the tree.
Comment 8 Juergen Rose 2011-07-04 08:47:38 UTC
With autofs-5.0.6-r1 the issue disappears.
Comment 9 Dustin Polke 2011-07-04 18:59:12 UTC
(In reply to comment #8)
> With autofs-5.0.6-r1 the issue disappears.
Thanks for the feedback!