public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] sunrpc/nfs: better handling for expired krb5 credentials
@ 2010-01-07 14:42 Jeff Layton
  2010-01-07 14:42 ` [PATCH 1/4] sunrpc: parse and return errors reported by gssd Jeff Layton
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jeff Layton @ 2010-01-07 14:42 UTC (permalink / raw)
  To: Trond.Myklebust; +Cc: linux-nfs, nfsv4

When someone deploys kerberized NFS, they usually will quickly run
across a major problem. As soon as their credentials expire, all RPCs
start failing with -EACCES errors. This makes it really difficult to
have any sort of long-running job since you have to proactively kinit
before your TGT expires. If you miss doing so, then your job may start
getting errors unexpectedly.

This patchset represents a first pass at fixing this. The idea here is
to distinguish between the situation where someone has an expired
credential cache and someone that has no credential cache at all. In the
latter case, we want to have the RPC return -EACCES (just like it does
today), in the former case we want to return a different error that will
make the NFS layer delay and retry the call instead of erroring out
(-EKEYEXPIRED).

This patchset is for the kernel patches. To make this work, gssd will
also need to be fixed to send different errors in these situations. That
patch will follow this set.

Jeff Layton (4):
  sunrpc: parse and return errors reported by gssd
  nfs4: handle -EKEYEXPIRED errors from RPC layer
  nfs: handle NFSv3 -EKEYEXPIRED errors as we would -EJUKEBOX
  nfs: handle NFSv2 -EKEYEXPIRED returns from RPC layer appropriately

 fs/nfs/nfs3proc.c              |    9 ++++---
 fs/nfs/nfs4proc.c              |   11 ++++++++-
 fs/nfs/nfs4state.c             |    1 +
 fs/nfs/proc.c                  |   41 ++++++++++++++++++++++++++++++++++++++++
 net/sunrpc/auth_gss/auth_gss.c |   11 ++++++++-
 5 files changed, 65 insertions(+), 8 deletions(-)

_______________________________________________
NFSv4 mailing list
NFSv4@linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

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

end of thread, other threads:[~2010-01-08 17:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 14:42 [PATCH 0/4] sunrpc/nfs: better handling for expired krb5 credentials Jeff Layton
2010-01-07 14:42 ` [PATCH 1/4] sunrpc: parse and return errors reported by gssd Jeff Layton
2010-01-07 19:11   ` Trond Myklebust
2010-01-07 19:21     ` Jeff Layton
2010-01-07 19:39       ` Trond Myklebust
2010-01-07 14:42 ` [PATCH 2/4] nfs4: handle -EKEYEXPIRED errors from RPC layer Jeff Layton
2010-01-07 14:42 ` [PATCH 3/4] nfs: handle NFSv3 -EKEYEXPIRED errors as we would -EJUKEBOX Jeff Layton
2010-01-07 14:42 ` [PATCH 4/4] nfs: handle NFSv2 -EKEYEXPIRED returns from RPC layer appropriately Jeff Layton
2010-01-07 19:48   ` Jeff Layton
2010-01-08 17:17   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox