Re: [nfsv4] I-D Action: draft-ietf-nfsv4-flex-files-10.txt

David Noveck <davenoveck@gmail.com> Wed, 19 July 2017 07:01 UTC

Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD636129A96 for <nfsv4@ietfa.amsl.com>; Wed, 19 Jul 2017 00:01:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sghsK0v8RDMG for <nfsv4@ietfa.amsl.com>; Wed, 19 Jul 2017 00:01:13 -0700 (PDT)
Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9C0A12F4EA for <nfsv4@ietf.org>; Wed, 19 Jul 2017 00:01:12 -0700 (PDT)
Received: by mail-it0-x22a.google.com with SMTP id a62so32496322itd.1 for <nfsv4@ietf.org>; Wed, 19 Jul 2017 00:01:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pcBVlXyaWLH3UUW+4F/FrTnirBHMn7gxbElJcr7SkoM=; b=Ot0v2enUlJchI5pY1YbCqxODfg8qwAyor0BOxTYKXFjWz6dPoKj5UkJClDJVdvJazj Ao94BrrZJH5DHbM0mzyYUg8XY4Nuk/V2tfEV6i4/fSJIxKjT0KWKLLTCrBauNZmhzrih nWScLCIKITAGsqFMo2KaUW6fydwB0d5q0eKnYvkvt1vuP0qQRUWELuWWN7uOXRx97oCu KlqjW13LKOn1q2hncTrdQn4/k/J5omuJKPyUCDLcVZUv5DQ2akCjMMEXMSxpCDssNrIl eWozZNMAO+3rOV+menK0lwzu3s+h5u3mFStFzfD5SRgaM8d3p42repbx4Zxaaw2S9ToL rdBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pcBVlXyaWLH3UUW+4F/FrTnirBHMn7gxbElJcr7SkoM=; b=mzf/eeILi0/SuO1a3LKxUhHm+jqu8jTjGkP2whlZE2cteD99rPQyJr2VTiuyh78x0D /3P+DCUUQo3r7GcnO43AvpzlUU7+YgKdhutA7GvE617B2sJqndahTy3WzEQcfd4aZ7g8 6CnYdj3K3ByTmO5aV4/u+vFEaMEh/GW5so8vBqQusNUxzh6Tvn168UZgG3RN05Msch73 Rm1f63BRjkmaUHdDDgiOi1zJ+cTCJJYee+amN0z7c/VvXrim+ozwaDDd+WMDHfBhHLYt 9iNkyTvhxShGAK9jaQ6vlBu0KZMyx34r51F1TvQmnl/EeKE5TYuQk3xrK+0tNaSvdx5x jlsw==
X-Gm-Message-State: AIVw1114cEgfdw+2FNCwbzEiVNJEgOO43Z7Wg5eqC9AqhPQyInfYJJRL zJ2a3H4VSRektisNWdUBrOMNQ1smaQ==
X-Received: by 10.36.88.135 with SMTP id f129mr920366itb.22.1500447672093; Wed, 19 Jul 2017 00:01:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.57.86 with HTTP; Wed, 19 Jul 2017 00:01:11 -0700 (PDT)
In-Reply-To: <3B65C9D8-FB7A-4956-A7A4-6CF14C3BF5F9@primarydata.com>
References: <150032626766.24491.10112068414343721839@ietfa.amsl.com> <626B1EB5-D799-4E29-ADC4-A55682124622@primarydata.com> <YTXPR01MB018976132160BCC0FD3FFDBEDDA00@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> <8B8F4E97-9DB8-4383-96ED-3A99DAE1049C@primarydata.com> <YTXPR01MB0189B3E2F3721FA3C19CB780DDA10@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> <3B65C9D8-FB7A-4956-A7A4-6CF14C3BF5F9@primarydata.com>
From: David Noveck <davenoveck@gmail.com>
Date: Wed, 19 Jul 2017 03:01:11 -0400
Message-ID: <CADaq8jeb4bTVvi98LpxWXpUcLQFGMc_kpBaAzPQSkNZws+Lm9w@mail.gmail.com>
To: Thomas Haynes <loghyr@primarydata.com>
Cc: Rick Macklem <rmacklem@uoguelph.ca>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Content-Type: multipart/alternative; boundary="001a113bbf3c7fd4cb0554a632dc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/ChOaHqNQhK2vhj65V4MZlSflKIA>
Subject: Re: [nfsv4] I-D Action: draft-ietf-nfsv4-flex-files-10.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Jul 2017 07:01:16 -0000

> The exception being NFS4ERR_DELAY - the client may want to retry the IO.

Another possible exception is the NFSv4.0 error NFS4ERR_LEASE_MOVED.

On Wed, Jul 19, 2017 at 2:50 AM, Thomas Haynes <loghyr@primarydata.com>
wrote:

>
> > On Jul 18, 2017, at 2:45 PM, Rick Macklem <rmacklem@uoguelph.ca> wrote:
> >
> > Thomas Haynes wrote:
> >>
> >>
> >> And as a client implementor, you are completely unaware of all of that.
> > I did a partial implementation of the client side last year and, at
> least for normal
> > operation, I think this statement is correct.
> >
> > One case where the client "might" need to know is when the server is
> doing
> > fencing.
> > - Unless I have misunderstood it, for the loosely coupled model, the
> client will
> >  see a NFS4ERR_ACCESS error when trying to do I/O on the storage server?
> > - But what error does the client see for the tightly coupled model?
>
>
> That would actually depend on how the fencing was done (it is totally up to
> the control protocol).
>
> The implementation might cause the storage device to return NFS4ERR_ACCESS
> or NFS4ERR_BAD_STATEID. The key point is that when the client gets an error
> from the storage device, it is responsible for returning the layout to the
> mds.
>
> The exception being NFS4ERR_DELAY - the client may want to retry the IO.
>
> >
> > Put another way, I think the client will need to be able to recognize
> the difference
> > between "fencing" and a typical NFS4ERR_ACCESS due to permissions on a
> tightly
> > coupled server.
>
> I don’t think so. Consider that the client already passed permission
> checking to
> get the file open and the layout. Now it could get the error either
> because it
> does not have write permission or the permissions on the file was closed.
>
> In any event, on any error, the client should return the layout (along
> with the error)
> to the MDS. It can then ask for the LAYOUT again. At which point the mds
> either
> assigns the new layout or does not provide a new layout (forcing IO to the
> mds)
> or it could return NFS4ERR_ACCESS if the permissions had changed.
>
>
> > (My partial implementation didn't include code to deal with mirrors or
> the case
> > where one mirror has failed or been fenced off, so I didn't deal with
> this case.)
> >
> > I'll dig into -11 later to-day.
> >
> > Thanks again, rick
> >
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>