Return-Path: linux-nfs-owner@vger.kernel.org Received: from acsinet15.oracle.com ([141.146.126.227]:47352 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758819Ab2CSSnD convert rfc822-to-8bit (ORCPT ); Mon, 19 Mar 2012 14:43:03 -0400 Subject: Re: [nfsv4] NFS4 over VPN hangs when connecting > 2 clients Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Chuck Lever In-Reply-To: <20120319183955.GC23670@fieldses.org> Date: Mon, 19 Mar 2012 14:42:30 -0400 Cc: Rick Macklem , Nikolaus Rath , linux-nfs@vger.kernel.org, nfsv4@ietf.org Message-Id: References: <1085412836.1228438.1332175460830.JavaMail.root@erie.cs.uoguelph.ca> <1802632483.1230802.1332176807484.JavaMail.root@erie.cs.uoguelph.ca> <20120319173656.GA23670@fieldses.org> <126867CF-7CAA-4E3D-A9D6-2A5FE30A7DB4@oracle.com> <20120319182712.GB23670@fieldses.org> <20120319183955.GC23670@fieldses.org> To: "J. Bruce Fields" Sender: linux-nfs-owner@vger.kernel.org List-ID: On Mar 19, 2012, at 2:39 PM, J. Bruce Fields wrote: > On Mon, Mar 19, 2012 at 02:29:46PM -0400, Chuck Lever wrote: >> >> On Mar 19, 2012, at 2:27 PM, J. Bruce Fields wrote: >> >>> On Mon, Mar 19, 2012 at 01:47:14PM -0400, Chuck Lever wrote: >>>> >>>> On Mar 19, 2012, at 1:36 PM, J. Bruce Fields wrote: >>>>> Well, sure, but all I'm proposing here is returning NFS4ERR_INUSE in the >>>>> case where we get setclientid's with the same client-provided id. >>>>> There'd be no change of behavior in the case of multiple clients sharing >>>>> an IP (which is fine, of course). >>>> >>>> The migration draft proposes that clients use the same nfs_client_id4 string for all of a server's IP addresses. Would a server then be obliged to return NFS4ERR_CLID_IN_USE if a client attempts a SETCLIENTID with the same boot verifier and nfs_client_id4 on more than one IP address for the same server? >>> >>> That's also not this case, sorry, this time with all the conditions: >>> >>> - if the nfs_client_id4 is the same, and >>> - if the flavor is auth_sys, and >>> - if the client IP address is different, >>> - then return NFS4ERR_INUSE. >> >> This still breaks for multi-homed servers and UCS clients. The client IP address can be different depending on what server IP address the client is accessing, but all the other parameters are the same. > > OK. So probably there's nothing we can do to help here. > > As a bandaid maybe a rate-limited log message ("clientid X now in use > from IP Y") might help debug these things.... Hm, OK. That implies your server implementation assumes that a clientid4 maps to exactly one client IP address at a time. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com