Re: [nfsv4] Progressing RFC errata for RFC 5661

"Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de> Wed, 18 September 2019 11:06 UTC

Return-Path: <tigran.mkrtchyan@desy.de>
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 52FCB1201EF for <nfsv4@ietfa.amsl.com>; Wed, 18 Sep 2019 04:06:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.999
X-Spam-Level:
X-Spam-Status: No, score=-5.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=desy.de
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 dzsMmVyKbg47 for <nfsv4@ietfa.amsl.com>; Wed, 18 Sep 2019 04:06:21 -0700 (PDT)
Received: from smtp-o-2.desy.de (smtp-o-2.desy.de [131.169.56.155]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4A2331201C6 for <nfsv4@ietf.org>; Wed, 18 Sep 2019 04:06:20 -0700 (PDT)
Received: from smtp-buf-2.desy.de (smtp-buf-2.desy.de [131.169.56.165]) by smtp-o-2.desy.de (Postfix) with ESMTP id 0258C160565 for <nfsv4@ietf.org>; Wed, 18 Sep 2019 13:06:18 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-o-2.desy.de 0258C160565
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=desy.de; s=default; t=1568804778; bh=H9IjrUmf3gfXFDXt0LufZzxtMzwYuiJBUtQGAXykccQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=ybQJYDaua7HJT3pemPr5gr2TQBIgCpKPgIELuR+07i7R+rpiwZwaAm2MQmjPBPnLh cin6Mh2JEPCrsklchpxARlQ/e8LT0j8Va+Dg2f/D/gqAlSwkBxewI5CtgWOhTjgqxI TrLrF7MpV4x3b6hNcX9QoF8pPcyOGSyjsabYQ2i8=
Received: from smtp-m-2.desy.de (smtp-m-2.desy.de [131.169.56.130]) by smtp-buf-2.desy.de (Postfix) with ESMTP id EED0C1A00A9; Wed, 18 Sep 2019 13:06:17 +0200 (CEST)
X-Virus-Scanned: amavisd-new at desy.de
Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by smtp-intra-2.desy.de (Postfix) with ESMTP id BE46910003A; Wed, 18 Sep 2019 13:06:17 +0200 (CEST)
Date: Wed, 18 Sep 2019 13:06:17 +0200
From: "Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de>
To: Rick Macklem <rmacklem@uoguelph.ca>
Cc: Trond Myklebust <trondmy@gmail.com>, Dave Noveck <davenoveck@gmail.com>, Magnus Westerlund <magnus.westerlund@ericsson.com>, NFSv4 <nfsv4@ietf.org>
Message-ID: <1941956044.30576385.1568804777656.JavaMail.zimbra@desy.de>
In-Reply-To: <YTXPR0101MB2189B0CB69FA090BD1D54F92DD8E0@YTXPR0101MB2189.CANPRD01.PROD.OUTLOOK.COM>
References: <DB7PR07MB5736124B2F507DA20F317BC195B30@DB7PR07MB5736.eurprd07.prod.outlook.com> <CADaq8jd4u-Lwvy_Csu2jqrcGFZ_tLOeSkqKwUW0eivuc=trsBg@mail.gmail.com> <CAABAsM5TDGx0qiMv+Ln4WLOKjuQiTFKr6HD6d9zqD3NfjpvoFg@mail.gmail.com> <YTXPR0101MB2189B0CB69FA090BD1D54F92DD8E0@YTXPR0101MB2189.CANPRD01.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Zimbra 8.8.10_GA_3781 (ZimbraWebClient - FF69 (Linux)/8.8.10_GA_3786)
Thread-Topic: Progressing RFC errata for RFC 5661
Thread-Index: AQHVbM0EuGFC68ZdA0WMehAxtQCJUqcwwJsEofkpcSM=
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/B2ErZxfGcw71wxqjziioG_pBnUU>
Subject: Re: [nfsv4] Progressing RFC errata for RFC 5661
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.29
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, 18 Sep 2019 11:06:25 -0000


----- Original Message -----
> From: "Rick Macklem" <rmacklem@uoguelph.ca>
> To: "Trond Myklebust" <trondmy@gmail.com>, "Dave Noveck" <davenoveck@gmail.com>
> Cc: "Magnus Westerlund" <magnus.westerlund@ericsson.com>, "NFSv4" <nfsv4@ietf.org>, "Tigran Mkrtchyan"
> <tigran.mkrtchyan@desy.de>
> Sent: Wednesday, September 18, 2019 5:27:29 AM
> Subject: Re: [nfsv4] Progressing RFC errata for RFC 5661

> Trond Myklebust wrote:
>>On Sun, 15 Sep 2019 at 09:44, David Noveck
>>><davenoveck@gmail.com<mailto:davenoveck@gmail.com>> wrote:
>>>
>>>An additional issue that needs to be addressed before incorporating these
>>>>>changes is that it is not appropriate to add extensive material about
>>>handling >>the file layout to Section 12.  That belongs in Section 13. We don't
>>>want to >>exacerbate the confusion that Tom has noted between statements about
>>>>>layouts in general and  about file layouts.  Rfc5661bis needs to do better in
>>>>>respect.
>>>RFC5661 (2751<https://www.rfc-editor.org/verify_errata_select.php?eid=2751>)
>>>GLOBAL
>>>Technical
>>>nfsv4 (tsv)
>>>Ricardo Labiaga
>>>
>>>This is similar to the errata above although, because of the extensiveness of
>>>the
>>>changes proposed I think Rejected is more appropriate as an errata status.
>>
>>Rejecting this would break clients that have been encoded to rely on that
>>>behaviour (i.e the Linux client, for one). Without it, we would be unable to
>>>determine whether or not a LAYOUTCOMMIT is required for the files pNFS >layout
>>type, and would have to default to assuming it does. That would put the
>>>existing client base in violation. It would also force us to start sending
>>>LAYOUTCOMMIT to servers that currently do not require it (i.e. NetApp).
> Just fyi, this is what the FreeBSD client does. It always sends a Layoutcommit
> to the MDS whenever an fsync(2) or similar is done and the client holds
> a write layout for the file, unless the server replies NFS4ERR_NOTSUPP to
> Layoutcommit. (I think that the Netapp Filer replies NFS4ERR_NOTSUPP to
> Layoutcommit, which was why it disables doing Layoutcommits on a mount
> once it sees a NFS4ERR_NOTSUPP reply.)
> --> Layoutcommits are done even if the DS replies FILE_SYNC and/or the MDS
>       sets commit-through-MDS.
> 
>>I'm not aware of any pNFS files server implementation that is in violation of
>>this >errata and that is expecting a LAYOUTCOMMIT on a commit-through-MDS
>>>implementation, or following a FILE_SYNC return from a commit-through-DS
>>>implementation. Ccing Rick and Tigran for their input.
> Well, when I first wrote the pNFS server, I assumed that the Layoutcommit
> would be done and used it to synchronize the FileSize, Change attributes
> between the DS and the ones cached in the MDS.
> 
> Then, I found out this didn't work for the Linux client, so I added a tunable
> sysctl called vfs.nfsd.pnfsgetdsattr which tells the server to not cache
> FileSize, Change when a write layout is issued to a client for the file.
> As such, when this tunable is set (and that is the default), it works for the
> Linux client, but is less efficient, since it must acquire FileSize, Change from
> the DS whenever a Getattr requests them, if a write layout has been issued
> for the file.
> --> The FreeBSD server can be run either assuming the Layoutcommit is always
>       done, or if the clients don't do them. In the latter case, it should work
>       correctly even if a client never does a Layoutcommit.
> 
> I have not seen the wording of the actual errata (the links in these posts
> require a login I don't have and I probably missed it when it was emailed),
> but I am assuming that it says Layoutcommits should be done by the client
> when the DS replies Unstable to writes and the MDS requires
> commit-through-DS.


Hi Rick,

here is the public link to errata

https://www.rfc-editor.org/errata/eid2751

Tigran.
> 
> rick