Re: [netmod] All IETF YANG modules MUST include revision-label statements

tom petch <ietfc@btconnect.com> Wed, 01 April 2020 11:05 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1AAAB3A08C0 for <netmod@ietfa.amsl.com>; Wed, 1 Apr 2020 04:05:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=btconnect.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 UZGaqzcW6yFz for <netmod@ietfa.amsl.com>; Wed, 1 Apr 2020 04:05:14 -0700 (PDT)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70114.outbound.protection.outlook.com [40.107.7.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 11CAA3A08BA for <netmod@ietf.org>; Wed, 1 Apr 2020 04:05:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U/7k+IzCv0vl54raKaCILOEw11KAZJC+NXC7Vo0jWE2QbOpLT4ibeua7kANBSOPdW7fQnfsu0MoMbBmGVChL9lw5n9mtHQczahR2+t8jgwCIa0+cw1cTa5/IKL93aHX1Zg0W2CD1IOIKFDjGPaH95hnGQAYtjFR/jEpFOWLZwBiz7yut+YXUUPvPSi48kVfad4tPVTUlSwRs/MrLFgmB8Eldh/hjrEsGifpozGeXuJbuCoNq/BEpezJdTuycXkDqomC/VJUfk496mqDSkg1dEyxyh6G94F0x7CDA9M3Vmlodmx2gaIIqDKjgT3/XBaH+N0cYcmxTVzpoa69FlTtT8g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3JF99NsPXz2PX8uiCCslnGIdZNipUz5K2r2cijoKDF4=; b=X7W7KV++J0n6itHTqmNY/gjeWqAPhBXhyzE6E0uA5vZc9FpTEGMBV1JBPaG8gS5H9H4Dljxnif+VksKl2eAEZdWTtybiHaYGOq0oumXj3cTuA0aKYw+ajfCSxfP/DZrcy//HdEX5mCqnJHSm1ZrQvaPO8oJAclD7lnwpBNcBnYHfiWB4kWCLvx35HLaJtUDWN1VNrWdcBVGbWD8+pqST48+OOBKwe+m2OvyKmn38nAzuP4DzSVUmLIJ+6pfts7tsKQuPS6aLfbcfvogwV8jDoXZ3MFcUTtdEaCFa9D4RQBcUk9q8fQUKMWDM1gnuHYkUjWuR7b875AYTnATr0MNZ/A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3JF99NsPXz2PX8uiCCslnGIdZNipUz5K2r2cijoKDF4=; b=OKDtCu+Q4Mzd/OlJkhb9Qn1zliArybCh7FszCf/4w9xRQaJMFKdwYsFJmLa+a84hJxc6C2gJk4ZAEhQqFx2wDVm9ASmjzPoR8MEXlgWeTkldRsoYd6BBOTnRpuj64cLVJ4eny95q3tJH5Mwk8hFUel14fJ6PDMpYGXjeHT+/Drw=
Received: from DB7PR07MB5657.eurprd07.prod.outlook.com (20.178.85.222) by DB7PR07MB4919.eurprd07.prod.outlook.com (20.177.192.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.14; Wed, 1 Apr 2020 11:05:11 +0000
Received: from DB7PR07MB5657.eurprd07.prod.outlook.com ([fe80::a438:bbc9:2ffe:33ee]) by DB7PR07MB5657.eurprd07.prod.outlook.com ([fe80::a438:bbc9:2ffe:33ee%5]) with mapi id 15.20.2878.013; Wed, 1 Apr 2020 11:05:10 +0000
From: tom petch <ietfc@btconnect.com>
To: Andy Bierman <andy@yumaworks.com>, Kent Watsen <kent+ietf@watsen.net>
CC: "netmod@ietf.org" <netmod@ietf.org>, "Rob Wilton (rwilton)" <rwilton=40cisco.com@dmarc.ietf.org>
Thread-Topic: [netmod] All IETF YANG modules MUST include revision-label statements
Thread-Index: AQHWBryMF2P3krh/H0WDgnCbcEWL3Khhcj8AgAAIq4CAASIAAIAAOhsAgAAL0wCAATXpIw==
Date: Wed, 01 Apr 2020 11:05:10 +0000
Message-ID: <DB7PR07MB56571BB7BFBEE60FC3584E02A0C90@DB7PR07MB5657.eurprd07.prod.outlook.com>
References: <75CFDBD9-143C-407A-B7C3-26CEC51E229C@cisco.com> <20200328.094121.1160081114435152145.id@4668.se> <76623C79-BB91-4B5F-8FEA-406ADEAD1647@cisco.com> <20200330.202016.930329343788112268.id@4668.se> <CABCOCHS=y8d00xHLzV+LNpvN_=jScw5VizGYWXGopsQAi8qZUw@mail.gmail.com> <MN2PR11MB4366775C8E9A5488D33E484EB5C80@MN2PR11MB4366.namprd11.prod.outlook.com> <01000171313d4b26-a5e29676-2bd1-4bd0-9598-d3eee7fbf32d-000000@email.amazonses.com>, <CABCOCHQ0-8VQNaSUzihZLko8VvZ_3o4bC1Jc7K0rN43Ru8suiQ@mail.gmail.com>
In-Reply-To: <CABCOCHQ0-8VQNaSUzihZLko8VvZ_3o4bC1Jc7K0rN43Ru8suiQ@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
x-originating-ip: [81.131.229.19]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 38323504-ad18-431f-34c7-08d7d62c8bd6
x-ms-traffictypediagnostic: DB7PR07MB4919:
x-microsoft-antispam-prvs: <DB7PR07MB4919E4477CBD711F03937910A0C90@DB7PR07MB4919.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 03607C04F0
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR07MB5657.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(136003)(366004)(376002)(39860400002)(346002)(396003)(91956017)(478600001)(86362001)(110136005)(8936002)(316002)(2906002)(81166006)(54906003)(81156014)(33656002)(55016002)(71200400001)(8676002)(52536014)(26005)(64756008)(66476007)(66556008)(66446008)(76116006)(5660300002)(66946007)(7696005)(186003)(6506007)(4326008)(9686003)(53546011); DIR:OUT; SFP:1102;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: KOqpF3IGAi/hKtS+qIWPMP+8Z5TujY1BfS6Jk2UGpThwHKkQGIFJWOlLv2xZ8sKSSJoJkoNLbI8bECsZiY1HVQq7yBREq5/Fqmp+Gry796Xfe88MGKAcO9FFm+lGBRkyNdI+jVUwWxNbIx53gaHJdso0Aekg5MI4cXyYKt2eks6OIH06Jb86RcwngD0DUwvdr3NpMDo2mjatIhZ/1ZS8VZUgdTQ6ZhDzYn7jlXPWlYkj7AUuvo+UUY0jyLECmLTtQYddVvO6YgNFjkjRW3io9ILwxbL5YTcUmpw28zZbrDEWbKLJKkr34/lEhMerwD6YTePT2MtKxg3Fs0GDTLGPaMRZ6oA27aHfbIg4bP92LTfbaMCZ021Tv0SPbH4V9ppsCZl3EC777WD5FOCTL2zLL4hMt12u9Zo7KjBN+5by8WRn1AXQ/TVH9Lyqx6PTItOD
x-ms-exchange-antispam-messagedata: 7ABEhT1sH3qxIZxP57UClq0aJSqU3O6tRcrDyOuplabil6UdJl9dF9BXhHeXK+J1scYe+xeyFPub5SXthtwFJWZ6goZvS7DShzcd1guZMk91oDpWEVJTCGp+vzTNgU5mP2TCxRC8ZSQwZ3TtYOl2lw==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 38323504-ad18-431f-34c7-08d7d62c8bd6
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2020 11:05:10.7601 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: r2tI4zR+QLqBMrVJfOidLCAzSHSiZIdNNUn7ea0pCGh2ER9yb9fAIA6V7uOdeALwePtOY0cG2u+Ic6MkvAqllg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4919
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/HoH92aBw4am-7hZO6qQDEdYjPoA>
Subject: Re: [netmod] All IETF YANG modules MUST include revision-label statements
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Apr 2020 11:05:16 -0000

From: netmod <netmod-bounces@ietf.org> on behalf of Andy Bierman <andy@yumaworks.com>
Sent: 31 March 2020 17:19

<tp>
Agreeing with Andy that BC/NBC is a bad idea but from a different standpoint.  In general the concept sounds great but turning it into an unambiguous, usable by engineers test is mostly impossible as a number of discussions have shown.  Does it mean I can write a client that copes with old and new  server? or write a server that copes with old and new client? That has been discussed with no resolution.
What if the intended meaning of the WG was clear but someone later finds a loophole and interprets it differently and the module is revised to be unambiguous?  BC for most but NBC for those who found a different meaning.
Much depends on the original specification.  It may say, in a routing protocol,
Unrecognised TLV must be discarded
Unrecognised TLV must be treated as a fatal error
Unrecognised TLV must be forwarded unaltered
but many specifications are not that forward looking.  It is rare for a YANG module to capture that forward thinking.  
I think that BC is a very seductive concept that leads onto the rocks.

Tom Petch

On Tue, Mar 31, 2020 at 8:37 AM Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>> wrote:
[replying to Reshad as well]

Hi Rob,

My impression is that Semver 2.0.0 works fine if you can always force clients to move to the latest version of the API whenever any bugfixes are made to the API (whether they are BC or NBC).  This is a natural fit for open source projects, but not so great for long life paid support contracts.

Agreed.


The goal of YANG semver is not to facilitate release branching.  It is to allow vendors to fix YANG modules without forcing clients to update to the latest version of that YANG module (which may contain other unrelated NBC changes and have lots of dependencies on other modules).

This is what Reshad was pointing to as well.  I’m very familiar with the issue, from my Juniper days, where there were all sorts of patch and (gasp) customer special releases, either of which could introduce any number of NBCs.

The background, of course, is that [very important] customers have working/validated infrastructure running a specific release and simply cannot tolerate any change beyond the very specific one they need *NOW*

I get it, truly,  but I feel that the ‘m’ / ‘M’ suffixes are both inconsistent with general understanding and insufficiently to express what is needed.



+1

I also find the granularity of NBC info to be mostly worthless at the module level.
There is no difference between a 1 leaf bugfix and a complete rewrite of the module.
Let's say 1 leaf "type string" needs to be changed to add "length 1..max".
This reduces the value set for 1 leaf by 1 value.

This flags the entire module as NBC and you would bump the major revision number.
The entire premise that one can decide if it is safe to upgrade based on the version string is flawed.


A possible fix might be to allow for <major>.<minor>.<patch>[-<anystring>], thereby enabling vendors to encode any format off a base release…and rely on inspection of the “revision” history indicate if/when NBC changes occurred.

But then I question (again) the need for the simplified format at all, as opposed to just using revision dates.  For instance, if <anysting> represents a long history of NBCs, that they were based on some source M.m.p starts to lose relevance.

Is the expectation that the vendor's module versions will use <major>.<minor>.<patch> values mimicking their release numbers?  For instance, would FooBar OS version 20.1.2 implement YANG module "foobar@20.1.2”?    I can see product mangers pushing for this, but then are companies (like Juniper) that use alternate release name-formatting strategies disadvantaged?  How is that fair?   To thwart this, would the WG be willing to assert that the history MUST start at 0.0.0 and MUST only monotonically increment values?


Note that OpenConfig also hit this problem, but they proposed a different solution.  I..e. ship the base module with another module that contains deviations to fix any bugs in the base module.  Alas this completely decouples the real module history from any revision-date/version number contained in the module, since to really understand the version of the module you also need to know the set of associated patch modules containing any deviations to the base module.

I’d need to see an illustration of this to be sure I understand, but my first impression is that it is yet another attempt to fit a square into a circle.



I don't have a solution proposal, but it would be great if a vendor could issue a patch
to a standard module which says "this is the standard module plus these known Errata ".
OK if this is in the form of deviations

In the end, I see no substitute to relying on “revision” history which 1) perfectly tracks branching history and can flag if/when NBC changes occurred.


Agreed


Kent // contributor




Andy