[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638157: nfs-kernel-server: attempt to mount -t nfs4 -o sec=krb5 hangs on squeeze, works with nfs-utils from testing



Package: nfs-kernel-server
Version: 1:1.2.2-4
Severity: important

Hi, 

I observed the following after installing a Debian Squeeze network on
virtual machines:

After switching on sec=krb5 for the NFSv4 mounts, the mount process
hangs immeditely, it doesn't return at all:

root@workstation00:~# mount -t nfs4 -o sec=krb5 mainserver:/home0 /mnt

No error, nothing.  Ctrl-c brings you back to the command line.  The
same when logging in, as the automounter tries to mount the home
directory: After entering the password nothing happens.

I tried to find the reason and checked logs with rpc.gssd -fvvvv -rrr  
and rpc.svcgssd -fvvv, but could not find any indication there,
anything seems to work as expected.

I tried the kernel 2.6.38-bpo.2-686 from backports, same results.

Finally I installed the nfs-common and nfs-kernel-server from testing
on the nfs-server: 
ii  nfs-common         1:1.2.4-1
ii  nfs-kernel-server  1:1.2.4-1

And without further changes anything worked as expected.  Something
comparable (with some patch) is described here:
<URL:http://www.spinics.net/lists/linux-nfs/msg14723.html>, same
nfs-utils 1.2.2
 
It would be great if that could be fixed for squeeze.  If I can help
with more debug info, testing or full logs, please let me know.

Best regards,

     Andi



-- Package-specific info (after installing packages from backports/testing):
-- rpcinfo --
root@mainserver:~# rpcinfo
   program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser
    100024    1    udp       0.0.0.0.217.30         status     103
    100024    1    tcp       0.0.0.0.227.137        status     103
    100024    1    udp6      ::.147.207             status     103
    100024    1    tcp6      ::.235.58              status     103
    100003    2    udp       0.0.0.0.8.1            nfs        superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser
    100227    2    udp       0.0.0.0.8.1            -          superuser
    100227    3    udp       0.0.0.0.8.1            -          superuser
    100003    2    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100227    2    tcp       0.0.0.0.8.1            -          superuser
    100227    3    tcp       0.0.0.0.8.1            -          superuser
    100021    1    udp       0.0.0.0.159.30         nlockmgr   superuser
    100021    3    udp       0.0.0.0.159.30         nlockmgr   superuser
    100021    4    udp       0.0.0.0.159.30         nlockmgr   superuser
    100021    1    tcp       0.0.0.0.191.167        nlockmgr   superuser
    100021    3    tcp       0.0.0.0.191.167        nlockmgr   superuser
    100021    4    tcp       0.0.0.0.191.167        nlockmgr   superuser
    100005    1    udp       0.0.0.0.192.8          mountd     superuser
    100005    1    tcp       0.0.0.0.212.240        mountd     superuser
    100005    1    udp6      ::.190.124             mountd     superuser
    100005    1    tcp6      ::.170.160             mountd     superuser
    100005    2    udp       0.0.0.0.232.249        mountd     superuser
    100005    2    tcp       0.0.0.0.136.54         mountd     superuser
    100005    2    udp6      ::.224.6               mountd     superuser
    100005    2    tcp6      ::.230.114             mountd     superuser
    100005    3    udp       0.0.0.0.227.84         mountd     superuser
    100005    3    tcp       0.0.0.0.195.233        mountd     superuser
    100005    3    udp6      ::.164.5               mountd     superuser
    100005    3    tcp6      ::.137.104             mountd     superuser
root@mainserver:~# 

-- /etc/default/nfs-kernel-server --
RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS=--manage-gids
NEED_SVCGSSD=yes
RPCSVCGSSDOPTS="-vvv -rrr"

-- /etc/exports --
/srv/fai/nfsroot  10.0.0.0/8(async,ro,no_subtree_check,no_root_squash)
/srv/fai/config  10.0.0.0/8(async,ro,no_subtree_check,no_root_squash)
/srv/nfs4 10.0.0.0/8(sec=krb5p:krb5i:krb5:sys,rw,fsid=0,crossmnt,no_subtree_check)
/srv/nfs4/home0 10.0.0.0/8(sec=krb5p:krb5i:krb5:sys,rw,no_subtree_check)

-- no debconf information



Reply to: