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

"Eric Voit (evoit)" <evoit@cisco.com> Thu, 13 September 2018 20:37 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 C0339130E77 for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 13:37:36 -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_HIGH=-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 iifoRvi2v27F for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 13:37:35 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C9419130E63 for <netconf@ietf.org>; Thu, 13 Sep 2018 13:37:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5448; q=dns/txt; s=iport; t=1536871054; x=1538080654; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Kigj3mDSJVXtJdnoj8F0QTE4wrxwXzgolL+xVf3FZpg=; b=cRYQRWqIDBexXn5rpa2Epn3IVGOkru2HBgbiUfng8jDiO4oTEPz93ElO ZOOniq0hirlFpVBhPj1OKzASOL3mYsHqfO1JDtXnp+DKP5aoOS9z69hME bBvJNa66dzqwUnoLQ8/GYjfgKdliuZ25wIGxZwv+8TrNKeBf2wPXy/0t6 8=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CjAABeyppb/5pdJa1TCRkBAQEBAQEBAQEBAQEHAQEBAQGBUYIFgWQoCpoxllKBZguEbAKDWCE3FQECAQECAQECbSiFOAEBAQECATo9AgULAgEIDgcDDREQMiUCBA4FCBOFAAinR4oLimgXgUE/gRKDEoRUEoVwAogkhl6EHYg4TwkCkAYfjwOUDAIRFIElMyKBVXAVgyeQU2+NA4EeAQE
X-IronPort-AV: E=Sophos;i="5.53,370,1531785600"; d="scan'208";a="452046038"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2018 20:37:07 +0000
Received: from XCH-RTP-015.cisco.com (xch-rtp-015.cisco.com [64.101.220.155]) by rcdn-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id w8DKb78L007244 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 13 Sep 2018 20:37:07 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 16:37:06 -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 16:37:06 -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//vguAgABTSAD//9utsA==
Date: Thu, 13 Sep 2018 20:37:06 +0000
Message-ID: <7fa1f7ec55414cffa6619cbe9991f5b9@XCH-RTP-013.cisco.com>
References: <e3b31d1329ed439798205c1068186d38@XCH-RTP-013.cisco.com> <20180913.194130.1322555935706323857.mbj@tail-f.com> <686dd827ac6e440680a5191d98d80b3e@XCH-RTP-013.cisco.com> <20180913.204330.1589475713466728926.mbj@tail-f.com>
In-Reply-To: <20180913.204330.1589475713466728926.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: rcdn-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/upcs5oMwiTj7jUjiHzOE8qeHQW0>
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 20:37:37 -0000

> From: Martin Bjorklund, September 13, 2018 2:44 PM
> 
> "Eric Voit (evoit)" <evoit@cisco.com> wrote:
> > 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.
> 
> ... which is a reason to not do the error-app-tag trick; it would then work the
> same across all protocols.

Yes, that was our original proposal.   The WG requested this change about a year ago.  (I can find the threads if necessary.)
 
> But are you sure that these "other protocols" even has a mechanism to insert
> the new error-info structures into their errors?

We will need to look at them one-by-one.  But I am hoping yes.
 
> > 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
> 
> Ok, I don't like this solution, but I can accept it.

Thanks.

Eric

> /martin