Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324725 - net-fs/nfs-utils: nfsmount does not start rpc.idmapd
Summary: net-fs/nfs-utils: nfsmount does not start rpc.idmapd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-19 19:12 UTC by Михаил
Modified: 2010-06-28 21:03 UTC (History)
0 users

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


Attachments
nfsmount-gssd.patch (nfsmount-gssd.patch,967 bytes, patch)
2010-06-25 03:03 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Михаил 2010-06-19 19:12:19 UTC
nfsmount mount nfs filesystems.
For nfs4 nfsmount run rpc.gssd and rpc.idmapd if needed.

But if kerberos auth used, rpc.idmapd does not start.

Reproducible: Always

Steps to Reproduce:
1. Setup nfs4 client with kerberos auth
2. start nfsmount


Actual Results:  
rpc.idmapd didn't start, and mount hang.

Expected Results:  
start rpc.idmapd  and rpc.gssd and mount filesystem

This is part of nfsmount script:

        if [ -e /etc/fstab ] ; then                                                                                                                                                                                                          
                awk '!/^[[:space:]]*#/ && $3 == "nfs4" { exit ($4 ~ /sec=krb/ ? 10 : 20) }' /etc/fstab                                                                                                                                       
                local ret=$?                                                                                                                                                                                                                 
                [ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd"                                                                                                                                                                             
                [ ${ret} -eq 20 ] && myneed="${myneed} rpc.idmapd"                                                                                                                                                                           
        fi



If not use kerberos (sec=krb) it start rpc.idmapd. But if use kerberos, nfsmount start rpc.gssd only, instead of start both.
Comment 1 Wormo (RETIRED) gentoo-dev 2010-06-24 18:25:20 UTC
Please post your 'emerge --info' output to assist in reproducing this bug.
Comment 2 Михаил 2010-06-24 19:47:19 UTC
/etc/fstab:
10.30.127.9:/backup /mnt/backup nfs4 rw,relatime,sec=krb5 0 0
nfsmount does not start rpc.idmapd,

but start if remove kerberos
10.30.127.9:/backup /mnt/backup nfs4 rw,relatime 0 0

BTW rpc.idmapd must be started if nfs4 used, and rpc.gssd only if kerberos auth.

emerge --info useless, because error in init script.

Simple correction is replace line
[ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd"
by
[ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd rpc.idmapd"


$ emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 24 Jun 2010 03:15:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -msahf -mcx16 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -msse4.1 -msahf -mcx16 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch prelink preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles                 http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/rion /var/lib/layman/kde /var/lib/layman/qting-edge /var/lib/layman/miha"
SYNC="rsync://mirror.yandex.ru/gentoo-portage"
USE="X a52 aac acl acpi aio alsa amd64 amr bash-completion berkdb branding bzip2 bzlib cairo caps cdb cdr cli consolekit cracklib crypt css cue cups curl cxx daemon dbus dcc_video devil dirac djvu dts dv dvd dvdr dvdread emboss enca encode exceptions exif faac faad fam fbcon ffmpeg flac fortran fts3 gif gpm gsm gtk hal hpn icecast iceweasel iconv icu idn ilbc inotify ipv6 java java6 jpeg jpeg2k kde kdehiddenvisibility kdexdeltas kerberos lame lcms libnotify lm_sensors lto lyrics lzma mad mmap mmx mmxext mng modplug modules mozdevelop mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pch pcre pdf perl pg-intdatetime pic png postgres ppds pppd private-headers python qt3support qt4 raw readline redland reflection rtmp ru-dv ru-i ru-k schroedinger sdl secure-delete semantic-desktop session sieve smp speex spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs system-sqlite taglib theora threads threadsafe tiff truetype unicode urandom usb vaapi vdpau virtuoso vorbis vpx webkit wma x264 xcb xinerama xml xmlrpc xorg xulrunner xv xvid xvmc zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia fbdev" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Wormo (RETIRED) gentoo-dev 2010-06-25 00:28:46 UTC
I agree that system info isn't too relevant now that you've given the fix (thanks for reporting that btw), but it never hurts :)
Comment 4 SpanKY gentoo-dev 2010-06-25 03:03:30 UTC
Created attachment 236459 [details, diff]
nfsmount-gssd.patch

i dont think even your fix covers all cases.  please try this patch instead.
Comment 5 Михаил 2010-06-27 07:31:26 UTC
(In reply to comment #4)
> Created an attachment (id=236459) [details]
> nfsmount-gssd.patch

nfsmount working, thanks. 
Comment 6 SpanKY gentoo-dev 2010-06-28 21:03:02 UTC
added to the tree then; thanks

http://sources.gentoo.org/net-fs/nfs-utils/files/nfsmount.initd?r1=1.13&r2=1.14