Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488886 - =net-fs/autofs-5.0.8 - get_exports: lookup(hosts): exports lookup failed for $(hostname)
Summary: =net-fs/autofs-5.0.8 - get_exports: lookup(hosts): exports lookup failed for ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard: Worked in 5.0.7-r4.
Keywords: REGRESSION
: 487808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-21 14:33 UTC by Juergen Rose
Modified: 2019-08-12 21:26 UTC (History)
4 users (show)

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


Attachments
01-autofs-exports-r1.patch (01-autofs-exports-r1.patch,5.23 KB, patch)
2013-10-25 03:00 UTC, Yixun Lan
Details | Diff
build.log of net-fs/autofs-9999 (build.log,28.45 KB, text/plain)
2014-01-16 13:58 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-10-21 14:33:29 UTC
Can't automount nfs shares:

root@lynx:/root(19)# ll /net/impala/
/bin/ls: cannot access /net/impala/: No such file or directory
root@lynx:/root(20)# ll /net/caiman
/bin/ls: cannot access /net/caiman: No such file or directory
root@lynx:/root(21)# ll /net/caiman/home_caiman/
/bin/ls: cannot access /net/caiman/home_caiman/: No such file or directory
...
root@lynx:/root(24)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Mon 2013-10-21 16:24:05 CEST; 4min 43s ago
  Process: 5602 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 5604 (automount)
   CGroup: /system.slice/autofs.service
           └─5604 /usr/sbin/automount --pid-file /run/autofs.pid

Oct 21 16:24:05 lynx systemd[1]: Started Automounts filesystems on demand.
Oct 21 16:24:08 lynx automount[5604]: get_exports: lookup(hosts): exports lookup failed for caiman
Oct 21 16:24:08 lynx automount[5604]: key "caiman" not found in map source(s).
Oct 21 16:24:32 lynx automount[5604]: get_exports: lookup(hosts): exports lookup failed for caiman.homenet
Oct 21 16:24:32 lynx automount[5604]: key "caiman.homenet" not found in map source(s).
Oct 21 16:25:40 lynx automount[5604]: get_exports: lookup(hosts): exports lookup failed for impala
Oct 21 16:25:40 lynx automount[5604]: key "impala" not found in map source(s).
Oct 21 16:25:52 lynx automount[5604]: get_exports: lookup(hosts): exports lookup failed for caiman
Oct 21 16:25:52 lynx automount[5604]: key "caiman" not found in map source(s).


root@lynx:/root(25)# showmount -e caiman | grep lynx
/var                                raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,inspironM12.homenet,thinkpad.homenet,condor.homenet,vilm.homenet,grizzly.homenet,tarantel.homenet
/data_caiman                        raspberry1.homenet,wildcat.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,thinkpad.homenet,impala.homenet,condor.homenet,vilm.homenet,grizzly.homenet,tarantel.homenet
/home_caiman                        raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,tarantel.homenet,laptop.homenet,STar.homenet,NewSTar.homenet,lionhomenet.homenet,laptop450.homenet,shark.homenet,cathomenet.homenet,mouse.homenet
/home_caiman/ftp                    raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,tarantel.homenet,laptop.homenet,STar.homenet,NewSTar.homenet,lionhomenet.homenet,laptop450.homenet,shark.homenet,cathomenet.homenet,mouse.homenet
/usr                                raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,cheetah.homenet,cathomenet.homenet,tarantel.homenet,shark.homenet,lionhomenet.homenet,scorpion.homenet,laptop450.homenet,mouse.homenet
/usr/src_caiman                     raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,cheetah.homenet,cathomenet.homenet,tarantel.homenet,shark.homenet,lionhomenet.homenet,scorpion.homenet,laptop450.homenet,mouse.homenet
/usr/portage_caiman                 raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,cheetah.homenet,cathomenet.homenet,tarantel.homenet,shark.homenet,lionhomenet.homenet,scorpion.homenet,laptop450.homenet,mouse.homenet
/usr/local/portage/distfiles_caiman raspberry1.homenet,wildcat.homenet,impala.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,condor.homenet,vilm.homenet,grizzly.homenet,inspironM12.homenet,thinkpad.homenet,cheetah.homenet,cathomenet.homenet,tarantel.homenet,shark.homenet,lionhomenet.homenet,scorpion.homenet,laptop450.homenet,mouse.homenet


root@lynx:/root(26)# emerge --info autofs
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.11.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.11.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.2
KiB Mem:     3987400 total,   3326512 free
KiB Swap:   12582908 total,  12582908 free
Timestamp of tree: Mon, 21 Oct 2013 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 sage-on-gentoo science sunrise lordvan local g-cpan g-octave
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_lynx"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sage-on-gentoo /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/lordvan /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cuda cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm syslog" DVB_CARDS="usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-fs/autofs-5.0.8 was built with the following:
USE="ldap sasl -dmalloc -hesiod -libtirpc -mount-locking"
Comment 1 Juergen Rose 2013-10-21 19:21:36 UTC
After downgrading to autofs-5.0.7-r4 autofs works again.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2013-10-24 14:04:03 UTC
+*autofs-5.0.8-r1 (24 Oct 2013)
+
+  24 Oct 2013; Justin Lecher <jlec@gentoo.org> -autofs-5.0.8.ebuild,
+  +autofs-5.0.8-r1.ebuild, +files/autofs-5.0.8-ldap-wo-sasl.patch:
+  Backport fix for ldap without sasl, #489128
+
Comment 3 Yixun Lan archtester gentoo-dev 2013-10-25 03:00:51 UTC
Created attachment 361862 [details, diff]
01-autofs-exports-r1.patch

re-opened, I think @jlec accidentally closed this bug..

this error message is printed from file modules/lookup_hosts.c, but this files is not changed from 5.0.7 to 5.0.8, this error could be introduced with the commits to lib/rpc_subs.c.

