All of lore.kernel.org
 help / color / mirror / Atom feed
* umount(,MNT_DETACH) for nfsv4 hangs when using sec=krb5 and network is down
@ 2012-12-19 20:47 Orion Poplawski
  2012-12-19 21:08 ` Myklebust, Trond
  0 siblings, 1 reply; 9+ messages in thread
From: Orion Poplawski @ 2012-12-19 20:47 UTC (permalink / raw)
  To: linux-nfs

nfs4 mounts with sec=krb5 cannot be unmounted with the network down, even with
umount -l because umount() with MNT_DETACH set will hang, presumably somewhere
in the gss stack.

A successful umount yields the following packet trace:

  1 0.000000000   10.10.20.2 -> 10.10.10.1   NFS 218 V4 Call GETATTR FH:0x3b470ee7
  2 0.000236000   10.10.10.1 -> 10.10.20.2   NFS 318 V4 Reply (Call In 1) GETATTR
  3 0.000282000   10.10.20.2 -> 10.10.10.1   TCP 66 943 > nfs [ACK] Seq=153
Ack=253 Win=331 Len=0 TSval=3468186 TSecr=878557922
  4 0.008761000   10.10.20.2 -> 10.10.10.1   TCP 66 943 > nfs [FIN, ACK] Seq=153
Ack=253 Win=331 Len=0 TSval=3468195 TSecr=878557922
  5 0.008923000   10.10.10.1 -> 10.10.20.2   TCP 66 nfs > 943 [FIN, ACK] Seq=253
Ack=154 Win=683 Len=0 TSval=878557930 TSecr=3468195
  6 0.008970000   10.10.20.2 -> 10.10.10.1   TCP 66 943 > nfs [ACK] Seq=154
Ack=254 Win=331 Len=0 TSval=3468195 TSecr=878557930

So my guess is that something in the gss stack is preventing the GETATTR call
from succeeding as unmounting succeeds without sec=krb5.  Although running
rpc.gssd and rpcidmap with -vvvv does not appear to produce any output.  A
successful unmount produces:

Dec 19 13:42:44 orca rpc.gssd[18495]: destroying client
/var/lib/nfs/rpc_pipefs/nfs/clnt27
Dec 19 13:42:44 orca rpc.gssd[18495]: destroying client
/var/lib/nfs/rpc_pipefs/nfs/clnt24

However, we need someway to be able to drop mounts after the network connection
has been removed.  This behavior is causing sever problems for our laptop and
vpn users.

Tested with:

3.6.11-3.fc18
nfs-utils-1.2.7-2.fc18

I've also filed https://bugzilla.redhat.com/show_bug.cgi?id=888942

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion@nwra.com
Boulder, CO 80301                   http://www.nwra.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-13 19:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 20:47 umount(,MNT_DETACH) for nfsv4 hangs when using sec=krb5 and network is down Orion Poplawski
2012-12-19 21:08 ` Myklebust, Trond
2012-12-19 21:50   ` Orion Poplawski
2012-12-19 22:19     ` Myklebust, Trond
2012-12-20 20:31       ` Orion Poplawski
2012-12-20 20:47         ` Myklebust, Trond
2012-12-20 21:52           ` Orion Poplawski
2012-12-20 22:01             ` Myklebust, Trond
2013-02-13 17:58               ` Orion Poplawski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.