Re: [Netconf] mbj's WGLC review of subscribed-notifications-16

"Eric Voit (evoit)" <evoit@cisco.com> Thu, 13 September 2018 18:25 UTC

Return-Path: <evoit@cisco.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AE061128B14 for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 11:25:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 QLDKOcvKo3qy for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 11:25:54 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7526A130FA5 for <netconf@ietf.org>; Thu, 13 Sep 2018 11:25:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4479; q=dns/txt; s=iport; t=1536863154; x=1538072754; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=OjHg7+2qNNImN3RSzY+Du4Y9DP14CDzZRu1E7B6L820=; b=f3uxygt7hEgt4JQgDSc/EEGykRjHwOV2WSCUGHDqyRRXnSeTngWqb5ej 7/1DC5JBCNtScjC7RQRNOXjfMEt49wA6OTHBAZQR9JOzRLdrHFtGnZ1Bt /Uys46jSagaYqgiUb7QSn3r4N+HFVwVfOu/oLF1Db4oR3GnflCXoWoRVQ o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CGAACLqppb/4sNJK1SCRkBAQEBAQEBAQEBAQEHAQEBAQGBUIIGgWQoCpgggg2WPhSBZguEbAKDWCE2FgECAQECAQECbSiFOAEBAQECATo9AgULAgEIDgcDDREQMiUCBA4FCIUTCKc3igqKaBeBQT+BEoMShFQShXACiCSGXo0kCQKQBh+PA5QMAhEUgSUjATGBVXAVgyeQU2+NAIEeAQE
X-IronPort-AV: E=Sophos;i="5.53,370,1531785600"; d="scan'208";a="441534648"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2018 18:25:53 +0000
Received: from XCH-RTP-015.cisco.com (xch-rtp-015.cisco.com [64.101.220.155]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id w8DIPrxL032589 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 13 Sep 2018 18:25:53 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-015.cisco.com (64.101.220.155) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 13 Sep 2018 14:25:52 -0400
Received: from xch-rtp-013.cisco.com ([64.101.220.153]) by XCH-RTP-013.cisco.com ([64.101.220.153]) with mapi id 15.00.1395.000; Thu, 13 Sep 2018 14:25:52 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] mbj's WGLC review of subscribed-notifications-16
Thread-Index: AQHUSS2c6fWPWMQnpECqHWzj9l2RFqTpyY1wgALe1QCAACWmwIABR3cAgABBbiCAAGvHAP//vguA
Date: Thu, 13 Sep 2018 18:25:52 +0000
Message-ID: <686dd827ac6e440680a5191d98d80b3e@XCH-RTP-013.cisco.com>
References: <013a970e210d4b9693116818f3d5688e@XCH-RTP-013.cisco.com> <20180913.092134.395462318086733174.mbj@tail-f.com> <e3b31d1329ed439798205c1068186d38@XCH-RTP-013.cisco.com> <20180913.194130.1322555935706323857.mbj@tail-f.com>
In-Reply-To: <20180913.194130.1322555935706323857.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.234]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.155, xch-rtp-015.cisco.com
X-Outbound-Node: alln-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/muySsmgtn1UPa9HaTJz_5f1w88A>
Subject: Re: [Netconf] mbj's WGLC review of subscribed-notifications-16
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2018 18:25:57 -0000

Hi Martin,

> From: Martin Bjorklund, September 13, 2018 1:42 PM
> 
> Hi,
> 
> "Eric Voit (evoit)" <evoit@cisco.com> wrote:
> 
> [trimming...]
> 
> > > > > > > o  Section 2.4.6
> > > > > > >
> > > > > > >   The text says:
> > > > > > >
> > > > > > >     1.  "establish-subscription-stream-error-info": This MUST be
> > > > > > >     returned
> > > > > > >         if an RPC error reason has not been placed elsewhere within
> > > > > > >         the
> > > > > > >         transport portion of a failed "establish-subscription" RPC
> > > > > > >         response.
> > > > > > >
> > > > > > >   (and similar for the other errors)
> > > > > > >
> > > > > > >   What exactly does "if an RPC error reason has not been placed
> > > > > > >   elsewhere" mean?
> > > > > >
> > > > > > The intent is to match how NETCONF & RESTCONF historically
> > > > > > handles errors.  As you know with NETCONF, each error identity
> > > > > > will be inserted as the "error-app-tag".
> > > > >
> > > > > It could also be in "error-tag" and/or "error-message".  My
> > > > > point is that I don't think that you mean that if an
> > > > > implementation populate say "error-message", then it should not
> > > > > popluate error-info with
> > > > > establish-subscription-stream-
> > > > > error-info.
> > > >
> > > > I do mean that.  I don't think we should send:
> > > > "establish-subscription-stream-error-info" for NETCONF when there
> > > > is no hint included.  All the necessary error info is already in
> > > > the existing message.
> > >
> > > But is this really true?  In the
> > > "establish-subscription-stream-error-info" there is a leaf called
> > > "reason", which is an identity with a detailed error reason, for
> > > example "history-unavailable".
> > > This info is not present anywhere else in the rpc-error, so it needs
> > > to be present here.
> >
> > For NETCONF, this info should be mapped into <error-app-tag>.  See
> > section 7 of NETCONF-Notif, as well as Figure 10 for an example.  Or
> > section 3 of RESTCONF-Notif, with Figure 7.
> >
> > This was done to align things with existing NETCONF & RESTCONF error
> > mechanisms.
> 
> Ok.  I thought the special error-app-tag thing was removed.  If we have the
> error-app-tag value, why do we also have the "reason" leaf?

Because of the need to be transport agnostic.  Other protocols are unlikely to have a pre-existing "error-app-tag" construct.  And the current YANG data structure can be inserted where needed and contain

> Since I thought that the error-app-tag was removed, I asked Alex to remove
> them from the examples in YANG push (that doc has examples ;).
> These examples in YANG push need to put back the error-app-tag.
> 
> So now we're back to the main issue.  Is it clear from the SN text when to
> include the error-info yang-data stuff or not?

I have added a new sentence which hopefully clarifies this intent within section 2.4.  I have also re-added the second sentence of each bullet to something close to the original text of -v16.  It now reads:


   There is one final set of transport independent RPC error elements
   included in the YANG model.  These are three yang-data structures
   which enable the publisher to provide to the receiver that error
   information which does not fit into existing transport layer RPC
   structures.  These three yang-data structures are:

   1.  "establish-subscription-stream-error-info": This MUST be returned
       with the leaf "reason" populated if an RPC error reason has not
       been placed elsewhere within the transport portion of a failed
       "establish-subscription" RPC response.  This MUST be sent if
       hints on how to overcome the RPC error are included.

   2.  "modify-subscription-stream-error-info": This MUST be returned
       with the leaf "reason" populated if an RPC error reason has not
       been placed elsewhere within the transport portion of a failed
       "modify-subscription" RPC response.  This MUST be sent if hints
       on how to overcome the RPC error are included.

   3.  "delete-subscription-error-info": This MUST be returned with the
       leaf "reason" populated if an RPC error reason has not been
       placed elsewhere within the transport portion of a failed
       "delete-subscription" or "kill-subscription" RPC response


Eric

> [...]
> /martin