All of lore.kernel.org
 help / color / mirror / Atom feed
* 3.7-rc1 NFSv3/sec=krb5 mkdir failure
@ 2012-10-16 12:58 J. Bruce Fields
  2012-10-24 20:02 ` J. Bruce Fields
  0 siblings, 1 reply; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-16 12:58 UTC (permalink / raw)
  To: linux-nfs

On 3.7-rc1:

	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/

		server# ls -l /exports/ext4|grep TMP
		server#

	# mkdir /mnt/TMP
	mkdir: cannot create directory `/mnt/TMP': Permission denied

		server# ls -l /exports/ext4|grep TMP
		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
		server#

Wireshark also shows that the create succeeds.

--b.

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-16 12:58 3.7-rc1 NFSv3/sec=krb5 mkdir failure J. Bruce Fields
@ 2012-10-24 20:02 ` J. Bruce Fields
  2012-10-24 20:07   ` Myklebust, Trond
  0 siblings, 1 reply; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-24 20:02 UTC (permalink / raw)
  To: linux-nfs, Trond Myklebust, Bryan Schumaker

Anyone get a chance to look at this?  It seems very reproduceable.

--b.

On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> On 3.7-rc1:
> 
> 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/
> 
> 		server# ls -l /exports/ext4|grep TMP
> 		server#
> 
> 	# mkdir /mnt/TMP
> 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> 
> 		server# ls -l /exports/ext4|grep TMP
> 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> 		server#
> 
> Wireshark also shows that the create succeeds.
> 
> --b.

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

* RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:02 ` J. Bruce Fields
@ 2012-10-24 20:07   ` Myklebust, Trond
  2012-10-24 20:15     ` J. Bruce Fields
  0 siblings, 1 reply; 13+ messages in thread
From: Myklebust, Trond @ 2012-10-24 20:07 UTC (permalink / raw)
  To: J. Bruce Fields, linux-nfs, Schumaker, Bryan

> -----Original Message-----
> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> Sent: Wednesday, October 24, 2012 4:03 PM
> To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> 
> Anyone get a chance to look at this?  It seems very reproduceable.
> 
> --b.
> 
> On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > On 3.7-rc1:
> >
> > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/
> >
> > 		server# ls -l /exports/ext4|grep TMP
> > 		server#
> >
> > 	# mkdir /mnt/TMP
> > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> >
> > 		server# ls -l /exports/ext4|grep TMP
> > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > 		server#
> >
> > Wireshark also shows that the create succeeds.

Can you share the wireshark trace?

Cheers
  Trond

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:07   ` Myklebust, Trond
@ 2012-10-24 20:15     ` J. Bruce Fields
  2012-10-24 20:31       ` Myklebust, Trond
  2012-10-24 20:34       ` Myklebust, Trond
  0 siblings, 2 replies; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-24 20:15 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: linux-nfs, Schumaker, Bryan

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > -----Original Message-----
> > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > Sent: Wednesday, October 24, 2012 4:03 PM
> > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > 
> > Anyone get a chance to look at this?  It seems very reproduceable.
> > 
> > --b.
> > 
> > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > On 3.7-rc1:
> > >
> > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/
> > >
> > > 		server# ls -l /exports/ext4|grep TMP
> > > 		server#
> > >
> > > 	# mkdir /mnt/TMP
> > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > >
> > > 		server# ls -l /exports/ext4|grep TMP
> > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > 		server#
> > >
> > > Wireshark also shows that the create succeeds.
> 
> Can you share the wireshark trace?

Sure.  This covers the mount and mkdir.  The mkdir call and reply are in
frames 77 and 78.

--b.

[-- Attachment #2: tmp.pcap --]
[-- Type: application/cap, Size: 11110 bytes --]

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

* RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:15     ` J. Bruce Fields
@ 2012-10-24 20:31       ` Myklebust, Trond
  2012-10-24 20:38         ` J. Bruce Fields
  2012-10-24 20:34       ` Myklebust, Trond
  1 sibling, 1 reply; 13+ messages in thread
From: Myklebust, Trond @ 2012-10-24 20:31 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs, Schumaker, Bryan

> -----Original Message-----
> From: J. Bruce Fields [mailto:bfields@fieldses.org]
> Sent: Wednesday, October 24, 2012 4:15 PM
> To: Myklebust, Trond
> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> 
> On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > > -----Original Message-----
> > > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > > Sent: Wednesday, October 24, 2012 4:03 PM
> > > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > >
> > > Anyone get a chance to look at this?  It seems very reproduceable.
> > >
> > > --b.
> > >
> > > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > > On 3.7-rc1:
> > > >
> > > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/
> > > >
> > > > 		server# ls -l /exports/ext4|grep TMP
> > > > 		server#
> > > >
> > > > 	# mkdir /mnt/TMP
> > > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > > >
> > > > 		server# ls -l /exports/ext4|grep TMP
> > > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > > 		server#
> > > >
> > > > Wireshark also shows that the create succeeds.
> >
> > Can you share the wireshark trace?
> 
> Sure.  This covers the mount and mkdir.  The mkdir call and reply are in
> frames 77 and 78.

Hmm.... Can you please check if the ACL is being set correctly on the server? I suspect that might be the source of the error.

Cheers
  Trond

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

* RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:15     ` J. Bruce Fields
  2012-10-24 20:31       ` Myklebust, Trond
@ 2012-10-24 20:34       ` Myklebust, Trond
  2012-10-24 20:40         ` J. Bruce Fields
  1 sibling, 1 reply; 13+ messages in thread
From: Myklebust, Trond @ 2012-10-24 20:34 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs, Schumaker, Bryan

> -----Original Message-----
> From: Myklebust, Trond
> Sent: Wednesday, October 24, 2012 4:31 PM
> To: 'J. Bruce Fields'
> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> 
> > -----Original Message-----
> > From: J. Bruce Fields [mailto:bfields@fieldses.org]
> > Sent: Wednesday, October 24, 2012 4:15 PM
> > To: Myklebust, Trond
> > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> >
> > On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > > > -----Original Message-----
> > > > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > > > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > > > Sent: Wednesday, October 24, 2012 4:03 PM
> > > > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > >
> > > > Anyone get a chance to look at this?  It seems very reproduceable.
> > > >
> > > > --b.
> > > >
> > > > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > > > On 3.7-rc1:
> > > > >
> > > > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
> > > > > /mnt/
> > > > >
> > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > 		server#
> > > > >
> > > > > 	# mkdir /mnt/TMP
> > > > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > > > >
> > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > > > 		server#
> > > > >
> > > > > Wireshark also shows that the create succeeds.
> > >
> > > Can you share the wireshark trace?
> >
> > Sure.  This covers the mount and mkdir.  The mkdir call and reply are
> > in frames 77 and 78.
> 
> Hmm.... Can you please check if the ACL is being set correctly on the server? I
> suspect that might be the source of the error.
> 

In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?

Cheers
  Trond


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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:31       ` Myklebust, Trond
@ 2012-10-24 20:38         ` J. Bruce Fields
  0 siblings, 0 replies; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-24 20:38 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: linux-nfs, Schumaker, Bryan

On Wed, Oct 24, 2012 at 08:31:16PM +0000, Myklebust, Trond wrote:
> > -----Original Message-----
> > From: J. Bruce Fields [mailto:bfields@fieldses.org]
> > Sent: Wednesday, October 24, 2012 4:15 PM
> > To: Myklebust, Trond
> > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > 
> > On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > > > -----Original Message-----
> > > > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > > > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > > > Sent: Wednesday, October 24, 2012 4:03 PM
> > > > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > >
> > > > Anyone get a chance to look at this?  It seems very reproduceable.
> > > >
> > > > --b.
> > > >
> > > > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > > > On 3.7-rc1:
> > > > >
> > > > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4 /mnt/
> > > > >
> > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > 		server#
> > > > >
> > > > > 	# mkdir /mnt/TMP
> > > > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > > > >
> > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > > > 		server#
> > > > >
> > > > > Wireshark also shows that the create succeeds.
> > >
> > > Can you share the wireshark trace?
> > 
> > Sure.  This covers the mount and mkdir.  The mkdir call and reply are in
> > frames 77 and 78.
> 
> Hmm.... Can you please check if the ACL is being set correctly on the server? I suspect that might be the source of the error.

ACLs on the export and the new directory are both trivial:

	[root@pip1 ~]# ls -ld /exports/ext4/
	drwxrwxrwx. 8 root root 4096 Oct 24 16:12 /exports/ext4/
	[root@pip1 ~]# getfacl /exports/ext4
	getfacl: Removing leading '/' from absolute path names
	# file: exports/ext4
	# owner: root
	# group: root
	user::rwx
	group::rwx
	other::rwx

	[root@pip1 ~]# ls -ld /exports/ext4/TMP
	drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 16:12
	/exports/ext4/TMP
	[root@pip1 ~]# getfacl /exports/ext4/TMP
	getfacl: Removing leading '/' from absolute path names
	# file: exports/ext4/TMP
	# owner: nfsnobody
	# group: nfsnobody
	user::rwx
	group::r-x
	other::r-x

	[root@pip1 ~]# 

--b.

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:34       ` Myklebust, Trond
@ 2012-10-24 20:40         ` J. Bruce Fields
  2012-10-28 16:15           ` J. Bruce Fields
  0 siblings, 1 reply; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-24 20:40 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: linux-nfs, Schumaker, Bryan

On Wed, Oct 24, 2012 at 08:34:37PM +0000, Myklebust, Trond wrote:
> > -----Original Message-----
> > From: Myklebust, Trond
> > Sent: Wednesday, October 24, 2012 4:31 PM
> > To: 'J. Bruce Fields'
> > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > 
> > > -----Original Message-----
> > > From: J. Bruce Fields [mailto:bfields@fieldses.org]
> > > Sent: Wednesday, October 24, 2012 4:15 PM
> > > To: Myklebust, Trond
> > > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > >
> > > On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > > > > -----Original Message-----
> > > > > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > > > > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > > > > Sent: Wednesday, October 24, 2012 4:03 PM
> > > > > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > > > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > > >
> > > > > Anyone get a chance to look at this?  It seems very reproduceable.
> > > > >
> > > > > --b.
> > > > >
> > > > > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > > > > On 3.7-rc1:
> > > > > >
> > > > > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
> > > > > > /mnt/
> > > > > >
> > > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > > 		server#
> > > > > >
> > > > > > 	# mkdir /mnt/TMP
> > > > > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > > > > >
> > > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > > > > 		server#
> > > > > >
> > > > > > Wireshark also shows that the create succeeds.
> > > >
> > > > Can you share the wireshark trace?
> > >
> > > Sure.  This covers the mount and mkdir.  The mkdir call and reply are
> > > in frames 77 and 78.
> > 
> > Hmm.... Can you please check if the ACL is being set correctly on the server? I
> > suspect that might be the source of the error.
> > 
> 
> In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?

That's on the client mount command?  No difference.

