Re: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Mon, 06 June 2022 22:56 UTC

Return-Path: <jason.sterne@nokia.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 087ABC159497; Mon, 6 Jun 2022 15:56:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.552
X-Spam-Level:
X-Spam-Status: No, score=-2.552 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.745, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RbjCgX-uF8vp; Mon, 6 Jun 2022 15:55:59 -0700 (PDT)
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20721.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::721]) (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 79C45C14F734; Mon, 6 Jun 2022 15:55:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3RbwuFoFdMisjnmjIpkI3fPDu3lNVsW9JVc9A08kfTtGuUVVVU1t58JvOG4fRmv0Inh3q1MGkXufMiFVTboaWOfoddfhlZjZyh7FP9JSBduAOSAVDr/IOCzq0NthdC8ZAuxrLd68D86/AlvDn4G8Ss3ExuAkud640MxOkINuQ1qn3vVcCU9F5KQusfg+CK1bGo9ZiISWGqe9KhSwyXFcfe0869MdujH0cil3zGXSj63qbxa8JDnDCnGgb4cnzOa75tYDw1FPWhEoMUH+UuCT0/wHo8zwv86lCGn+Mx4uXbtpQsMf+c+5d5MZcjhyZ+Z+3BlR73Jb/34C7i7Qh8ZvQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lY/18rlDct1z8cImgIwv6cw2Vu+h8jt6Hm5WEWGGH8Y=; b=D2I8ROMw0y3YbqAY9jpXFuFf7t7lDDrx1F6o0Tr0TfrDiPyEnkW+HszWvrmar6vonJHz7rJ6Yj0l4lA7VGWUzWXy1n+MZ+V0UMvzPz6YJYMNOyhViWeXvCT8UYejAOtKoRUWXDEFFVXrGH3CNybllf15xv3oo3oAMEdyEU6kVZilFdbVdOwfSN26+tuD0S3+uFzJkhkwGSfq6AxXS8Al5ZmQL2LMiOhL253OBIWEq93drpXAeOPQ3ExfrKs0HBnm6hAr9F1bdrBTfQAgar6R903Peq2Cv+IJfmgfABM9vJ3XqFp2Ha42r6RrnpttzmGihfaQZnAokIy9Y+pztMlfJg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
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=lY/18rlDct1z8cImgIwv6cw2Vu+h8jt6Hm5WEWGGH8Y=; b=nPV6Ll1RKBGcWn+94rEzKyy5rl/5PJaoF1YqC14e9xDRQpsLi9zSVO41UMY8sa4/hFuBi7TotMheoinDj1WafgkUr3pdU5f3+K3DbK7zG/Dzw5i9jaFxeJSpW6UcIcrHcyTBuJqHkTdORqlA/cYahp9Pu2AxqDqDyXKfzZ7N6s4=
Received: from DM6PR08MB5084.namprd08.prod.outlook.com (2603:10b6:5:41::29) by BL0PR08MB5347.namprd08.prod.outlook.com (2603:10b6:208:59::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.19; Mon, 6 Jun 2022 22:55:50 +0000
Received: from DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::89e1:adc4:423b:3cac]) by DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::89e1:adc4:423b:3cac%7]) with mapi id 15.20.5314.018; Mon, 6 Jun 2022 22:55:50 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Scott Mansfield <scott.mansfield@ericsson.com>, "italo.busi" <italo.busi@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
CC: "'ccamp@ietf.org'" <ccamp@ietf.org>
Thread-Topic: Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05
Thread-Index: Adh2AX6nfZwD+XITTPiHGgPWsoHa5gAwYxVgAC3h+6AAndqS0A==
Date: Mon, 06 Jun 2022 22:55:50 +0000
Message-ID: <DM6PR08MB5084AE53569E84CD9387D60F9BA29@DM6PR08MB5084.namprd08.prod.outlook.com>
References: <49dffd7325274aa4a6327bdbb4798a71@huawei.com> <BN7PR08MB5073F864D99D58F9236EB88E9BDE9@BN7PR08MB5073.namprd08.prod.outlook.com> <BL0PR1501MB413004920467C521C461817B8BA19@BL0PR1501MB4130.namprd15.prod.outlook.com>
In-Reply-To: <BL0PR1501MB413004920467C521C461817B8BA19@BL0PR1501MB4130.namprd15.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 97df1a85-8c90-4fa2-62a1-08da480fb3ea
x-ms-traffictypediagnostic: BL0PR08MB5347:EE_
x-ld-processed: 5d471751-9675-428d-917b-70f44f9630b0,ExtAddr
x-microsoft-antispam-prvs: <BL0PR08MB534733F6EEFEA9BCA69A64869BA29@BL0PR08MB5347.namprd08.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YQpgQYmz5EC/7y+aNTn+135owOwq5OPIm1QJYlRsNcdDChJeM08UBV8jeRwDIiY3tGuuxVexEJkyc0xkjGAf4mNbRLDzg3B/90Jty5Hu3g+WMWgd0xqEcCopo3osNkRw/7MSdJdGDBuM7Fm1A5lcUBL3V1J8iAZsMx25Z9k/MMc9H5ogiUARY7mYvAov2+wHLmjg4Z0D0SWRVb0Y9j7ebMVYyfODP6cysfPruQ/Jcj4BkgCNnb3UjjJok9BiBhDBXoY09KqYKUD0i8/Cm9wbJHfkZejaNF54RIEVlwnjUW3ibBnUPubEamf4W55pFWBvMBx0j7Atuf+oZK5PASz8KOQ6v1RbMU1EK9bInTqSRjO0+2MQv9LjlZSbDHNaisZU5vBbF/svDLIlI7D++Sz7BOog3qh14L7Db8FaGigRjp5ooctyQm1QlxzjmFO17OxchPeHfzk1vOIXX2RjlBLHu25IxnNJ75FqFlscI6Yech3S4MqkaQIxHIwDOxtvINULDX4yys8o9WyilTetWODkE9J1xEKgR74FVvxEg6QMQJDIYrwemXGX3JTGP7BDph6Nsj65LFUVqHbpJk1yUIoUDrl3vzpO90B2l9sWYEG4Ho4EXftl8WFIoadrKGes2Vt9u0g/qB2eMjokMzMEeRwK3CHPPo7lZ9R15CdNoerIhjAcosQDxclmyVnqAftsi1TJ4QALJDLsXniBVw2EZPqUoHbwzlNkSCBsC0L9TtjOD6hrWRkDMb0yPg9kVJQs5OAHzWYDUYhaWmOzYexdH3gZ1zHGpdaABvtSW0Rx8og7K8s=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR08MB5084.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(186003)(55016003)(33656002)(38100700002)(71200400001)(9686003)(2906002)(7696005)(6506007)(82960400001)(86362001)(122000001)(26005)(53546011)(316002)(966005)(38070700005)(166002)(19627405001)(5660300002)(8936002)(83380400001)(76116006)(8676002)(64756008)(66556008)(66446008)(66476007)(4326008)(508600001)(66946007)(52536014)(110136005); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: IPCS5D7cS4ph1sa8dj88uYWpFN5sCaLopVFksMaK9HcA4p+nDTmCaKUYs5A06ff4JiOmhmVHxAcOed7nAPeYXmyAN6KUYNTa7P1+xc82bFavBzbN8eFWcorbRylqJ6IE7WQ3Q94iWTOnfojreQewBJWRVjEebaMTmdafliJM/GLzf5JTOfICDqkkrAQc0ZXCY3tCpPwR7lC4XheLMIdfGMnpuBFyEX2cy8g2e93Ps1GqWMlu99J8Aa2htEFDNoLhglb+UDLhPFHDbVvSR3x9r+LPZ6pX4MeAiHag9uLzJQz1I8n5FyBN4IqHpwkgBpAUYG6MU3H2tGALfXiZtIzQ52/GDs6+lLBEe2X7jRZTe2raNTr5p78cPlUUf570G+fh0NyqhzsY0y9/eIjsB7Kv5bkchoUsePliBVqSSSESTNvFl9qXQWQ3uAwTkO7DreKPHihI0AQFAI8M60pU3ZhWMHN8I4+Gow9yDGoq/AexomWCptR4vzOc/sRqjBXDFYOzfJU/+XmJjjJ5yQ+9r5I5JUkhctfV2GfWd3+T0GgwqacICsDTy4zuRuC2UH8J2Bk25hjJNu+1FwhqeR8dXu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SWMyzKGm4PTbeFH6utTT+4WpTDe4EBBiT+zXD5MqkeP22i59Epk4LsBe/ykBcM6mCmJMYK+OFZrrgfopVsCMkOR0Fjg==
Content-Type: multipart/alternative; boundary="_000_DM6PR08MB5084AE53569E84CD9387D60F9BA29DM6PR08MB5084namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR08MB5084.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 97df1a85-8c90-4fa2-62a1-08da480fb3ea
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2022 22:55:50.5913 (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: yR6fwL7CubAmEsX/b6RkkKnpJnzm7fsIVlBYQ1kDPbUq11EHvOY4TrGAcKKnN0tA9W8jLjcQKLF0w0KFtKMAcg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR08MB5347
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MFmRguTn8nsLB5lH_gbTpFjOxaQ>
Subject: Re: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Mon, 06 Jun 2022 22:56:03 -0000

Another reason just occurred to me why moving the old leaf inside a "choice" is NBC: it may not affect the data tree path to that element of instance data, but it does affect the schema path to that element.

So if it was a container, for example, and some other module was augmenting that container, the augmentation path would be broken if it was moved inside a choice.  I'm not certain that maintaining compatibility with an augmenting module is a fundamental criteria but it certain is an impact to an ecosystem of modules.

Of course all the above is for a fairly "strict" manner of defining backwards compatibility. The actual impacts to a client of moving an old leaf into a new "choice" (where other cases of the choice contain purely new elements that didn't exist before) are often going to be minor to nothing. But the users of the module would need to take a look at it.

This discussion is also making me realize that our text in B.2.3.1 may have a mistake. An author can't stick the old leaf into a "choice" and be 100% BC so we should probably remove that option.

Jason

From: Scott Mansfield <scott.mansfield@ericsson.com>
Sent: Friday, June 3, 2022 3:06 PM
To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>; italo.busi <italo.busi@huawei.com>; netmod@ietf.org
Cc: 'ccamp@ietf.org' <ccamp@ietf.org>
Subject: RE: Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05


So basically, deprecating a leaf and adding a new leaf/container that replaces the deprecated leaf will always be NBC.

Still the guidance in B.2 has the least impact and is easy to explain, and has the added benefit that the tree doesn't change and existing (old schema) instance data will work with the new schema.

-scott.

From: CCAMP <ccamp-bounces@ietf.org<mailto:ccamp-bounces@ietf.org>> On Behalf Of Sterne, Jason (Nokia - CA/Ottawa)
Sent: Thursday, June 2, 2022 5:03 PM
To: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org<mailto:Italo.Busi=40huawei.com@dmarc.ietf.org>>; netmod@ietf.org<mailto:netmod@ietf.org>
Cc: 'ccamp@ietf.org' <ccamp@ietf.org<mailto:ccamp@ietf.org>>
Subject: Re: [CCAMP] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

Hi Italo,

One problem I see with this change is that in the old data model, the leaf "mode" had to exist in the instance data. But with the new model, it is valid to have instance data with no "mode" leaf at all. That instance data would not validate against the old YANG model.

I do see your point that any valid data that could be generated using the old model is still accepted in the new model. But for the YANG versioning work we've been pretty hesitant to diverge far from RFC 7950 for the list of what is NBC vs BC (mainly just cleanup of the status deprecated & obsolete), and clarifying

There are other possible cases that might meet a definition of "any old config would be accepted by the new model" but we still don't label them as BC in our YANG versioning work, e.g.:
- moving a pre-existing leaf into a new choice along with new elements in other cases (like yours below but without any additional complications of "mandatory" statements)
- changing the type of a uint8 to a union of uint8 and other types

Jason

From: netmod <netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org>> On Behalf Of Italo Busi
Sent: Wednesday, June 1, 2022 6:07 PM
To: netmod@ietf.org<mailto:netmod@ietf.org>
Cc: 'ccamp@ietf.org' <ccamp@ietf.org<mailto:ccamp@ietf.org>>
Subject: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

The example (in particular in point 3.1), assumes that it is possible to put the old deprecated leaf and the new leaf within a choice to ensure that the new node is not used when the old node is used

In the context of an update to RFC8561 (-00 I-D still under preparation) we have found a similar care where the choice could also be beneficial to express the requirement that the new node is mandatory when the old node is not used (in other words either the old node or the new node MUST be configured)

You can find a simplified example of the change we were considering here:

https://github.com/samans/testing-yang/tree/main/mw-option<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-dc62b26de858ae3b&q=1&e=885085f0-90e5-462d-827c-73bc1e45f9fc&u=https%3A%2F%2Fgithub.com%2Fsamans%2Ftesting-yang%2Ftree%2Fmain%2Fmw-option>

The original (using the old style mode) is in mw-option@2022-04-01.yang<mailto:mw-option@2022-04-01.yang>. the new version of mode (rlt-mode) is in mw-option@2022-05-26.yang<mailto:mw-option@2022-05-26.yang>

However, when we use pyang to check backward compatibility we get an error message (see the nbc.out file in github):


mw-option@2022-05-26.yang:47<mailto:mw-option@2022-05-26.yang:47>: error: the leaf 'mode', defined at mw-option@2022-04-01.yang:40<mailto:mw-option@2022-04-01.yang:40> is illegally removed
mw-option@2022-05-26.yang:50<mailto:mw-option@2022-05-26.yang:50>: error: the mandatory node mode-option is illegally added

However, we have checked that the xml file mw-option.xml, which uses the deprecated style of mode, works fine also with the new mw-option@2022-05-26.yang<mailto:mw-option@2022-05-26.yang>. We therefore think this type of change can be considered backward compatible since an old client would not break when trying to configure a new server which implements the deprecated node

We are therefore not sure whether this is a tooling issue or a specification issue

Reviewing clause 11 of RFC7950 and draft-ietf-netmod-yang-module-versioning-05, it seems that moving an existing leaf under a choice is not listed as a backward compatible change

We are wondering whether draft-ietf-netmod-yang-module-versioning-05 could clarify that this type of change can be considered backward compatible

We would appreciated any clarification by Netmod WG expert about whether this change can be considered backward compatible or not

Thanks, Italo (on behalf of co-authors working on a new I-D for updating RFC8561)