[nfsv4] extensions to callbacks and replies

David Noveck <davenoveck@gmail.com> Fri, 24 October 2014 21:54 UTC

Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 202AE1A8BBF for <nfsv4@ietfa.amsl.com>; Fri, 24 Oct 2014 14:54:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.1
X-Spam-Level:
X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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] autolearn=ham
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 fc5GRo6UuLaC for <nfsv4@ietfa.amsl.com>; Fri, 24 Oct 2014 14:54:27 -0700 (PDT)
Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99D6F1A8BB7 for <nfsv4@ietf.org>; Fri, 24 Oct 2014 14:54:21 -0700 (PDT)
Received: by mail-oi0-f42.google.com with SMTP id a141so991432oig.15 for <nfsv4@ietf.org>; Fri, 24 Oct 2014 14:54:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=6VpJjDnfQSijjZ0hUSxTxDcI99r9fRJbqIkCga/FmTQ=; b=thLTzStox2vkMaUksuJSrs+zeUazBSGkFoS4kahSUmsbHtbGd/xw461Rvbx58TWFQM trg17qE/JiKpLQ1vWmmhwRExDU6FO6Y4QW20mV4OjrzXZYlx891ZL90iiAURd2INse+s S7oaAEH12Sl50TK2bLXw1eXzo6ZnFpn3+pE63j4K2eUwYZIRE+KqLdqLQ7lB8Y5gvIWc RbMnxbhYKQn+XhaPZ+FHa+MGz9OWKsKlnu/yT+FfT8zlJkraib60n4pqs/cAyY+ybLIi QYSjK2rtLgou1NnjXDDSpPs0NdACYpwfn8OVlWebrc4itIlEoaCJY1mZa2Zi+Ei+VrFG nBtg==
MIME-Version: 1.0
X-Received: by 10.182.50.198 with SMTP id e6mr3937406obo.45.1414187661091; Fri, 24 Oct 2014 14:54:21 -0700 (PDT)
Received: by 10.182.226.106 with HTTP; Fri, 24 Oct 2014 14:54:21 -0700 (PDT)
Date: Fri, 24 Oct 2014 17:54:21 -0400
Message-ID: <CADaq8jco4dZoAV0n2g-Hj5riTvdjNq-Oa07oxidfsghRFGf+bQ@mail.gmail.com>
From: David Noveck <davenoveck@gmail.com>
To: nico@cryptonector.com, Benny Halevy <bhalevy@primarydata.com>, Bruce Fields <bfields@fieldses.org>, Thomas Haynes <thomas.haynes@primarydata.com>
Content-Type: multipart/alternative; boundary="089e01537fc62f6c2005063239cb"
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/-91x_A1MRi0mISzFmhWyk6YM8Fg
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: [nfsv4] extensions to callbacks and replies
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Fri, 24 Oct 2014 21:54:34 -0000

This is my response to the discussion of the open issue that Tom cited
regarding extensions to the set of callbacks, which was extended by Bruce
to cover extensions to replies as well.

I think the discussion uncovered significant issues which should be
addressed in draft-haynes-nfsv4-versioning-02 (or
draft-ietf-nfsv4-versioning-00).  Here's some proposed changes for people
to comment on.  I hope I've addressed all the issues that people brought
up.  Let me know if I've missed something.


The penultimate unbulleted paragraph of section 5.1 (the one now at the top
of page 8) is modified.  Strike the final "In particular:" and add a new
paragraph after that which reads as follows:

Because the receiver of a message may be unaware of the
existence of a specific extension, certain compatibility
rules need to be observed.  In some cases (e.g addition of
new operations or callbacks or addition of new arms to an
existing switched union) older clients or servers may be
unable to do XDR parsing on an extension of whose existence
they are unaware.  In other cases (e.g. error returns) there
are no XDR parsing issues but existing clients and servers
may have expectations as to what may validly be returned.
Detailed discussion of these compatibility issues appears below:


   o Issues related to messages sent to the server are discussed
     in section 5.1.1.

   o Issues related to messages sent to the client are discussed
     in section 5.1.2.

Begin a new section at this point:  The beginning should read;

*  5.1.1.   Compatibility issues for messages sent to servers.*

This section deals with compatibility issues that relate to
messages sent to the server, i.e. requests and replies to callbacks.
In the case of requests, it is the responsibility of the client to
determine whether the server in question supports the extension in
question before sending a request containing it for any purpose
other than determining whether the server is aware of the extension.
In the case of callback replies, the server demonstrates its awareness
of proper parsing for callback replies by sending the associated callback.


Regarding the handling of requests:


The existing bulleted list follows with the following modifications:

   - For the second bullet, add the following new sentence at the end:

Clients need to do this before attempting to use attributes
defined in an extension since they cannot depend on the
server returning NFS4ERRATTRNOTSUPP for requests which
include a mask bit corresponding to a previously unspecified
attribute number (as opposed to one which is defined but
unsupported).



   - Delete the third bulleted  item  as it now belongs in section 5.1.2.


   - In the fifth bulleted item, 'in a request" after "union".


   - Delete the last bulleted item.


Add after the end of the existing section 5.1 the following additional
paragraph:

Regarding the handling of responses to callbacks:

  o Error values returned to the server for all callbacks that do not

    use new features will only be those previously allowed.  Only when
    the server uses a new callback extension feature can a previously

    invalid error value be returned.


  o Callback replies may only include a new arm of an existing switched

    union when the server, typically in the callback being responded to,

    has used a feature element associated with the feature that defined

    the new switched union arm.


At this point the other new section begins:

*  5.1.2.   Compatibility issues for messages sent to clients.*

This sections deals with compatibility issues that relate to messages
sent to clients, i.e. request replies and callbacks.  In both cases,
extensions are only sent to clients that have demonstrated awareness
of the extensions in question by using an extension associated with
the same feature.


Regarding the handling of request replies:

  o Error values returned to the client for all requests that do not

    use new features will only be those previously allowed.  Only when

    the server uses a new callback extension feature can a previously

    invalid error value be returned.


  o Replies may only include a new arm of an existing switched union
    when the server, typically in the request being responded to,
    has used a feature element associated with the feature that defined
    the new switched union arm.


Regarding the handling of callbacks, the server needs to be sure that
it only sends callbacks to those prepared to receive and parse them.

  o In most cases, the new callback will be part of a feature that
    contains new (forward) operations as well.  When this is the case,
    the feature specification will specify the operations whose receipt
    by a server is sufficient to indicate that the client issuing them
    is prepared to accept and parse the associated callbacks.

  o For callbacks associated with features that have no new operations
    defined, the feature specification should define some way for a
    client to indicate that it is prepared to accept and parse
    callbacks that are part of the extension.  For example, a
    flag bit in the EXCHANGE_ID request may serve this purpose.

    o In both of the above cases, the ability to accept and parse the
    specified callback is considered separate from support for the
    callback.  The feature specification will indicate whether support
    for the callback is required whenever the feature is used by the
    client.  In cases in which support is not required, the client is
    free to return NFS4ERR_NOTSUPP upon receiving the callback.