--b.

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-24 20:40         ` J. Bruce Fields
@ 2012-10-28 16:15           ` J. Bruce Fields
  2012-11-16  2:03             ` Chuck Lever
  0 siblings, 1 reply; 13+ messages in thread
From: J. Bruce Fields @ 2012-10-28 16:15 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: linux-nfs, Schumaker, Bryan

On Wed, Oct 24, 2012 at 04:40:59PM -0400, J. Bruce Fields wrote:
> On Wed, Oct 24, 2012 at 08:34:37PM +0000, Myklebust, Trond wrote:
> > > -----Original Message-----
> > > From: Myklebust, Trond
> > > Sent: Wednesday, October 24, 2012 4:31 PM
> > > To: 'J. Bruce Fields'
> > > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > > Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > 
> > > > -----Original Message-----
> > > > From: J. Bruce Fields [mailto:bfields@fieldses.org]
> > > > Sent: Wednesday, October 24, 2012 4:15 PM
> > > > To: Myklebust, Trond
> > > > Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> > > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > >
> > > > On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> > > > > > -----Original Message-----
> > > > > > From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> > > > > > owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> > > > > > Sent: Wednesday, October 24, 2012 4:03 PM
> > > > > > To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> > > > > > Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> > > > > >
> > > > > > Anyone get a chance to look at this?  It seems very reproduceable.
> > > > > >
> > > > > > --b.
> > > > > >
> > > > > > On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> > > > > > > On 3.7-rc1:
> > > > > > >
> > > > > > > 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
> > > > > > > /mnt/
> > > > > > >
> > > > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > > > 		server#
> > > > > > >
> > > > > > > 	# mkdir /mnt/TMP
> > > > > > > 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> > > > > > >
> > > > > > > 		server# ls -l /exports/ext4|grep TMP
> > > > > > > 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> > > > > > > 		server#
> > > > > > >
> > > > > > > Wireshark also shows that the create succeeds.
> > > > >
> > > > > Can you share the wireshark trace?
> > > >
> > > > Sure.  This covers the mount and mkdir.  The mkdir call and reply are
> > > > in frames 77 and 78.
> > > 
> > > Hmm.... Can you please check if the ACL is being set correctly on the server? I
> > > suspect that might be the source of the error.
> > > 
> > 
> > In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?
> 
> That's on the client mount command?  No difference.

By the way, I managed to do a little bisecting while working on
something else today, and blame landed on Chuck's
ba9b584c1dc37851d9c6ca6d0d2ccba55d9aad04 "SUNRPC: Introduce
rpc_clone_client_set_auth()".  Which makes some sense if it's an ACL
problem, and indeed testing on that commit finds success with -noacl,
failure without.

I'm not sure if that explains the failure I was seeing on 3.7-rc1, since
there I didn't see any ACL traffic, and still got a failure.  (And
-noacl didn't help.)

--b.

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-10-28 16:15           ` J. Bruce Fields
@ 2012-11-16  2:03             ` Chuck Lever
  2012-11-16  2:24               ` J. Bruce Fields
  2012-11-16  2:26               ` Myklebust, Trond
  0 siblings, 2 replies; 13+ messages in thread
From: Chuck Lever @ 2012-11-16  2:03 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Myklebust, Trond, linux-nfs, Schumaker, Bryan


On Oct 28, 2012, at 12:15 PM, J. Bruce Fields <bfields@fieldses.org> wrote:

> On Wed, Oct 24, 2012 at 04:40:59PM -0400, J. Bruce Fields wrote:
>> On Wed, Oct 24, 2012 at 08:34:37PM +0000, Myklebust, Trond wrote:
>>>> -----Original Message-----
>>>> From: Myklebust, Trond
>>>> Sent: Wednesday, October 24, 2012 4:31 PM
>>>> To: 'J. Bruce Fields'
>>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
>>>> Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>> 
>>>>> -----Original Message-----
>>>>> From: J. Bruce Fields [mailto:bfields@fieldses.org]
>>>>> Sent: Wednesday, October 24, 2012 4:15 PM
>>>>> To: Myklebust, Trond
>>>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
>>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>>> 
>>>>> On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
>>>>>>> -----Original Message-----
>>>>>>> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
>>>>>>> owner@vger.kernel.org] On Behalf Of J. Bruce Fields
>>>>>>> Sent: Wednesday, October 24, 2012 4:03 PM
>>>>>>> To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
>>>>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>>>>> 
>>>>>>> Anyone get a chance to look at this?  It seems very reproduceable.
>>>>>>> 
>>>>>>> --b.
>>>>>>> 
>>>>>>> On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
>>>>>>>> On 3.7-rc1:
>>>>>>>> 
>>>>>>>> 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
>>>>>>>> /mnt/
>>>>>>>> 
>>>>>>>> 		server# ls -l /exports/ext4|grep TMP
>>>>>>>> 		server#
>>>>>>>> 
>>>>>>>> 	# mkdir /mnt/TMP
>>>>>>>> 	mkdir: cannot create directory `/mnt/TMP': Permission denied
>>>>>>>> 
>>>>>>>> 		server# ls -l /exports/ext4|grep TMP
>>>>>>>> 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
>>>>>>>> 		server#
>>>>>>>> 
>>>>>>>> Wireshark also shows that the create succeeds.
>>>>>> 
>>>>>> Can you share the wireshark trace?
>>>>> 
>>>>> Sure.  This covers the mount and mkdir.  The mkdir call and reply are
>>>>> in frames 77 and 78.
>>>> 
>>>> Hmm.... Can you please check if the ACL is being set correctly on the server? I
>>>> suspect that might be the source of the error.
>>>> 
>>> 
>>> In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?
>> 
>> That's on the client mount command?  No difference.
> 
> By the way, I managed to do a little bisecting while working on
> something else today, and blame landed on Chuck's
> ba9b584c1dc37851d9c6ca6d0d2ccba55d9aad04 "SUNRPC: Introduce
> rpc_clone_client_set_auth()".  Which makes some sense if it's an ACL
> problem, and indeed testing on that commit finds success with -noacl,
> failure without.

