* Pseudoflavor 390004 not found!
@ 2013-05-01 9:09 Toralf Förster
2013-05-01 12:56 ` Jim Rees
2013-05-01 13:33 ` Myklebust, Trond
0 siblings, 2 replies; 4+ messages in thread
From: Toralf Förster @ 2013-05-01 9:09 UTC (permalink / raw)
To: Linux NFS mailing list
With current git kernel 3.9-X (since 1 or 2 days) I'm getting the messages
seen below at a user mode linux guest on which I run trinity.
On the guest I mount via NFSv4 (and in parallel via hostfs) an EXT4 fs from the host system.
The EXT4 resides within a file on a tmpfs which is mounted via loop device.
So on the hosts it looks like :
$> df -m
tmpfs 3072 135 2938 5% /mnt/ramdisk
/dev/loop0 241 5 224 3% /mnt/trinity
$ cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/mnt/trinity 192.168.0.0/16(rw,fsid=0,insecure,no_subtree_check,async,no_root_squash)
and the UML mounts the share /mnt/trinity just onto its mount points /mnt/n22 and /mnt/nfs/n22 respectively.
And these are the messages I'm curious about :
2013-05-01T10:22:55.613+02:00 trinity kernel: gss_create: Pseudoflavor 390004 not found!
2013-05-01T10:22:55.613+02:00 trinity kernel: RPC: Couldn't create auth handle (flavor 390004)
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pseudoflavor 390004 not found!
2013-05-01 9:09 Pseudoflavor 390004 not found! Toralf Förster
@ 2013-05-01 12:56 ` Jim Rees
2013-05-01 13:33 ` Myklebust, Trond
1 sibling, 0 replies; 4+ messages in thread
From: Jim Rees @ 2013-05-01 12:56 UTC (permalink / raw)
To: Toralf Förster; +Cc: Linux NFS mailing list
Toralf Förster wrote:
2013-05-01T10:22:55.613+02:00 trinity kernel: gss_create: Pseudoflavor 390004 not found!
2013-05-01T10:22:55.613+02:00 trinity kernel: RPC: Couldn't create auth handle (flavor 390004)
I think that means you're trying to use krb5 but don't have the gss_krb5
module loaded. If you really do want to use krb5, check your kernel
config. If not, check your mount options.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pseudoflavor 390004 not found!
2013-05-01 9:09 Pseudoflavor 390004 not found! Toralf Förster
2013-05-01 12:56 ` Jim Rees
@ 2013-05-01 13:33 ` Myklebust, Trond
2013-05-01 20:22 ` Toralf Förster
1 sibling, 1 reply; 4+ messages in thread
From: Myklebust, Trond @ 2013-05-01 13:33 UTC (permalink / raw)
To: Toralf Förster; +Cc: Linux NFS mailing list
[-- Attachment #1: Type: text/plain, Size: 1842 bytes --]
On Wed, 2013-05-01 at 11:09 +0200, Toralf Förster wrote:
> With current git kernel 3.9-X (since 1 or 2 days) I'm getting the messages
> seen below at a user mode linux guest on which I run trinity.
>
> On the guest I mount via NFSv4 (and in parallel via hostfs) an EXT4 fs from the host system.
> The EXT4 resides within a file on a tmpfs which is mounted via loop device.
>
> So on the hosts it looks like :
> $> df -m
> tmpfs 3072 135 2938 5% /mnt/ramdisk
> /dev/loop0 241 5 224 3% /mnt/trinity
>
> $ cat /etc/exports
> # /etc/exports: NFS file systems being exported. See exports(5).
> /mnt/trinity 192.168.0.0/16(rw,fsid=0,insecure,no_subtree_check,async,no_root_squash)
>
> and the UML mounts the share /mnt/trinity just onto its mount points /mnt/n22 and /mnt/nfs/n22 respectively.
> And these are the messages I'm curious about :
>
> 2013-05-01T10:22:55.613+02:00 trinity kernel: gss_create: Pseudoflavor 390004 not found!
> 2013-05-01T10:22:55.613+02:00 trinity kernel: RPC: Couldn't create auth handle (flavor 390004)
>
It's a harmless message. The latest kernel will try to use krb5i to
establish the lease (i.e. for the SETCLIENTID call) as per the
recommendations in the RFC3530bis spec, but on systems such as yours
where you have not enabled krb5, it will fall back to using sec=sys
(auth_sys).
We should just disable the above warnings.
Note that even if the lease negotiation uses krb5i, the actual mount
will continue to use whatever flavour you specify in your 'sec=' mount
option (or it will use NFSv4 security negotiation) when doing operations
on the filesystem.
The attached patch will turn off those messages for you.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-SUNRPC-Don-t-spam-syslog-with-Pseudoflavor-not-found.patch --]
[-- Type: text/x-patch; name="0001-SUNRPC-Don-t-spam-syslog-with-Pseudoflavor-not-found.patch", Size: 1690 bytes --]
From 9c9a7f0d781ae34cdf7770dcaa9e67ec7cb0475c Mon Sep 17 00:00:00 2001
From: Trond Myklebust <Trond.Myklebust@netapp.com>
Date: Wed, 1 May 2013 09:17:50 -0400
Subject: [PATCH] SUNRPC: Don't spam syslog with "Pseudoflavor not found"
messages
Just convert those messages to dprintk()s so that they can be used
when debugging.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
net/sunrpc/auth_gss/auth_gss.c | 3 +--
net/sunrpc/clnt.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index 51415b0..b5dd692 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -867,8 +867,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
err = -EINVAL;
gss_auth->mech = gss_mech_get_by_pseudoflavor(flavor);
if (!gss_auth->mech) {
- printk(KERN_WARNING "%s: Pseudoflavor %d not found!\n",
- __func__, flavor);
+ dprintk("RPC: Pseudoflavor %d not found!\n", flavor);
goto err_free;
}
gss_auth->service = gss_pseudoflavor_to_service(gss_auth->mech, flavor);
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index d259fa9..e9143ed 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -360,7 +360,7 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru
auth = rpcauth_create(args->authflavor, clnt);
if (IS_ERR(auth)) {
- printk(KERN_INFO "RPC: Couldn't create auth handle (flavor %u)\n",
+ dprintk("RPC: Couldn't create auth handle (flavor %u)\n",
args->authflavor);
err = PTR_ERR(auth);
goto out_no_auth;
--
1.8.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Pseudoflavor 390004 not found!
2013-05-01 13:33 ` Myklebust, Trond
@ 2013-05-01 20:22 ` Toralf Förster
0 siblings, 0 replies; 4+ messages in thread
From: Toralf Förster @ 2013-05-01 20:22 UTC (permalink / raw)
To: Myklebust, Trond; +Cc: Linux NFS mailing list
On 05/01/2013 03:33 PM, Myklebust, Trond wrote:
> We should just disable the above warnings.
>
> Note that even if the lease negotiation uses krb5i, the actual mount
> will continue to use whatever flavour you specify in your 'sec=' mount
> option (or it will use NFSv4 security negotiation) when doing operations
> on the filesystem.
>
> The attached patch will turn off those messages for you.
>
Ah - thx for explanation.
I just applied the patch manually, my patch command was indisposed for
some reasons to apply it against current git.
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-01 20:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 9:09 Pseudoflavor 390004 not found! Toralf Förster
2013-05-01 12:56 ` Jim Rees
2013-05-01 13:33 ` Myklebust, Trond
2013-05-01 20:22 ` Toralf Förster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).