@Juergen Rose, could you try the attached patch, to see if your problem is still re-producible?
(this revert upstream's commit: 7acfa6cba07a3ad8cb7976046852ce2830bd2f7e)

to test the patch, you can create dir /etc/portage/patches/net-fs/autofs-5.0.8/, and put the file there.

thanks
Comment 4 Yixun Lan archtester gentoo-dev 2013-10-25 03:02:59 UTC
*** Bug 487808 has been marked as a duplicate of this bug. ***
Comment 5 Juergen Rose 2013-12-21 08:37:01 UTC
In October I masked >=net-fs/autofs-5.0.8 in /etc/portage/package.mask. Yesterday I wanted to give a chance to autofs-5.0.8-r1. But I get again the same errors:

The nfs shares are not mounted. 'systemctl status autofs' says:

root@impala:/root(22)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sat 2013-12-21 09:10:40 CET; 17min ago
  Process: 31372 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 31374 (automount)
   CGroup: /system.slice/autofs.service
           └─31374 /usr/sbin/automount --pid-file /run/autofs.pid

Dec 21 09:10:43 impala automount[31374]: get_exports: lookup(hosts): exports lookup failed for caiman
Dec 21 09:10:43 impala automount[31374]: key "caiman" not found in map source(s).
Dec 21 09:13:06 impala automount[31374]: get_exports: lookup(hosts): exports lookup failed for caiman
Dec 21 09:13:06 impala automount[31374]: key "caiman" not found in map source(s).
Dec 21 09:13:35 impala automount[31374]: create_client: hostname lookup failed: System error
Dec 21 09:13:35 impala automount[31374]: create_client: hostname lookup failed: System error
Dec 21 09:13:35 impala automount[31374]: get_exports: lookup(hosts): exports lookup failed for caiman*
Dec 21 09:13:35 impala automount[31374]: key "caiman*" not found in map source(s).
Dec 21 09:16:31 impala automount[31374]: get_exports: lookup(hosts): exports lookup failed for caiman
Dec 21 09:16:31 impala automount[31374]: key "caiman" not found in map source(s).

root@impala:/root(23)# systemctl restart autofs

root@impala:/root(24)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sat 2013-12-21 09:28:32 CET; 3s ago
  Process: 31690 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 31692 (automount)
   CGroup: /system.slice/autofs.service
           └─31692 /usr/sbin/automount --pid-file /run/autofs.pid

Dec 21 09:28:32 impala systemd[1]: Starting Automounts filesystems on demand...
Dec 21 09:28:32 impala systemd[1]: Started Automounts filesystems on demand.

root@impala:/root(25)# ll /net/
total 0

root@impala:/root(26)# ll /net/caiman
/bin/ls: cannot access /net/caiman: No such file or directory

root@impala:/root(27)# ll /net/caiman/home_caiman
/bin/ls: cannot access /net/caiman/home_caiman: No such file or directory
root@impala:/root(28)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sat 2013-12-21 09:28:32 CET; 57s ago
  Process: 31690 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 31692 (automount)
   CGroup: /system.slice/autofs.service
           └─31692 /usr/sbin/automount --pid-file /run/autofs.pid

Dec 21 09:28:32 impala systemd[1]: Starting Automounts filesystems on demand...
Dec 21 09:28:32 impala systemd[1]: Started Automounts filesystems on demand.
Dec 21 09:28:57 impala automount[31692]: get_exports: lookup(hosts): exports lookup failed for caiman
Dec 21 09:28:57 impala automount[31692]: key "caiman" not found in map source(s).

root@impala:/root(29)# genlop -t autofs
 * net-fs/autofs
...
     Sat Aug 24 08:40:37 2013 >>> net-fs/autofs-5.0.7-r4
       merge time: 28 seconds.

     Mon Oct 21 10:06:55 2013 >>> net-fs/autofs-5.0.8
       merge time: 25 seconds.

     Wed Oct 23 09:12:25 2013 >>> net-fs/autofs-5.0.7-r4
       merge time: 35 seconds.

     Thu Dec 19 10:40:23 2013 >>> net-fs/autofs-5.0.8-r1
       merge time: 29 seconds.


So I have to masked again >=autofs-5.0.8.
Comment 6 Yixun Lan archtester gentoo-dev 2013-12-23 07:25:54 UTC
this bug has not been resolved.

Since I can't reproduce myself, so it would be nice if you can test patch in comment 3

or try the live version of autofs[1], since I've seen a few patches queued there

I've also sent a email to upstream for suggestion, thanks

[1] command to install autofs-9999
$ layman -a dlan
$ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
$ emerge =net-fs/autofs-9999
Comment 7 Yixun Lan archtester gentoo-dev 2013-12-24 09:18:58 UTC
could you try latest autofs? upstream have queued a few patches which may solve your proble.

try following command:
EGIT_BRANCH="autofs-5.0.public" emerge =net-fs/autofs-9999
(do *not* have patches in /etc/portage/patches/net-fs/autofs/)

Thanks for testing,
Comment 8 Juergen Rose 2013-12-26 15:29:19 UTC
(In reply to Dennis 'dlan' Lan from comment #6)
> this bug has not been resolved.
> 
> Since I can't reproduce myself, so it would be nice if you can test patch in
> comment 3
> 
> or try the live version of autofs[1], since I've seen a few patches queued
> there
> 
> I've also sent a email to upstream for suggestion, thanks
> 
> [1] command to install autofs-9999
> $ layman -a dlan
> $ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
> $ emerge =net-fs/autofs-9999

I am now using autofs-5.0.8-r1 with the patch of comment 3:

root@impala:/root(4)# emerge -pvD autofs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-fs/autofs-5.0.8-r1::x-portage  USE="ldap sasl -dmalloc -hesiod -libtirpc -mount-locking" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
root@impala:/root(5)# qlist -Iv autofs
net-fs/autofs-5.0.8-r1
root@impala:/root(6)# grep epatch /usr/local/portage/net-fs/autofs/autofs-5.0.8-r1.ebuild
                        epatch "${WORKDIR}"/patches
        epatch "${FILESDIR}"/${P}-ldap-wo-sasl.patch
        epatch "${FILESDIR}"/01-autofs-exports-r1.patch
root@impala:/root(7)# showmount -e condor | grep impala
...
/home_condor                        impala.homenet,caiman.homenet,vilm.homenet,grizzly.homenet,dolphin.homenet,inspironM12.homenet,wildcat.homenet,lynx2.homenet,lynxvirt.homenet,lynx.homenet,thinkpad.homenet,tarantel.homenet,laptop.homenet,STar.homenet,NewSTar.homenet,tiger.bioinf.cs.uni-potsdam.de,lionhomenet.homenet,lion.bioinf.cs.uni-potsdam.de,fox.bioinf.cs.uni-potsdam.de,snake.bioinf.cs.uni-potsdam.de,scorpion.homenet,laptop450.homenet,probe.bioinf.cs.uni-potsdam.de,biogate.bioinf.cs.uni-potsdam.de,shark.homenet,cathomenet.homenet,cheetah.homenet,mouse.homenet,frog.bioinf.cs.uni-potsdam.de,rumpel.bioinf.cs.uni-potsdam.de
...
root@impala:/root(8)# ll /net/condor/home_condor
total 56
drwxr-xr-x   5 root     root      4096 May  7  2012 data_condor/
drwxr-xr-x   2 root     root         0 Dec 26 16:24 ftp/
drwx------   2 root     root     16384 Dec 11  2007 lost+found/
drwxr-xr-x  25 root     root      4096 Feb 16  2010 mouse_slackware_root/
drwxr-xr-x 239 rose     rose     20480 Dec 11 08:35 rose/
drwxr-xr-x  20 touchpad touchpad  4096 Feb 20  2013 rose_test/
drwxr-xr-x  24     1205     1205  4096 Dec 29  2012 test_samba/
drwxrwxr-x   5 root         1027  4096 Mar  7  2010 Virtualization/


Sometimes the access to /net/condor/home_condor is working as above, sometimes not. "systemctl status autofs" still reports error:

root@impala:/root(9)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Thu 2013-12-26 15:02:52 CET; 1h 21min ago
  Process: 1732 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 1801 (automount)
   CGroup: /system.slice/autofs.service
           └─1801 /usr/sbin/automount --pid-file /run/autofs.pid

Dec 26 15:02:52 impala systemd[1]: Started Automounts filesystems on demand.
Dec 26 15:04:26 impala automount[1801]: get_exports: lookup(hosts): exports lookup failed for caiman
Dec 26 15:04:26 impala automount[1801]: key "caiman" not found in map source(s).
Dec 26 15:31:31 impala automount[1801]: get_exports: lookup(hosts): exports lookup failed for conddor
Dec 26 15:31:31 impala automount[1801]: key "conddor" not found in map source(s).


BTW. caiman is down, and maybe I did a typo and entered conddor instead of condor.  I will continue to report the state.
Comment 9 Yixun Lan archtester gentoo-dev 2013-12-29 05:14:19 UTC
could you try the command from comment #7, I've tested, it works fine with libtirpc disabled. so should work for you.
Comment 10 Juergen Rose 2013-12-30 12:47:48 UTC
(In reply to Dennis 'dlan' Lan from comment #9)
> could you try the command from comment #7, I've tested, it works fine with
> libtirpc disabled. so should work for you.

I am now working with autofs-5.0.8-r1 at two systems. 'systemctl status autofs' does not report errors, but the access to the nfs shares does not work allways.
At one system I get for several hours "Too many levels of symbolic links":

root@impala:/usr/local/portage/net-fs/autofs(121)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sun 2013-12-29 17:04:11 CET; 20h ago
  Process: 17455 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 17457 (automount)
   CGroup: /system.slice/autofs.service
           └─17457 /usr/sbin/automount --pid-file /run/autofs.pid

Dec 29 17:04:11 impala systemd[1]: Starting Automounts filesystems on demand...
Dec 29 17:04:11 impala systemd[1]: Started Automounts filesystems on demand.
root@impala:/usr/local/portage/net-fs/autofs(122)# qlist -Iv autofs
net-fs/autofs-5.0.8-r1
root@impala:/usr/local/portage/net-fs/autofs(123)# ll /net/caiman/home_caiman/
/bin/ls: cannot access /net/caiman/home_caiman/: Too many levels of symbolic links

Restarting autofs does not help.


Installing autofs-9999 does not work either:

root@impala:/usr/local/portage/net-fs/autofs(120)# EGIT_BRANCH="autofs-5.0.public" emerge =net-fs/autofs-9999
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "=net-fs/autofs-9999".


(BTW.: libtirp is installed as dependency of nfs-utils, lsof, etc:
root@impala:/usr/local/portage/net-fs/autofs(124)# qlist -Iv libtirpc 
net-libs/libtirpc-0.2.4 )

root@impala:/usr/local/portage/net-fs/autofs(126)# ll /etc/portage/patches/net-fs/autofs
/bin/ls: cannot access /etc/portage/patches/net-fs/autofs: No such file or directory
Comment 11 Yixun Lan archtester gentoo-dev 2013-12-31 02:29:19 UTC
(In reply to Juergen Rose from comment #10)
> (In reply to Dennis 'dlan' Lan from comment #9)
> > could you try the command from comment #7, I've tested, it works fine with
> > libtirpc disabled. so should work for you.
> 
> I am now working with autofs-5.0.8-r1 at two systems. 'systemctl status
> autofs' does not report errors, but the access to the nfs shares does not
> work allways.
> At one system I get for several hours "Too many levels of symbolic links":
> 
> root@impala:/usr/local/portage/net-fs/autofs(121)# systemctl status autofs
> autofs.service - Automounts filesystems on demand
>    Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
>    Active: active (running) since Sun 2013-12-29 17:04:11 CET; 20h ago
>   Process: 17455 ExecStart=/usr/sbin/automount $OPTIONS --pid-file
> /run/autofs.pid (code=exited, status=0/SUCCESS)
>  Main PID: 17457 (automount)
>    CGroup: /system.slice/autofs.service
>            └─17457 /usr/sbin/automount --pid-file /run/autofs.pid
> 
> Dec 29 17:04:11 impala systemd[1]: Starting Automounts filesystems on
> demand...
> Dec 29 17:04:11 impala systemd[1]: Started Automounts filesystems on demand.
> root@impala:/usr/local/portage/net-fs/autofs(122)# qlist -Iv autofs
> net-fs/autofs-5.0.8-r1
> root@impala:/usr/local/portage/net-fs/autofs(123)# ll
> /net/caiman/home_caiman/
> /bin/ls: cannot access /net/caiman/home_caiman/: Too many levels of symbolic
> links
> 
could you also provide your autofs settings (/etc/autofs/auto.{master,misc})?
for autofs-5.0.8-r1, it's also broken here when come to mount nfs fs.

for error you given here, I've seen this patch (for kernel side).
https://lkml.org/lkml/2013/11/28/151

also, it would be good to provide more detail autofs debug info
try to set LOGGING="debug" in file /etc/conf.d/autofs

> Restarting autofs does not help.
> 
> 
> Installing autofs-9999 does not work either:
> 
> root@impala:/usr/local/portage/net-fs/autofs(120)#
> EGIT_BRANCH="autofs-5.0.public" emerge =net-fs/autofs-9999
> Calculating dependencies... done!
> 
> emerge: there are no ebuilds to satisfy "=net-fs/autofs-9999".
> 
you didn't carefully read my comment #6 ?

$ layman -a dlan
$ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
$ EGIT_BRANCH="autofs-5.0.public" USE="-libtirpc" emerge =net-fs/autofs-9999

I've tested, at least it works for me with libtirpc disabled when come to mount nfs type fs.

> 
> (BTW.: libtirp is installed as dependency of nfs-utils, lsof, etc:
don't worry. you don't have to remove libtirpc, just disable USE="-libtirpc" for autofs

> root@impala:/usr/local/portage/net-fs/autofs(124)# qlist -Iv libtirpc 
> net-libs/libtirpc-0.2.4 )
> 
> root@impala:/usr/local/portage/net-fs/autofs(126)# ll
> /etc/portage/patches/net-fs/autofs
> /bin/ls: cannot access /etc/portage/patches/net-fs/autofs: No such file or
> directory
Comment 12 Juergen Rose 2014-01-11 09:55:02 UTC
(In reply to Juergen Rose from comment #8)
> (In reply to Dennis 'dlan' Lan from comment #6)
> > this bug has not been resolved.
> > 
> > Since I can't reproduce myself, so it would be nice if you can test patch in
> > comment 3
> > 
> > or try the live version of autofs[1], since I've seen a few patches queued
> > there
> > 
> > I've also sent a email to upstream for suggestion, thanks
> > 
> > [1] command to install autofs-9999
> > $ layman -a dlan
> > $ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
> > $ emerge =net-fs/autofs-9999
> 
> I am now using autofs-5.0.8-r1 with the patch of comment 3:
> 
> root@impala:/root(4)# emerge -pvD autofs
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] net-fs/autofs-5.0.8-r1::x-portage  USE="ldap sasl -dmalloc
> -hesiod -libtirpc -mount-locking" 0 kB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> root@impala:/root(5)# qlist -Iv autofs
> net-fs/autofs-5.0.8-r1
> root@impala:/root(6)# grep epatch
> /usr/local/portage/net-fs/autofs/autofs-5.0.8-r1.ebuild
>                         epatch "${WORKDIR}"/patches
>         epatch "${FILESDIR}"/${P}-ldap-wo-sasl.patch
>         epatch "${FILESDIR}"/01-autofs-exports-r1.patch
> root@impala:/root(7)# showmount -e condor | grep impala
> ...
> /home_condor                       
> impala.homenet,caiman.homenet,vilm.homenet,grizzly.homenet,dolphin.homenet,
> inspironM12.homenet,wildcat.homenet,lynx2.homenet,lynxvirt.homenet,lynx.
> homenet,thinkpad.homenet,tarantel.homenet,laptop.homenet,STar.homenet,
> NewSTar.homenet,tiger.bioinf.cs.uni-potsdam.de,lionhomenet.homenet,lion.
> bioinf.cs.uni-potsdam.de,fox.bioinf.cs.uni-potsdam.de,snake.bioinf.cs.uni-
> potsdam.de,scorpion.homenet,laptop450.homenet,probe.bioinf.cs.uni-potsdam.de,
> biogate.bioinf.cs.uni-potsdam.de,shark.homenet,cathomenet.homenet,cheetah.
> homenet,mouse.homenet,frog.bioinf.cs.uni-potsdam.de,rumpel.bioinf.cs.uni-
> potsdam.de
> ...
> root@impala:/root(8)# ll /net/condor/home_condor
> total 56
> drwxr-xr-x   5 root     root      4096 May  7  2012 data_condor/
> drwxr-xr-x   2 root     root         0 Dec 26 16:24 ftp/
> drwx------   2 root     root     16384 Dec 11  2007 lost+found/
> drwxr-xr-x  25 root     root      4096 Feb 16  2010 mouse_slackware_root/
> drwxr-xr-x 239 rose     rose     20480 Dec 11 08:35 rose/
> drwxr-xr-x  20 touchpad touchpad  4096 Feb 20  2013 rose_test/
> drwxr-xr-x  24     1205     1205  4096 Dec 29  2012 test_samba/
> drwxrwxr-x   5 root         1027  4096 Mar  7  2010 Virtualization/
> 
> 
> Sometimes the access to /net/condor/home_condor is working as above,
> sometimes not. "systemctl status autofs" still reports error:
> 
> root@impala:/root(9)# systemctl status autofs
> autofs.service - Automounts filesystems on demand
>    Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
>    Active: active (running) since Thu 2013-12-26 15:02:52 CET; 1h 21min ago
>   Process: 1732 ExecStart=/usr/sbin/automount $OPTIONS --pid-file
> /run/autofs.pid (code=exited, status=0/SUCCESS)
>  Main PID: 1801 (automount)
>    CGroup: /system.slice/autofs.service
>            └─1801 /usr/sbin/automount --pid-file /run/autofs.pid
> 
> Dec 26 15:02:52 impala systemd[1]: Started Automounts filesystems on demand.
> Dec 26 15:04:26 impala automount[1801]: get_exports: lookup(hosts): exports
> lookup failed for caiman
> Dec 26 15:04:26 impala automount[1801]: key "caiman" not found in map
> source(s).
> Dec 26 15:31:31 impala automount[1801]: get_exports: lookup(hosts): exports
> lookup failed for conddor
> Dec 26 15:31:31 impala automount[1801]: key "conddor" not found in map
> source(s).
> 
> 
> BTW. caiman is down, and maybe I did a typo and entered conddor instead of
> condor.  I will continue to report the state.


I installed now at the most systems the patched autofs-5.0.8-r1:

root@impala:/usr/src/linux(67)# diff /usr/local/portage/net-fs/autofs/autofs-5.0.8-r1.ebuild  /usr/local/portage/net-fs/autofs/autofs-5.0.8-r1.ebuild_orig 
57d56
<       epatch "${FILESDIR}"/01-autofs-exports-r1.patch

It seems to work at the most systems, but at one system I have again a problem. Autofs is hanging, I can't restart autofs:

root@condor:/usr/src/linux(30)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sa 2014-01-11 10:12:32 CET; 23min ago
  Process: 18513 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 18515 (automount)
   CGroup: /system.slice/autofs.service
           └─18515 /usr/sbin/automount --pid-file /run/autofs.pid

Jan 11 10:11:32 condor systemd[1]: Starting Automounts filesystems on demand...
Jan 11 10:12:32 condor automount[18515]: get_exports: lookup(hosts): exports lookup failed for localhost
Jan 11 10:12:32 condor automount[18515]: key "localhost" not found in map source(s).
Jan 11 10:12:32 condor systemd[1]: Started Automounts filesystems on demand.
root@condor:/usr/src/linux(31)# systemctl restart autofs
^C
root@condor:/usr/src/linux(32)# ll /usr/sbin/automount
-rwxr-xr-x 1 root root 258360 29. Dez 11:25 /usr/sbin/automount*
root@condor:/usr/src/linux(34)# /usr/sbin/automount -V

Linux automount version 5.0.8

Directories:
        config dir:     /etc/conf.d
        maps dir:       /etc/autofs
        modules dir:    /usr/lib64/autofs

Compile options:
  DISABLE_MOUNT_LOCKING ENABLE_FORCED_SHUTDOWN ENABLE_IGNORE_BUSY_MOUNTS 
  WITH_LDAP WITH_SASL LIBXML2_WORKAROUND 

root@condor:/usr/src/linux(29)# emerge -pvD autofs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-fs/autofs-5.0.8-r1::local  USE="ldap sasl -dmalloc -hesiod -libtirpc -mount-locking" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 13 Juergen Rose 2014-01-11 10:27:50 UTC
(In reply to Yixun Lan from comment #11)
> (In reply to Juergen Rose from comment #10)
> > (In reply to Dennis 'dlan' Lan from comment #9)
> > > could you try the command from comment #7, I've tested, it works fine with
> > > libtirpc disabled. so should work for you.
> > 
> > I am now working with autofs-5.0.8-r1 at two systems. 'systemctl status
> > autofs' does not report errors, but the access to the nfs shares does not
> > work allways.
> > At one system I get for several hours "Too many levels of symbolic links":
> > 
> > root@impala:/usr/local/portage/net-fs/autofs(121)# systemctl status autofs
> > autofs.service - Automounts filesystems on demand
> >    Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
> >    Active: active (running) since Sun 2013-12-29 17:04:11 CET; 20h ago
> >   Process: 17455 ExecStart=/usr/sbin/automount $OPTIONS --pid-file
> > /run/autofs.pid (code=exited, status=0/SUCCESS)
> >  Main PID: 17457 (automount)
> >    CGroup: /system.slice/autofs.service
> >            └─17457 /usr/sbin/automount --pid-file /run/autofs.pid
> > 
> > Dec 29 17:04:11 impala systemd[1]: Starting Automounts filesystems on
> > demand...
> > Dec 29 17:04:11 impala systemd[1]: Started Automounts filesystems on demand.
> > root@impala:/usr/local/portage/net-fs/autofs(122)# qlist -Iv autofs
> > net-fs/autofs-5.0.8-r1
> > root@impala:/usr/local/portage/net-fs/autofs(123)# ll
> > /net/caiman/home_caiman/
> > /bin/ls: cannot access /net/caiman/home_caiman/: Too many levels of symbolic
> > links
> > 
> could you also provide your autofs settings (/etc/autofs/auto.{master,misc})?
> for autofs-5.0.8-r1, it's also broken here when come to mount nfs fs.
> 

At the most systems I have something like:

root@impala:/usr/src/linux(71)# 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
#
# 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
root@impala:/usr/src/linux(72)# cat /etc/autofs/auto.misc
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

kernel          -ro,soft,intr           ftp.kernel.org:/pub/linux
cd                      -fstype=iso9660,ro      :/dev/cdrom

# the following entries are samples to pique your imagination
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
floppy_d        -fstype=vfat,umask=000  :/dev/fd0
floppy_e2       -fstype=ext2,user               :/dev/fd0
floppy          -fstype=auto                    :/dev/fd0
floppy_e2h      -fstype=ext2,user               :/dev/fd0u1722
#jaz            -fstype=ext2,user               :/dev/sdc1

#molbio00_home0         -rw,soft,intr   molbio00:/home0



> for error you given here, I've seen this patch (for kernel side).
> https://lkml.org/lkml/2013/11/28/151
> 
> also, it would be good to provide more detail autofs debug info
> try to set LOGGING="debug" in file /etc/conf.d/autofs
> 

I just did, and I just noticed, that there was not /etc/conf.d/autofs at condor,
compare Comment 12. I just reinstalled autofs at condor:
...
>>> Installing (1 of 1) net-fs/autofs-5.0.8-r1
 * checking 45 files for package collisions
>>> Merging net-fs/autofs-5.0.8-r1 to /
...
--- replaced dir /etc/init.d
--- replaced dir /etc/conf.d
--- replaced obj /etc/autofs/autofs_ldap_auth.conf
--- replaced obj /etc/autofs/auto.smb

and no /etc/conf.d/autofs is installed.
root@condor:/usr/src/linux(41)# qlist -v autofs | grep conf.d
root@condor:/usr/src/linux(42)#


> > Restarting autofs does not help.
> > 
> > 
> > Installing autofs-9999 does not work either:
> > 
> > root@impala:/usr/local/portage/net-fs/autofs(120)#
> > EGIT_BRANCH="autofs-5.0.public" emerge =net-fs/autofs-9999
> > Calculating dependencies... done!
> > 
> > emerge: there are no ebuilds to satisfy "=net-fs/autofs-9999".
> > 
> you didn't carefully read my comment #6 ?
> 
> $ layman -a dlan
> $ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
> $ EGIT_BRANCH="autofs-5.0.public" USE="-libtirpc" emerge =net-fs/autofs-9999
> 

Sorry for not reading carefully. I just add the overlay dlan. Inserted "=net-fs/autofs-9999" in /etc/portage/package.keywords (I do not have a /etc/portage/package.keywords directory, but a file. Is it correct?).
Then I did:

root@impala:/usr/src/linux(83)# grep autofs /etc/portage/package.keywords
=net-fs/autofs-9999 **

root@impala:/usr/src/linux(84)# EGIT_BRANCH="autofs-5.0.public" USE="-libtirpc" emerge =net-fs/autofs-9999
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-fs/autofs-9999 from dlan
...
>>> Installing (1 of 1) net-fs/autofs-9999
 * If you plan on using autofs for automounting remote NFS mounts,
 * please check that both portmap (or rpcbind) and rpc.statd/lockd
 * are running.
...
root@impala:/usr/src/linux(85)# systemctl restart autofs
Warning: Unit file of autofs.service changed on disk, 'systemctl daemon-reload' recommended.
root@impala:/usr/src/linux(86)# systemctl daemon-reload
root@impala:/usr/src/linux(87)# systemctl restart autofs
root@impala:/usr/src/linux(88)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Sat 2014-01-11 11:22:15 CET; 6s ago
  Process: 30579 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 30581 (automount)
   CGroup: /system.slice/autofs.service
           └─30581 /usr/sbin/automount --pid-file /run/autofs.pid

Jan 11 11:22:20 impala automount[30581]: mount_mount: mount(nfs): calling mkdir_path /net/caiman/home_caiman
Jan 11 11:22:20 impala automount[30581]: mount_mount: mount(nfs): calling mount -t nfs -s -o nosuid,nodev,intr caiman:/home_caiman /net/caiman/home_caiman
Jan 11 11:22:20 impala automount[30581]: spawn_mount: mtab link detected, passing -n to mount
Jan 11 11:22:20 impala automount[30581]: mount_mount: mount(nfs): mounted caiman:/home_caiman on /net/caiman/home_caiman
Jan 11 11:22:20 impala automount[30581]: do_mount_autofs_offset: mount offset /net/caiman/home_caiman/ftp at /net/caiman/home_caiman
Jan 11 11:22:20 impala automount[30581]: mount_autofs_offset: calling mount -t autofs -s  -o fd=13,pgrp=30581,minproto=5,maxproto=5,offset aut...aiman/ftp
Jan 11 11:22:20 impala automount[30581]: mounted offset on /net/caiman/home_caiman/ftp with timeout 300, freq 75 seconds
Jan 11 11:22:20 impala automount[30581]: mount_autofs_offset: mounted trigger /net/caiman/home_caiman/ftp at /net/caiman/home_caiman/ftp
Jan 11 11:22:20 impala automount[30581]: dev_ioctl_send_ready: token = 1547
Jan 11 11:22:20 impala automount[30581]: mounted /net/caiman/home_caiman
Hint: Some lines were ellipsized, use -l to show in full.

I will continue to observe the behaviour.

> I've tested, at least it works for me with libtirpc disabled when come to
> mount nfs type fs.
> 
> > 
> > (BTW.: libtirp is installed as dependency of nfs-utils, lsof, etc:
> don't worry. you don't have to remove libtirpc, just disable USE="-libtirpc"
> for autofs
> 
> > root@impala:/usr/local/portage/net-fs/autofs(124)# qlist -Iv libtirpc 
> > net-libs/libtirpc-0.2.4 )
> > 
> > root@impala:/usr/local/portage/net-fs/autofs(126)# ll
> > /etc/portage/patches/net-fs/autofs
> > /bin/ls: cannot access /etc/portage/patches/net-fs/autofs: No such file or
> > directory
Comment 14 Juergen Rose 2014-01-16 13:57:48 UTC
(In reply to Yixun Lan from comment #11)
> (In reply to Juergen Rose from comment #10)
> > (In reply to Dennis 'dlan' Lan from comment #9)
> > > could you try the command from comment #7, I've tested, it works fine with
> > > libtirpc disabled. so should work for you.
> > 
...
I tried to install autofs-9999 on my next system (wildcat), the unpatched autofs-5.0.8-r1 was installed and I had problems to access NFS shares. The installation of autofs-9999 fails with:
...
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_parse.tab.c
In file included from /usr/include/rpc/rpc.h:48:0,
                 from rpc_subs.c:23:
rpc_subs.c: In function ‘rpc_getport’:
master_tok.l:454:0: warning: "min" redefined [enabled by default]
 
 ^
rpc_subs.c:253:41: error: ‘port’ undeclared (first use in this function)
      (xdrproc_t) xdr_u_short, (caddr_t) port,
                                         ^
rpc_subs.c:253:41: note: each undeclared identifier is reported only once for each function it appears in
In file included from master_tok.l:423:0:
../include/automount.h:118:0: note: this is the location of the previous definition
 #define min(a, b) (a <= b ? a : b)
 ^
rpc_subs.c: In function ‘rpc_portmap_getport’:
rpc_subs.c:907:2: error: too many arguments to function ‘rpc_getport’
  status = rpc_getport(&pmap_info, parms, client, port);
  ^
rpc_subs.c:237:12: note: declared here
 static int rpc_getport(struct conn_info *info,
            ^
../Makefile.rules:64: recipe for target 'rpc_subs.o' failed
make[1]: *** [rpc_subs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/net-fs/autofs-9999/work/autofs-9999/lib'

> also, it would be good to provide more detail autofs debug info
> try to set LOGGING="debug" in file /etc/conf.d/autofs

again there is not any  /etc/conf.d/autofs:

root@wildcat:/root(30)# qlist -Iv autofs
net-fs/autofs-5.0.8-r1
root@wildcat:/root(31)# ll /etc/conf.d/autofs
/bin/ls: cannot access /etc/conf.d/autofs: No such file or directory
root@wildcat:/root(32)# qlist -v autofs | grep conf.d


root@wildcat:/root(33)# emerge --info '=net-fs/autofs-9999::dlan'
Portage 2.2.8 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.12.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.2
KiB Mem:     3971840 total,    376816 free
KiB Swap:   12582908 total,  12578160 free
Timestamp of tree: Thu, 16 Jan 2014 03:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r1
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science sunrise lordvan dlan x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_wildcat"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/lordvan /var/lib/layman/dlan /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex jbig john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps dm lvm mdraid syslog" DVB_CARDS="usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


root@wildcat:/root(34)# emerge -pqv '=net-fs/autofs-9999::dlan'
[ebuild     U ] net-fs/autofs-9999 [5.0.8-r1] USE="ldap sasl -dmalloc -hesiod -libtirpc -mount-locking" 

Any hint is appreciated. 
I could emerge the patched autofs-5.0.8-r1 and it seems to work:

root@wildcat:/usr/local/portage/net-fs(45)# qlist -Iv autofs
net-fs/autofs-5.0.8-r1
root@wildcat:/usr/local/portage/net-fs(46)# emerge -pvD =autofs-5.0.8-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-fs/autofs-5.0.8-r1::x-portage  USE="ldap sasl -dmalloc -hesiod -libtirpc -mount-locking" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
root@wildcat:/usr/local/portage/net-fs(47)# systemctl restart autofs
Warning: Unit file of autofs.service changed on disk, 'systemctl daemon-reload' recommended.
root@wildcat:/usr/local/portage/net-fs(48)# systemctl daemon-reload
root@wildcat:/usr/local/portage/net-fs(49)# systemctl restart autofs
root@wildcat:/usr/local/portage/net-fs(50)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Thu 2014-01-16 14:56:35 CET; 8s ago
  Process: 23443 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 23445 (automount)
   CGroup: /system.slice/autofs.service
           └─23445 /usr/sbin/automount --pid-file /run/autofs.pid

Jan 16 14:56:35 wildcat systemd[1]: Started Automounts filesystems on demand.
root@wildcat:/usr/local/portage/net-fs(51)# ll /net/leopard/home_leopard/
total 40
drwxr-xr-x   3     999      972  4096 Feb 13  2013 davfs2/
drwxr-xr-x   2 root    root         0 Jan 16 14:57 ftp/
drwx------   2 root    root     16384 Mar 16  2012 lost+found/
drwxr-xr-x 110 rose        1203 12288 Jan 15 20:37 rose/
drwxr-xr-x  24 rosenew rosenew   4096 Sep 13 17:08 rose_test/
drwxr-xr-x  16    1205 nwaccess  4096 Sep 13 14:35 rose_test2/
Comment 15 Juergen Rose 2014-01-16 13:58:52 UTC
Created attachment 367948 [details]
build.log of net-fs/autofs-9999
Comment 16 Juergen Rose 2014-01-16 14:05:14 UTC
(In reply to Juergen Rose from comment #14)
> (In reply to Yixun Lan from comment #11)
...
> I could emerge the patched autofs-5.0.8-r1 and it seems to work:
> 
> root@wildcat:/usr/local/portage/net-fs(45)# qlist -Iv autofs
> net-fs/autofs-5.0.8-r1
> root@wildcat:/usr/local/portage/net-fs(46)# emerge -pvD =autofs-5.0.8-r1
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] net-fs/autofs-5.0.8-r1::x-portage  USE="ldap sasl -dmalloc
> -hesiod -libtirpc -mount-locking" 0 kB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> root@wildcat:/usr/local/portage/net-fs(47)# systemctl restart autofs
> Warning: Unit file of autofs.service changed on disk, 'systemctl
> daemon-reload' recommended.
> root@wildcat:/usr/local/portage/net-fs(48)# systemctl daemon-reload
> root@wildcat:/usr/local/portage/net-fs(49)# systemctl restart autofs
> root@wildcat:/usr/local/portage/net-fs(50)# systemctl status autofs
> autofs.service - Automounts filesystems on demand
>    Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
>    Active: active (running) since Thu 2014-01-16 14:56:35 CET; 8s ago
>   Process: 23443 ExecStart=/usr/sbin/automount $OPTIONS --pid-file
> /run/autofs.pid (code=exited, status=0/SUCCESS)
>  Main PID: 23445 (automount)
>    CGroup: /system.slice/autofs.service
>            └─23445 /usr/sbin/automount --pid-file /run/autofs.pid
> 
> Jan 16 14:56:35 wildcat systemd[1]: Started Automounts filesystems on demand.
> root@wildcat:/usr/local/portage/net-fs(51)# ll /net/leopard/home_leopard/
> total 40
> drwxr-xr-x   3     999      972  4096 Feb 13  2013 davfs2/
> drwxr-xr-x   2 root    root         0 Jan 16 14:57 ftp/
> drwx------   2 root    root     16384 Mar 16  2012 lost+found/
> drwxr-xr-x 110 rose        1203 12288 Jan 15 20:37 rose/
> drwxr-xr-x  24 rosenew rosenew   4096 Sep 13 17:08 rose_test/
> drwxr-xr-x  16    1205 nwaccess  4096 Sep 13 14:35 rose_test2/

Some minutes later it does not work anymore:

root@wildcat:/usr/src(58)# ll /net/leopard/home_leopard/
/bin/ls: cannot access /net/leopard/home_leopard/: Too many levels of symbolic links
Comment 17 Juergen Rose 2014-01-23 19:56:08 UTC
(In reply to Yixun Lan from comment #6)
> this bug has not been resolved.
> 
> Since I can't reproduce myself, so it would be nice if you can test patch in
> comment 3
> 
> or try the live version of autofs[1], since I've seen a few patches queued
> there
> 
> I've also sent a email to upstream for suggestion, thanks
> 
> [1] command to install autofs-9999
> $ layman -a dlan
> $ echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
> $ emerge =net-fs/autofs-9999

'layman -a dlan' fails now:

root@cheetahnew:/root(3)# layman -a dlan 

 * Adding overlay,...
 * Running Git... # ( cd /var/lib/layman  && /usr/bin/git clone git://github.com/dlanx/dlan-overlay.git /var/lib/layman/dlan )
Cloning into '/var/lib/layman/dlan'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection timed out

 * Failure result returned from Git
 * Running Git... # ( cd /var/lib/layman/dlan  && /usr/bin/git config user.name "layman" )
 * [Errno 2] No such file or directory: '/var/lib/layman/dlan'
 * Adding repository "dlan" failed!

 * CLI: Errors occurred processing action add
 * Adding repository "dlan" failed!

root@cheetahnew:/root(4)# echo "=net-fs/autofs-9999 **">> /etc/portage/package.keywords/autofs
root@cheetahnew:/root(5)# layman -a dlan 

 * Adding overlay,...
 * Running Git... # ( cd /var/lib/layman  && /usr/bin/git clone git://github.com/dlanx/dlan-overlay.git /var/lib/layman/dlan )
Cloning into '/var/lib/layman/dlan'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out

 * Failure result returned from Git
 * Running Git... # ( cd /var/lib/layman/dlan  && /usr/bin/git config user.name "layman" )
 * [Errno 2] No such file or directory: '/var/lib/layman/dlan'
 * Adding repository "dlan" failed!

 * CLI: Errors occurred processing action add
 * Adding repository "dlan" failed!
Comment 18 Juergen Rose 2014-01-27 07:49:40 UTC
At the next system 'emerge =net-fs/autofs-9999' fails with:

x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_parse.tab.c
In file included from /usr/include/rpc/rpc.h:48:0,
                 from rpc_subs.c:23:
rpc_subs.c: In Funktion »rpc_getport«:
rpc_subs.c:253:41: Fehler: »port« nicht deklariert (erste Benutzung in dieser Funktion)
      (xdrproc_t) xdr_u_short, (caddr_t) port,
                                         ^
rpc_subs.c:253:41: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet
rpc_subs.c: In Funktion »rpc_portmap_getport«:
rpc_subs.c:907:2: Fehler: zu viele Argumente für Funktion »rpc_getport«
  status = rpc_getport(&pmap_info, parms, client, port);
  ^
rpc_subs.c:237:12: Anmerkung: hier deklariert
 static int rpc_getport(struct conn_info *info,
            ^
../Makefile.rules:64: recipe for target 'rpc_subs.o' failed
make[1]: *** [rpc_subs.o] Error 1
...
>>> Failed to emerge net-fs/autofs-9999, Log file:

>>>  '/var/tmp/portage/net-fs/autofs-9999/temp/build.log'
root@caiman:/usr/local/portage/net-fs(36)#


Sorry for the german messages: It means:
rpc_subs.c:253:41: Error: »port« not declared
...
rpc_subs.c:907:2: Error: too much arguments for function »rpc_getport«
Comment 19 Juergen Rose 2014-02-07 12:24:06 UTC
(In reply to Juergen Rose from comment #18)
> At the next system 'emerge =net-fs/autofs-9999' fails with:
> 
> x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -D_REENTRANT
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include
> -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\"
> -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl
> -c master_parse.tab.c
> In file included from /usr/include/rpc/rpc.h:48:0,
>                  from rpc_subs.c:23:
> rpc_subs.c: In Funktion »rpc_getport«:
> rpc_subs.c:253:41: Fehler: »port« nicht deklariert (erste Benutzung in
> dieser Funktion)
>       (xdrproc_t) xdr_u_short, (caddr_t) port,
>                                          ^
> rpc_subs.c:253:41: Anmerkung: jeder nicht deklarierte Bezeichner wird nur
> einmal für jede Funktion, in der er vorkommt, gemeldet
> rpc_subs.c: In Funktion »rpc_portmap_getport«:
> rpc_subs.c:907:2: Fehler: zu viele Argumente für Funktion »rpc_getport«
>   status = rpc_getport(&pmap_info, parms, client, port);
>   ^
> rpc_subs.c:237:12: Anmerkung: hier deklariert
>  static int rpc_getport(struct conn_info *info,
>             ^
> ../Makefile.rules:64: recipe for target 'rpc_subs.o' failed
> make[1]: *** [rpc_subs.o] Error 1
> ...
> >>> Failed to emerge net-fs/autofs-9999, Log file:
> 
> >>>  '/var/tmp/portage/net-fs/autofs-9999/temp/build.log'
> root@caiman:/usr/local/portage/net-fs(36)#
> 
> 
> Sorry for the german messages: It means:
> rpc_subs.c:253:41: Error: »port« not declared
> ...
> rpc_subs.c:907:2: Error: too much arguments for function »rpc_getport«

It fails at the second system (wildcat) with the same and at the third (cheetahnew) with a similar error:

wildcat:
========

x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c rpc_subs.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_tok.c
master_tok.l:454:0: warning: "min" redefined [enabled by default]
 
 ^
In file included from master_tok.l:423:0:
../include/automount.h:118:0: note: this is the location of the previous definition
 #define min(a, b) (a <= b ? a : b)
 ^
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_parse.tab.c
In file included from /usr/include/rpc/rpc.h:48:0,
                 from rpc_subs.c:23:
rpc_subs.c: In function ‘rpc_getport’:
rpc_subs.c:253:41: error: ‘port’ undeclared (first use in this function)
      (xdrproc_t) xdr_u_short, (caddr_t) port,
                                         ^
rpc_subs.c:253:41: note: each undeclared identifier is reported only once for each function it appears in
rpc_subs.c: In function ‘rpc_portmap_getport’:
rpc_subs.c:907:2: error: too many arguments to function ‘rpc_getport’
  status = rpc_getport(&pmap_info, parms, client, port);
  ^
rpc_subs.c:237:12: note: declared here
 static int rpc_getport(struct conn_info *info,
            ^
../Makefile.rules:64: recipe for target 'rpc_subs.o' failed
make[1]: *** [rpc_subs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/net-fs/autofs-9999/work/autofs-9999/lib'
Makefile:14: recipe for target 'daemon' failed
make: *** [daemon] Error 2
 * ERROR: net-fs/autofs-9999::dlan failed (compile phase):


cheetahnew:
===========
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c rpc_subs.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_tok.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -I/usr/include/libxml2 -lxml2 -lz -lm -ldl -c master_parse.tab.c
In file included from /usr/include/rpc/rpc.h:48:0,
                 from rpc_subs.c:23:
rpc_subs.c: In function ‘rpc_getport’:
rpc_subs.c:253:41: error: ‘port’ undeclared (first use in this function)
      (xdrproc_t) xdr_u_short, (caddr_t) port,
                                         ^
rpc_subs.c:253:41: note: each undeclared identifier is reported only once for each function it appears in
rpc_subs.c: In function ‘rpc_portmap_getport’:
rpc_subs.c:907:2: error: too many arguments to function ‘rpc_getport’
  status = rpc_getport(&pmap_info, parms, client, port);
  ^
rpc_subs.c:237:12: note: declared here
 static int rpc_getport(struct conn_info *info,
            ^
../Makefile.rules:64: recipe for target 'rpc_subs.o' failed
make[1]: *** [rpc_subs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
master_tok.l:454:0: warning: "min" redefined [enabled by default]
 
 ^
In file included from master_tok.l:423:0:
../include/automount.h:118:0: note: this is the location of the previous definition
 #define min(a, b) (a <= b ? a : b)
 ^
make[1]: Leaving directory '/var/tmp/portage/net-fs/autofs-9999/work/autofs-9999/lib'
Makefile:14: recipe for target 'daemon' failed
make: *** [daemon] Error 2
 * ERROR: net-fs/autofs-9999::dlan failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-fs/autofs-9999::dlan'`,
 * the complete build log and the output of `emerge -pqv '=net-fs/autofs-9999::dlan'`.
 * The complete build log is located at '/var/tmp/portage/net-fs/autofs-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/autofs-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-fs/autofs-9999/work/autofs-9999'
 * S: '/var/tmp/portage/net-fs/autofs-9999/work/autofs-9999'

>>> Failed to emerge net-fs/autofs-9999, Log file:

>>>  '/var/tmp/portage/net-fs/autofs-9999/temp/build.log'
Comment 20 Juergen Rose 2014-02-07 12:30:23 UTC
Add some systems I could install autofs-9999. But nevertheless I got of some of them the old error:

key "HOSTNAME" not found in map source(s
Comment 21 Juergen Rose 2014-02-07 12:34:36 UTC
Add some systems I could install autofs-9999. But nevertheless I got of some of them the old error:

   key "HOSTNAME" not found in map source(s).


root@leopard:/root(4)# qlist -Iv autofs
net-fs/autofs-9999
root@leopard:/root(5)# ll /net/cheetahnew/home_cheetahnew
/bin/ls: cannot access /net/cheetahnew/home_cheetahnew: No such file or directory
root@leopard:/root(6)# ^C
root@leopard:/root(6)# systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Thu 2014-02-06 18:53:23 CET; 14h ago
  Process: 2857 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 2903 (automount)
   CGroup: /system.slice/autofs.service
           └─2903 /usr/sbin/automount --pid-file /run/autofs.pid

Feb 06 18:53:23 leopard systemd[1]: Started Automounts filesystems on demand.
Feb 07 09:04:10 leopard automount[2903]: get_exports: lookup(hosts): exports lookup failed for cheetahnew
Feb 07 09:04:10 leopard automount[2903]: key "cheetahnew" not found in map source(s).
Feb 07 09:44:16 leopard automount[2903]: get_exports: lookup(hosts): exports lookup failed for cheetahnew
Feb 07 09:44:16 leopard automount[2903]: key "cheetahnew" not found in map source(s).
Feb 07 09:45:51 leopard automount[2903]: get_exports: lookup(hosts): exports lookup failed for cheetahnew.ibmt.intern
Feb 07 09:45:51 leopard automount[2903]: key "cheetahnew.ibmt.intern" not found in map source(s).
Feb 07 09:46:43 leopard automount[2903]: get_exports: lookup(hosts): exports lookup failed for cheetahnew
Feb 07 09:46:43 leopard automount[2903]: key "cheetahnew" not found in map source(s).
root@leopard:/root(7)# genlop -t autofs | tail

     Thu Sep  5 19:53:46 2013 >>> net-fs/autofs-5.0.7-r4
       merge time: 26 seconds.

     Mon Dec 30 21:43:23 2013 >>> net-fs/autofs-5.0.8-r1
       merge time: 21 seconds.

     Mon Jan 13 13:32:56 2014 >>> net-fs/autofs-9999
       merge time: 28 seconds.


It helped to restart nfsd on cheetahnew.
Comment 22 Yixun Lan archtester gentoo-dev 2014-03-28 22:09:24 UTC
I've just bumped to 5.0.9, could you give it a try again?
a lot bugs have been fixed, a few relate to libtirpc/getport()

http://lkml.org/lkml/2014/3/28/33
Comment 23 Juergen Rose 2014-04-05 09:39:35 UTC
(In reply to Yixun Lan from comment #22)
> I've just bumped to 5.0.9, could you give it a try again?
> a lot bugs have been fixed, a few relate to libtirpc/getport()
> 
> http://lkml.org/lkml/2014/3/28/33

I have now for some days autofs-5.0.9 on my systems. Normally everything is working, but I still get sometimes errors, e.g.:



root@impala:/root(34)# genlop -t autofs | tail

     Wed Dec 25 12:13:50 2013 >>> net-fs/autofs-5.0.8-r1
       merge time: 27 seconds.

     Sat Jan 11 11:20:56 2014 >>> net-fs/autofs-9999
       merge time: 59 seconds.

     Tue Apr  1 13:38:45 2014 >>> net-fs/autofs-5.0.9
       merge time: 27 seconds.

root@impala:/root(35)# systemctl restart autofs
root@impala:/root(36)# ll /net/caiman/home_caiman/
/bin/ls: cannot access /net/caiman/home_caiman/: Too many levels of symbolic links
Comment 24 Juergen Rose 2014-04-22 06:24:50 UTC
(In reply to Yixun Lan from comment #22)
> I've just bumped to 5.0.9, could you give it a try again?
> a lot bugs have been fixed, a few relate to libtirpc/getport()
> 
> http://lkml.org/lkml/2014/3/28/33

The next issue: the access to NFS shares is locked. 'systemctl status autofs'
shows that there are no keys for some systems (molbio10.bio.uni-potsdam.de, pohl, zaurus3usb, ...), which are in my /etc/hosts, but not in my local network and which are down. Under /net I find 312 entries. And I do not have any idea, why the my system want to access these systems. My system is up for four days. I am shure, that I did not made any attempt to access these systems. I tried to restart autofs, but there are still remaining errors. The execution of 'systemctl status autofs' needs a long time (more than one minute). But the network seems to be OK.

condor ~ # systemctl status autofs
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: deactivating (stop-sigterm) since Tue 2014-04-22 07:50:23 CEST; 18s ago
  Process: 2786 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 2812 (automount)
   CGroup: /system.slice/autofs.service
           ├─ 2812 /usr/sbin/automount --pid-file /run/autofs.pid
           ├─18669 /usr/sbin/automount --pid-file /run/autofs.pid
           └─31792 /usr/sbin/automount --pid-file /run/autofs.pid

Apr 19 04:43:43 condor automount[2812]: key "molbio10.bio.uni-potsdam.de" not found in map source(s).
Apr 19 04:43:51 condor automount[2812]: get_exports: lookup(hosts): exports lookup failed for pohl
Apr 19 04:43:51 condor automount[2812]: key "pohl" not found in map source(s).
Apr 19 04:43:59 condor automount[2812]: get_exports: lookup(hosts): exports lookup failed for zaurus3usb
Apr 19 04:43:59 condor automount[2812]: key "zaurus3usb" not found in map source(s).
Apr 19 04:44:07 condor automount[2812]: get_exports: lookup(hosts): exports lookup failed for rumpel.bioinf.cs.uni-potsdam.de
Apr 19 04:44:07 condor automount[2812]: key "rumpel.bioinf.cs.uni-potsdam.de" not found in map source(s).
Apr 19 04:44:15 condor automount[2812]: get_exports: lookup(hosts): exports lookup failed for pauluhn
Apr 19 04:44:15 condor automount[2812]: key "pauluhn" not found in map source(s).
Apr 22 07:50:23 condor systemd[1]: Stopping Automounts filesystems on demand...
condor ~ # qlist -Iv autofs
net-fs/autofs-5.0.9
condor ~ # uptime
 07:52:34 up 4 days, 13:59,  3 users,  load average: 0.02, 0.02, 0.05

condor ~ # systemctl stop autofs
condor ~ # systemctl start autofs
condor ~ # systemctl status autofs
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Tue 2014-04-22 08:05:52 CEST; 8s ago
  Process: 3679 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 3681 (automount)
   CGroup: /system.slice/autofs.service
           └─3681 /usr/sbin/automount --pid-file /run/autofs.pid

Apr 22 08:05:52 condor automount[3681]: get_exports: lookup(hosts): exports lookup failed for localhost
Apr 22 08:05:52 condor automount[3681]: key "localhost" not found in map source(s).
Apr 22 08:05:52 condor systemd[1]: Started Automounts filesystems on demand.


condor ~ # time systemctl restart autofs

real    1m2.249s
user    0m0.003s
sys     0m0.000s
condor ~ # ping www.google.de
PING www.google.de (173.194.69.94) 56(84) bytes of data.
64 bytes from bk-in-f94.1e100.net (173.194.69.94): icmp_seq=1 ttl=50 time=687 ms
64 bytes from bk-in-f94.1e100.net (173.194.69.94): icmp_seq=2 ttl=50 time=599 ms
^C
--- www.google.de ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2409ms
rtt min/avg/max/mdev = 599.652/643.687/687.723/44.042 ms


condor ~ # ls -l /net | wc
    312    2801   18374
Comment 25 Juergen Rose 2014-04-22 07:27:34 UTC
The only solution to cancel the hanging autofs I found, was to reboot. Now autofs seems to work. But even after reboot, I got now 313 entries under /net.

root@condor:/root(6)# 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
#/misc  /etc/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
root@condor:/root(7)# cat /etc/autofs/auto.misc
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

kernel          -ro,soft,intr           ftp.kernel.org:/pub/linux
cd                      -fstype=iso9660,ro      :/dev/cdrom

# the following entries are samples to pique your imagination
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
floppy_d        -fstype=vfat,umask=000  :/dev/fd0
floppy_e2       -fstype=ext2,user               :/dev/fd0
floppy          -fstype=auto                    :/dev/fd0
floppy_e2h      -fstype=ext2,user               :/dev/fd0u1722
#jaz            -fstype=ext2,user               :/dev/sdc1

#molbio00_home0         -rw,soft,intr   molbio00:/home0



Any idea, what could be wrong here?
Comment 26 Juergen Rose 2014-04-22 07:44:19 UTC
I have 315 lines in /etc/hosts at condor. It looks, if almost for any entry in /etc/hosts a subdirectory under /net is created.
Comment 27 Juergen Rose 2014-04-22 07:48:42 UTC
root@condor:/root(23)# grep "^[^#]" /etc/hosts | sort -k 2| tail -n5
192.168.1.203           zaurus3.homenet                                                                         zaurus3h
192.168.129.203 zaurus3usb                                                                                              zaurus3usb zaurus3
192.168.1.204           zaurus4.homenet                                                                         zaurus4h
192.168.1.150           zaurus_eth.homenet                                                              zaurus_eth
10.101.10.40    zelos.golm.ibmt.fraunhofer.de     zelos novell
root@condor:/root(24)# ll /net | tail -n5
dr-xr-xr-x 2 root root 0 Apr 22 09:13 zaurus3.homenet/
dr-xr-xr-x 2 root root 0 Apr 22 09:13 zaurus3usb/
dr-xr-xr-x 2 root root 0 Apr 22 09:13 zaurus4.homenet/
dr-xr-xr-x 2 root root 0 Apr 22 09:13 zaurus_eth.homenet/
dr-xr-xr-x 2 root root 0 Apr 22 09:13 zelos.golm.ibmt.fraunhofer.de/
Comment 28 Juergen Rose 2014-04-22 10:11:23 UTC
(In reply to Juergen Rose from comment #23)
> (In reply to Yixun Lan from comment #22)
> > I've just bumped to 5.0.9, could you give it a try again?
> > a lot bugs have been fixed, a few relate to libtirpc/getport()
> > 
> > http://lkml.org/lkml/2014/3/28/33
> 
> I have now for some days autofs-5.0.9 on my systems. Normally everything is
> working, but I still get sometimes errors, e.g.:
> 
> 
> 
> root@impala:/root(34)# genlop -t autofs | tail
> 
>      Wed Dec 25 12:13:50 2013 >>> net-fs/autofs-5.0.8-r1
>        merge time: 27 seconds.
> 
>      Sat Jan 11 11:20:56 2014 >>> net-fs/autofs-9999
>        merge time: 59 seconds.
> 
>      Tue Apr  1 13:38:45 2014 >>> net-fs/autofs-5.0.9
>        merge time: 27 seconds.
> 
> root@impala:/root(35)# systemctl restart autofs
> root@impala:/root(36)# ll /net/caiman/home_caiman/
> /bin/ls: cannot access /net/caiman/home_caiman/: Too many levels of symbolic
> links


Just this error has happened again:

root@impala:/root(33)# ll /net/caiman/
total 4
drwxr-xr-x  2 root root    0 Apr 22 06:02 data_caiman/
drwxr-xr-x  2 root root    0 Apr 22 06:02 home_caiman/
drwxr-xr-x 19 root root 4096 Apr  6 06:20 usr/
drwxr-xr-x  2 root root    0 Apr 22 06:02 var/

root@impala:/root(34)# ll /net/caiman/home_caiman
/bin/ls: cannot open directory /net/caiman/home_caiman: Too many levels of symbolic links

root@impala:/root(36)# systemctl -l status autofs
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: active (running) since Tue 2014-04-22 11:54:44 CEST; 1min 17s ago
  Process: 25158 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 25160 (automount)
   CGroup: /system.slice/autofs.service
           └─25160 /usr/sbin/automount --pid-file /run/autofs.pid

Apr 22 11:54:45 impala automount[25160]: do_mount_autofs_offset: mount offset /net/caiman/usr/portage_caiman at /net/caiman/usr
Apr 22 11:54:45 impala automount[25160]: mount_autofs_offset: calling mount -t autofs -s  -o fd=13,pgrp=25160,minproto=5,maxproto=5,offset automount /net/caiman/usr/portage_caiman
Apr 22 11:54:45 impala automount[25160]: mounted offset on /net/caiman/usr/portage_caiman with timeout 300, freq 75 seconds
Apr 22 11:54:45 impala automount[25160]: mount_autofs_offset: mounted trigger /net/caiman/usr/portage_caiman at /net/caiman/usr/portage_caiman
Apr 22 11:54:45 impala automount[25160]: do_mount_autofs_offset: mount offset /net/caiman/usr/src_caiman at /net/caiman/usr
Apr 22 11:54:45 impala automount[25160]: mount_autofs_offset: calling mount -t autofs -s  -o fd=13,pgrp=25160,minproto=5,maxproto=5,offset automount /net/caiman/usr/src_caiman
Apr 22 11:54:45 impala automount[25160]: mounted offset on /net/caiman/usr/src_caiman with timeout 300, freq 75 seconds
Apr 22 11:54:45 impala automount[25160]: mount_autofs_offset: mounted trigger /net/caiman/usr/src_caiman at /net/caiman/usr/src_caiman
Apr 22 11:54:45 impala automount[25160]: dev_ioctl_send_ready: token = 188
Apr 22 11:54:45 impala automount[25160]: mounted /net/caiman/usr


Stopping autofs does not change anything:

root@impala:/root(39)# systemctl  stop autofs

root@impala:/root(45)# mount | grep autofs
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
-hosts on /net type autofs (rw,relatime,fd=-1,pgrp=25160,timeout=300,minproto=5,maxproto=5,indirect)
-hosts on /net/caiman/data_caiman type autofs (rw,relatime,fd=13,pgrp=25160,timeout=300,minproto=5,maxproto=5,offset)
-hosts on /net/caiman/home_caiman type autofs (rw,relatime,fd=13,pgrp=25160,timeout=300,minproto=5,maxproto=5,offset)
-hosts on /net/caiman/usr type autofs (rw,relatime,fd=-1,pgrp=25160,timeout=300,minproto=5,maxproto=5,offset)
-hosts on /net/caiman/var type autofs (rw,relatime,fd=13,pgrp=25160,timeout=300,minproto=5,maxproto=5,offset)


root@impala:/root(46)# systemctl  status autofs
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: inactive (dead) since Tue 2014-04-22 12:05:53 CEST; 3min 19s ago
  Process: 25158 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 25160 (code=exited, status=0/SUCCESS)

Apr 22 12:05:51 impala automount[25160]: expire_cleanup: sigchld: exp 140303710713600 finished, switching from 5 to 7
Apr 22 12:05:51 impala automount[25160]: st_shutdown: state 5 path /net
Apr 22 12:05:51 impala automount[25160]: umount_multi: path /misc incl 0
Apr 22 12:05:51 impala automount[25160]: umounted indirect mount /misc
Apr 22 12:05:51 impala automount[25160]: automount_path_to_fifo: fifo name /run/autofs.fifo-misc
Apr 22 12:05:51 impala automount[25160]: shut down path /misc
Apr 22 12:05:51 impala automount[25160]: umount_multi: path /net incl 0
Apr 22 12:05:51 impala automount[25160]: umount_autofs_indirect: ask umount returned busy /net
Apr 22 12:05:53 impala automount[25160]: umount_autofs_indirect: mount point /net is in use
Apr 22 12:05:53 impala systemd[1]: Stopped Automounts filesystems on demand.


Why does 'mount' show mounted autofs filesystems after 'systemctl stop autofs'?
Comment 29 Juergen Rose 2014-04-22 10:46:25 UTC
(In reply to Juergen Rose from comment #28)
> (In reply to Juergen Rose from comment #23)
> > (In reply to Yixun Lan from comment #22)
...
> Why does 'mount' show mounted autofs filesystems after 'systemctl stop
> autofs'?

I suppose, that 'mount' shows mounted autofs filesystems after 'systemctl stop
autofs', because 'systemctl stop autofs' was not succesful:

root@impala:/root(72)# systemctl stop autofs
root@impala:/root(73)# systemctl status autofs
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib64/systemd/system/autofs.service; enabled)
   Active: inactive (dead) since Tue 2014-04-22 12:39:39 CEST; 3min 33s ago
  Process: 9190 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 9192 (code=exited, status=0/SUCCESS)

Apr 22 12:39:37 impala automount[9192]: st_shutdown: state 5 path /net
Apr 22 12:39:38 impala automount[9192]: umount_multi: path /misc incl 0
Apr 22 12:39:38 impala automount[9192]: umounted indirect mount /misc
Apr 22 12:39:38 impala automount[9192]: automount_path_to_fifo: fifo name /run/autofs.fifo-misc
Apr 22 12:39:38 impala automount[9192]: shut down path /misc
Apr 22 12:39:38 impala automount[9192]: umount_multi: path /net incl 0
Apr 22 12:39:38 impala automount[9192]: umount_autofs_indirect: ask umount returned busy /net
Apr 22 12:39:39 impala automount[9192]: umount_autofs_indirect: mount point /net is in use
Apr 22 12:39:39 impala systemd[1]: Stopped Automounts filesystems on demand.
Apr 22 12:43:09 impala systemd[1]: Stopped Automounts filesystems on demand.


Why 'systemctl stop autofs' does not show any warning, if it is not succesful?
Comment 30 Matt Turner gentoo-dev 2019-08-12 21:26:14 UTC
I think this has to do with the use_hostname_for_mounts option in /etc/autofs/autofs.conf. Closing due to age.