After two weeks, Bruce and I were finally able to catch up in person.

I've reproduced this on 3.7-rc5 using cthon basic tests.  The first getacl operation fails because it's mistakenly attempting to set up a fresh GSS context on a transport where one already exists.  That's in line with the kind of change that's in commit ba9b584c1.

> I'm not sure if that explains the failure I was seeing on 3.7-rc1, since
> there I didn't see any ACL traffic, and still got a failure.  (And
> -noacl didn't help.)

The failure occurs on the client just before the getacl request is issued, so you won't see any ACL-related network traffic in the failure case.  The failure prevents any ACL request from succeeding.

Anyway, I'll have a deeper look at this tomorrow.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-11-16  2:03             ` Chuck Lever
@ 2012-11-16  2:24               ` J. Bruce Fields
  2012-11-16  2:26               ` Myklebust, Trond
  1 sibling, 0 replies; 13+ messages in thread
From: J. Bruce Fields @ 2012-11-16  2:24 UTC (permalink / raw)
  To: Chuck Lever; +Cc: Myklebust, Trond, linux-nfs, Schumaker, Bryan

On Thu, Nov 15, 2012 at 09:03:03PM -0500, Chuck Lever wrote:
> 
> On Oct 28, 2012, at 12:15 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> 
> > On Wed, Oct 24, 2012 at 04:40:59PM -0400, J. Bruce Fields wrote:
> >> On Wed, Oct 24, 2012 at 08:34:37PM +0000, Myklebust, Trond wrote:
> >>>> -----Original Message-----
> >>>> From: Myklebust, Trond
> >>>> Sent: Wednesday, October 24, 2012 4:31 PM
> >>>> To: 'J. Bruce Fields'
> >>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> >>>> Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> >>>> 
> >>>>> -----Original Message-----
> >>>>> From: J. Bruce Fields [mailto:bfields@fieldses.org]
> >>>>> Sent: Wednesday, October 24, 2012 4:15 PM
> >>>>> To: Myklebust, Trond
> >>>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
> >>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> >>>>> 
> >>>>> On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
> >>>>>>> -----Original Message-----
> >>>>>>> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> >>>>>>> owner@vger.kernel.org] On Behalf Of J. Bruce Fields
> >>>>>>> Sent: Wednesday, October 24, 2012 4:03 PM
> >>>>>>> To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
> >>>>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
> >>>>>>> 
> >>>>>>> Anyone get a chance to look at this?  It seems very reproduceable.
> >>>>>>> 
> >>>>>>> --b.
> >>>>>>> 
> >>>>>>> On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
> >>>>>>>> On 3.7-rc1:
> >>>>>>>> 
> >>>>>>>> 	client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
> >>>>>>>> /mnt/
> >>>>>>>> 
> >>>>>>>> 		server# ls -l /exports/ext4|grep TMP
> >>>>>>>> 		server#
> >>>>>>>> 
> >>>>>>>> 	# mkdir /mnt/TMP
> >>>>>>>> 	mkdir: cannot create directory `/mnt/TMP': Permission denied
> >>>>>>>> 
> >>>>>>>> 		server# ls -l /exports/ext4|grep TMP
> >>>>>>>> 		drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
> >>>>>>>> 		server#
> >>>>>>>> 
> >>>>>>>> Wireshark also shows that the create succeeds.
> >>>>>> 
> >>>>>> Can you share the wireshark trace?
> >>>>> 
> >>>>> Sure.  This covers the mount and mkdir.  The mkdir call and reply are
> >>>>> in frames 77 and 78.
> >>>> 
> >>>> Hmm.... Can you please check if the ACL is being set correctly on the server? I
> >>>> suspect that might be the source of the error.
> >>>> 
> >>> 
> >>> In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?
> >> 
> >> That's on the client mount command?  No difference.
> > 
> > By the way, I managed to do a little bisecting while working on
> > something else today, and blame landed on Chuck's
> > ba9b584c1dc37851d9c6ca6d0d2ccba55d9aad04 "SUNRPC: Introduce
> > rpc_clone_client_set_auth()".  Which makes some sense if it's an ACL
> > problem, and indeed testing on that commit finds success with -noacl,
> > failure without.
> 
> After two weeks, Bruce and I were finally able to catch up in person.
> 
> I've reproduced this on 3.7-rc5 using cthon basic tests.  The first getacl operation fails because it's mistakenly attempting to set up a fresh GSS context on a transport where one already exists.  That's in line with the kind of change that's in commit ba9b584c1.
> 
> > I'm not sure if that explains the failure I was seeing on 3.7-rc1, since
> > there I didn't see any ACL traffic, and still got a failure.  (And
> > -noacl didn't help.)
> 
> The failure occurs on the client just before the getacl request is issued, so you won't see any ACL-related network traffic in the failure case.  The failure prevents any ACL request from succeeding.
> 
> Anyway, I'll have a deeper look at this tomorrow.

Great, thanks for taking another look.

--b.

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-11-16  2:03             ` Chuck Lever
  2012-11-16  2:24               ` J. Bruce Fields
@ 2012-11-16  2:26               ` Myklebust, Trond
  2012-11-16  2:41                 ` Chuck Lever
  1 sibling, 1 reply; 13+ messages in thread
From: Myklebust, Trond @ 2012-11-16  2:26 UTC (permalink / raw)
  To: Chuck Lever; +Cc: J. Bruce Fields, linux-nfs, Schumaker, Bryan

T24gVGh1LCAyMDEyLTExLTE1IGF0I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ZCBNeWtsZWJ1c3QNCkxpbnV4IE5GUyBjbGllbnQgbWFp
bnRhaW5lcg0KDQpOZXRBcHANClRyb25kLk15a2xlYnVzdEBuZXRhcHAuY29tDQp3d3cubmV0YXBw
LmNvbQ0K

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

* Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
  2012-11-16  2:26               ` Myklebust, Trond
