Re: [Netmod-ver-dt] Comments on draft-verdt-netmod-yang-module-versioning.txt (May 16 version)

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Tue, 04 June 2019 17:51 UTC

Return-Path: <jason.sterne@nokia.com>
X-Original-To: netmod-ver-dt@ietfa.amsl.com
Delivered-To: netmod-ver-dt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C19C7120199 for <netmod-ver-dt@ietfa.amsl.com>; Tue, 4 Jun 2019 10:51:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 pjC-fk0o7J-y for <netmod-ver-dt@ietfa.amsl.com>; Tue, 4 Jun 2019 10:51:16 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20104.outbound.protection.outlook.com [40.107.2.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B5B45120193 for <netmod-ver-dt@ietf.org>; Tue, 4 Jun 2019 10:51:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qeo9oSHlu3YMVhLcjd7EtIiJHJJUW6TsV6DJULQiG/s=; b=S09gaCIPD0ShXdNLXwNoHloOwzDM2GuklmZ2XbCwhMpmx1/Hnsykg+uxV5W9HTwCTLr5SP8Ki5MEWXzIbDNmkxeISxa43RJWAyjLidXShfPGA1GGURmuw6xr+o+UwnjrdQBtE46PQdUF2fWoS17Do5irFPZ1jWuRcfiSKf82Zlo=
Received: from VI1PR07MB3981.eurprd07.prod.outlook.com (52.134.28.141) by VI1PR07MB5743.eurprd07.prod.outlook.com (20.177.202.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.10; Tue, 4 Jun 2019 17:51:13 +0000
Received: from VI1PR07MB3981.eurprd07.prod.outlook.com ([fe80::25cb:d0f3:dd14:3b68]) by VI1PR07MB3981.eurprd07.prod.outlook.com ([fe80::25cb:d0f3:dd14:3b68%6]) with mapi id 15.20.1965.011; Tue, 4 Jun 2019 17:51:13 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Thread-Topic: Comments on draft-verdt-netmod-yang-module-versioning.txt (May 16 version)
Thread-Index: AdURb21sAkuH8qSrRduJlr3VI5Xo1gJRM+TQABIvIzA=
Date: Tue, 04 Jun 2019 17:51:12 +0000
Message-ID: <VI1PR07MB39814D6A065D50BBA340C65B9B150@VI1PR07MB3981.eurprd07.prod.outlook.com>
References: <VI1PR07MB39811366C619F54ECD73EE3D9B010@VI1PR07MB3981.eurprd07.prod.outlook.com> <BYAPR11MB2631A012B0EF45E6F8313CD8B5150@BYAPR11MB2631.namprd11.prod.outlook.com>
In-Reply-To: <BYAPR11MB2631A012B0EF45E6F8313CD8B5150@BYAPR11MB2631.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=jason.sterne@nokia.com;
x-originating-ip: [135.245.20.13]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b2244b7b-3535-4bcb-04d9-08d6e9153c10
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR07MB5743;
x-ms-traffictypediagnostic: VI1PR07MB5743:
x-ms-exchange-purlcount: 1
x-microsoft-antispam-prvs: <VI1PR07MB574381A816F15EBC322A45A59B150@VI1PR07MB5743.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0058ABBBC7
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(346002)(376002)(396003)(366004)(39860400002)(51444003)(189003)(199004)(71200400001)(71190400001)(55016002)(9686003)(54896002)(256004)(606006)(8676002)(81166006)(7696005)(236005)(14444005)(5024004)(66066001)(6306002)(68736007)(2501003)(508600001)(66476007)(66556008)(6246003)(81156014)(8936002)(2906002)(33656002)(66946007)(52536014)(7736002)(76116006)(486006)(3846002)(229853002)(53936002)(66446008)(110136005)(476003)(64756008)(6436002)(446003)(561944003)(11346002)(316002)(99286004)(966005)(73956011)(26005)(102836004)(6506007)(14454004)(86362001)(74316002)(25786009)(53546011)(186003)(76176011)(790700001)(5660300002)(6116002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB5743; H:VI1PR07MB3981.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: VXNEICRRfq2pMNXoCdb8dMMS5QuAvAZShkCbOjomZhXIUe/bR+quQOOjo+UVNTS/zmj4kW7LrgNDYhZtyWOzjSizg56MOqwbzdc2cK27ytSwz300uGgb5F93KZ9TnSleCUluvqwAuTznBxlYekJN/n1zGQ7TH8UalmG5BiTRiO4I7HPevk6O+42HZ9DvFA0C/7glmqXyqvx9QuKeS9FwuLKDQBdnNdUhW/iV6CuCmciPQ/5LtFzuEsDUWzqDYYc42BfoE18gIOMtNpmAFpZYYkdJ1dCUBGhxA5veco5/W8wGXWvoypmmfftLRqtzKlEvsJjHO9evjkQjRBKqFRZfL8o25TAnSERq8o64pgU+wR3VTSd14dTI2D4X54JHA2svnW4yc1zHe3Gx6SDIfLryzaY2yD0/0Jb/dPAwZqnU9uY=
Content-Type: multipart/alternative; boundary="_000_VI1PR07MB39814D6A065D50BBA340C65B9B150VI1PR07MB3981eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b2244b7b-3535-4bcb-04d9-08d6e9153c10
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 17:51:12.9772 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: jason.sterne@nokia.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5743
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod-ver-dt/wZKLg312eTrrUm0rtzMsEZiJC2Y>
Subject: Re: [Netmod-ver-dt] Comments on draft-verdt-netmod-yang-module-versioning.txt (May 16 version)
X-BeenThere: netmod-ver-dt@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NetMod WG YANG Model Versioning Design Team <netmod-ver-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod-ver-dt/>
List-Post: <mailto:netmod-ver-dt@ietf.org>
List-Help: <mailto:netmod-ver-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Jun 2019 17:51:20 -0000

All looks good - thx.  I'm nervous about wording that says we "allow" NBC changes, but we do need to say it somewhere.  You seem to have good statements surrounding it to temper that statement.

jason

From: Rob Wilton (rwilton) <rwilton@cisco.com>
Sent: Tuesday, June 4, 2019 5:14 AM
To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>; netmod-ver-dt@ietf.org
Subject: RE: Comments on draft-verdt-netmod-yang-module-versioning.txt (May 16 version)

Hi Jason,

I've attached the latest version of the doc, after applying the comments from Balazs's review.

Inline with [RW]

From: Netmod-ver-dt <netmod-ver-dt-bounces@ietf.org<mailto:netmod-ver-dt-bounces@ietf.org>> On Behalf Of Sterne, Jason (Nokia - CA/Ottawa)
Sent: 23 May 2019 14:57
To: netmod-ver-dt@ietf.org<mailto:netmod-ver-dt@ietf.org>
Subject: [Netmod-ver-dt] Comments on draft-verdt-netmod-yang-module-versioning.txt (May 16 version)

Hi guys,

Some comments on this file (May 16 version):
https://github.com/netmod-wg/yang-ver-dt/blob/develop/yang-mod-ver/draft-verdt-netmod-yang-module-versioning.txt

(A)
Replace this abstract:

   This document specifies a new YANG module update procedure to allow
   for limited non-backwards-compatible changes, as an alternative
   proposal to module update rules in the YANG 1.1 specifications.  This
document updates RFC 7950, RFC 8407 and RFC 8525.

with this (to avoid the implication that we are simply trying to "allow" NBC changes):

   This document specifies a method for documenting non-backwards-compatible changes that have occurred in a YANG module. Guidelines for managing the lifecycle of YANG modules are also provided. This document updates RFC 7950 (primarily the module update rules), RFC 8407 and RFC 8525.
[RW]
I've merged, and expanded this slightly.

What about the following text?

   This document specifies a new YANG module update procedure that can
   document when non-backwards-compatible changes have occurred during
   the evolution of a YANG module.  It provides a variant to the YANG
   import statement to better represent inter-module dependencies.  It
   provides help and guidelines for managing the lifecycle of YANG
   modules and individual schema nodes.  This document updates RFC 7950,
   RFC 8407 and RFC 8525.




(B)
replace this paragraph in section 1:

   Specifically, this document recognises a need to sometimes allow YANG
   modules to evolve with non-backwards-compatible changes, which could
cause breakage to clients and importing YANG modules.

with the following:

   Specifically, this document recognises a need to describe when a non-backwards-compatible (NBC) change has occurred in a YANG module [optional: in cases where the NBC change has been deemed necessary].  An NBC change can cause an incompatibility between a client using an older revision of the YANG module and a server using a newer revision.
[RW]
After updating with the comments from Balazs, the current text is:


   Specifically, this document recognises a need (within standards

   organizations, vendors, and the industry) to sometimes allow YANG

   modules to evolve with non-backwards-compatible changes, which could

   cause breakage to clients and importing YANG modules.  Accepting that

   non-backwards-compatible changes do sometimes occur, it is important

   to have mechanisms to report where these changes occur, and to manage

   their effect on clients and the broader YANG ecosystem.

I think that it is OK to say that NBC changes are sometimes allowed, specifically that is what our guidelines text currently states.  I agree that there may still be push back on this.


(C)
In section 2, remove the following sentence from its paragraph/bullet and separate it down into its own paragraph fully left justified.  It isn't really part of the list of 'updates' to RFC7950.  We're just reinforcing that a rule is still in place.

As per [RFC7950], YANG module revisions
      continue to be uniquely identified by the module's revision-date,
      and hence all revisions of a module MUST have unique revision
dates.
(D)
In section 2.1, replace this text:

   This section updates [RFC7950] chapter 11 to provide a more flexible
   approach that allows for some non-backwards-compatible changes during
   YANG module updates.

   Where pragmatic, updates to YANG modules SHOULD be backwards-
compatible, as described in Section 2.1.1.

with this (the guidelines can recommend to avoid NBC changes, and what we're changing here in this particular section doesn't really directly allow or support NBC changes anyways):

This section updates [RFC7950] chapter 11 to modify and clarify the definition of a non-backwards-compatible (NBC) change, and to allow a method of describing when an NBC change occurs in a YANG module.

(E)
section 2.1.2 -> change ' brekaage' to 'breakage'

I'm also not sure if the examples of NBC changes makes sense to include here. Especially the 2nd, 4th 5th and 6th bullets which are clearly described already in section 11 of RFC 7950.  Maybe just keep examples 1 & 3 and any others that are somewhat new based on our updates, or aren't terribly clear in section 11 of RFC 7950

That's as far as I've gotten for now.
[RW]
I've quite heavily reworked the initial parts of section 2.  Please can you check whether you think that these comments still apply with the current text:


2.  Refinements to YANG revision handling



   [RFC7950] assumes, but does not explicitly state, that the revision

   history for a YANG module is strictly linear, i.e., it is prohibited

   to have two independent revisions of a YANG module that are both

   directly derived from the same parent revision.



   This document clarifies [RFC7950] to explicitly allow non linear

   development of YANG module revisions, so modules MAY have multiple

   revisions that directly derive from the same parent revision.  As per

   [RFC7950], YANG module revisions continue to be uniquely identified

   by the module's revision-date, and hence all revisions of a module

   MUST have unique revision dates.



   [RFC7950] chapter 11 requires that all updates to a YANG module are

   backwards compatible to the previous revision of the module.  This

   document allows for more flexible evolution of YANG modules: Non-

   backwards-compatible changes between module revisions are allowed and

   are documented using a new 'nbc-changes' extension statement in the

   module revision history.



2.1.  Updating a YANG module with a new revision



   This section updates [RFC7950] chapter 11 to refine the rules for

   permissible changes when a new YANG module revision is created.



   Where pragmatic, updates to YANG modules SHOULD be backwards-

   compatible, following the definition in Section 2.1.1.



   A new module revision MAY contain non-backwards-compatible changes,

   i.e., the semantics of an existing definition MAY be changed in a

   non-backwards-compatible way without requiring a new definition with

   a new identifier.  A new module revision with non-backwards-

   compatible changes MUST include a 'rev:nbc-changes' extension

   substatement to signal the potential for incompatibility to existing

   module users and readers.



2.1.1.  Backwards-compatible changes



   The following statements update [RFC7950] chapter 11 to define what

   changes constitute an allowable backwards-compatible change to a YANG

   module:



   o  A "status" "deprecated" statement may be added, or changed from

      "current" to "deprecated", but adding or changing "status" to

      "obsolete" is not a backwards-compatible change.



   o  Obsolete definitions MAY be removed from published modules, and

      are classified as backwards-compatible changes.  In some

      circumstances it may be helpful to retain the obsolete definitions

      to ensure that their identifiers are not reused with a different

      meaning.



   o  In statements that have any data definition statements as

      substatements, those data definition substatements MAY be

      reordered, as long as they do not change the ordering or any 'rpc'

      'input' substatements.  If new data definition statements are

      added, they can be added anywhere in the sequence of existing

      substatements.



2.1.2.  Non-backwards-compatible changes



   Any changes to YANG modules that are not classified by Section 2.1.1

   as being backwards-compatible are classified as 'non-backwards-

   compatible' changes.



   One particular change to [RFC7950] chapter 11 is that adding or

   changing a 'status' state to 'obsolete' is classified as a non-

   backwards-compatible change, because it could break any clients

   relying on servers implementing the obsoleted data node.



2.2.  nbc-changes revision extension statement
...
Thanks,
Rob


Jason