@ 2012-11-16  2:41                 ` Chuck Lever
  0 siblings, 0 replies; 13+ messages in thread
From: Chuck Lever @ 2012-11-16  2:41 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: J. Bruce Fields, linux-nfs, Schumaker, Bryan



Sent from my iPad

On Nov 15, 2012, at 9:26 PM, "Myklebust, Trond" <Trond.Myklebust@netapp.com> wrote:

> On Thu, 2012-11-15 at 21:03 -0500, Chuck Lever wrote:
>> On Oct 28, 2012, at 12:15 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
>> 
>>> On Wed, Oct 24, 2012 at 04:40:59PM -0400, J. Bruce Fields wrote:
>>>> On Wed, Oct 24, 2012 at 08:34:37PM +0000, Myklebust, Trond wrote:
>>>>>> -----Original Message-----
>>>>>> From: Myklebust, Trond
>>>>>> Sent: Wednesday, October 24, 2012 4:31 PM
>>>>>> To: 'J. Bruce Fields'
>>>>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
>>>>>> Subject: RE: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>>>> 
>>>>>>> -----Original Message-----
>>>>>>> From: J. Bruce Fields [mailto:bfields@fieldses.org]
>>>>>>> Sent: Wednesday, October 24, 2012 4:15 PM
>>>>>>> To: Myklebust, Trond
>>>>>>> Cc: linux-nfs@vger.kernel.org; Schumaker, Bryan
>>>>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>>>>> 
>>>>>>> On Wed, Oct 24, 2012 at 08:07:55PM +0000, Myklebust, Trond wrote:
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
>>>>>>>>> owner@vger.kernel.org] On Behalf Of J. Bruce Fields
>>>>>>>>> Sent: Wednesday, October 24, 2012 4:03 PM
>>>>>>>>> To: linux-nfs@vger.kernel.org; Myklebust, Trond; Schumaker, Bryan
>>>>>>>>> Subject: Re: 3.7-rc1 NFSv3/sec=krb5 mkdir failure
>>>>>>>>> 
>>>>>>>>> Anyone get a chance to look at this?  It seems very reproduceable.
>>>>>>>>> 
>>>>>>>>> --b.
>>>>>>>>> 
>>>>>>>>> On Tue, Oct 16, 2012 at 08:58:32AM -0400, bfields wrote:
>>>>>>>>>> On 3.7-rc1:
>>>>>>>>>> 
>>>>>>>>>>    client# mount -tnfs -osec=krb5,vers=3 server:/exports/ext4
>>>>>>>>>> /mnt/
>>>>>>>>>> 
>>>>>>>>>>        server# ls -l /exports/ext4|grep TMP
>>>>>>>>>>        server#
>>>>>>>>>> 
>>>>>>>>>>    # mkdir /mnt/TMP
>>>>>>>>>>    mkdir: cannot create directory `/mnt/TMP': Permission denied
>>>>>>>>>> 
>>>>>>>>>>        server# ls -l /exports/ext4|grep TMP
>>>>>>>>>>        drwxr-xr-x  2 nfsnobody nfsnobody 4096 Oct 16 08:56 TMP
>>>>>>>>>>        server#
>>>>>>>>>> 
>>>>>>>>>> Wireshark also shows that the create succeeds.
>>>>>>>> 
>>>>>>>> Can you share the wireshark trace?
>>>>>>> 
>>>>>>> Sure.  This covers the mount and mkdir.  The mkdir call and reply are
>>>>>>> in frames 77 and 78.
>>>>>> 
>>>>>> Hmm.... Can you please check if the ACL is being set correctly on the server? I
>>>>>> suspect that might be the source of the error.
>>>>>> 
>>>>> 
>>>>> In fact, can you see if mounting with '-onoacl' causes the whole thing to succeed?
>>>> 
>>>> That's on the client mount command?  No difference.
>>> 
>>> By the way, I managed to do a little bisecting while working on
>>> something else today, and blame landed on Chuck's
>>> ba9b584c1dc37851d9c6ca6d0d2ccba55d9aad04 "SUNRPC: Introduce
>>> rpc_clone_client_set_auth()".  Which makes some sense if it's an ACL
>>> problem, and indeed testing on that commit finds success with -noacl,
>>> failure without.
>> 
>> After two weeks, Bruce and I were finally able to catch up in person.
>> 
>> I've reproduced this on 3.7-rc5 using cthon basic tests.  The first getacl operation fails because it's mistakenly attempting to set up a fresh GSS context on a transport where one already exists.  That's in line with the kind of change that's in commit ba9b584c1.
> 
> Why shouldn't we be able to cope with multiple GSS sessions on the same
> transport?

Perhaps we should be able to, in general.  But the successful case here does not attempt to create a new context, it simply uses one that is already associated with the transport.  That indicates that the kernel is making an incorrect upcall request perhaps because the new code is not cloning the RPC client correctly.

> 
>>> I'm not sure if that explains the failure I was seeing on 3.7-rc1, since
>>> there I didn't see any ACL traffic, and still got a failure.  (And
>>> -noacl didn't help.)
>> 
>> The failure occurs on the client just before the getacl request is issued, so you won't see any ACL-related network traffic in the failure case.  The failure prevents any ACL request from succeeding.
> 
> Is it gssd that is failing then?

The upcall fails, yes.  That is translated into an immediate failure of the getacl operation.


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

end of thread, other threads:[~2012-11-16  2:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16 12:58 3.7-rc1 NFSv3/sec=krb5 mkdir failure J. Bruce Fields
2012-10-24 20:02 ` J. Bruce Fields
2012-10-24 20:07   ` Myklebust, Trond
2012-10-24 20:15     ` J. Bruce Fields
2012-10-24 20:31       ` Myklebust, Trond
2012-10-24 20:38         ` J. Bruce Fields
2012-10-24 20:34       ` Myklebust, Trond
2012-10-24 20:40         ` J. Bruce Fields
2012-10-28 16:15           ` J. Bruce Fields
2012-11-16  2:03             ` Chuck Lever
2012-11-16  2:24               ` J. Bruce Fields
2012-11-16  2:26               ` Myklebust, Trond
2012-11-16  2:41                 ` Chuck Lever

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.