Re: [netmod] YANG versioning requirements

Robert Wilton <rwilton@cisco.com> Wed, 03 October 2018 14:48 UTC

Return-Path: <rwilton@cisco.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 875881312BE; Wed, 3 Oct 2018 07:48:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.957
X-Spam-Level:
X-Spam-Status: No, score=-14.957 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.456, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-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 Wiyt-H1dwhPl; Wed, 3 Oct 2018 07:48:09 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6ABD513118E; Wed, 3 Oct 2018 07:48:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2654; q=dns/txt; s=iport; t=1538578088; x=1539787688; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=vOmXemdUXTDEb84mMqJUG6xeWLfbI83i8295WuQrImc=; b=BzjP2HyxXukoXl7xHsEzkLP28H5FGSEFWri2ZN6YLe8rpupa6KTlCoLT pI3FZNlsrg7y7XBha0E9jnPfg96WVBppoH3JcQZ58B+LhN3eSmtjpcVPw qqJTVe4golRqYihOlMecBAddx7Zxmjg2GSgWYNzXitM/QMev7TRKMeApz Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AZAABI1rRb/xbLJq1cGQEBAQEBAQEBAQEBAQcBAQEBAQGBVINeEoQciHSNIS2YVguEbAKEQTcVAQMBAQIBAQJtKIU4AQEBAQIBIw8BBUEQCxgCAiYCAlcGAQwIAQEXgwaBegilPoEuhHeFGoELii2BQT+BEieCa4d/glcCnU0JkDgGF4kRhlGPLoYjgVgigVUzGggbFYMokFQ+jkUBAQ
X-IronPort-AV: E=Sophos;i="5.54,336,1534809600"; d="scan'208";a="6972261"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2018 14:47:57 +0000
Received: from [10.63.23.158] (dhcp-ensft1-uk-vla370-10-63-23-158.cisco.com [10.63.23.158]) by aer-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id w93EltS0027908; Wed, 3 Oct 2018 14:47:57 GMT
To: Vladimir Vassilev <vladimir@transpacket.com>, "netmod@ietf.org" <netmod@ietf.org>
Cc: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
References: <c28c40e0-1ee3-7bb1-4d59-5bee88ac21c3@cisco.com> <b34790c9-a53c-0db1-567b-0aa4dd4ce8d6@transpacket.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <f2ed6f8d-00cc-bc4e-882b-16d1be330165@cisco.com>
Date: Wed, 03 Oct 2018 15:47:55 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <b34790c9-a53c-0db1-567b-0aa4dd4ce8d6@transpacket.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Outbound-SMTP-Client: 10.63.23.158, dhcp-ensft1-uk-vla370-10-63-23-158.cisco.com
X-Outbound-Node: aer-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/tVLWhfvr7EtbM3j6QljrbfY5tnw>
Subject: Re: [netmod] YANG versioning requirements
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, 03 Oct 2018 14:48:11 -0000


On 03/10/2018 15:42, Vladimir Vassilev wrote:
> Hi Robert,
>
> On 10/3/18 11:44 AM, Robert Wilton wrote:
>>
>> Hi Vladimir,
>>
>> At IETF 102, when I was presenting on the YANG versioning 
>> requirements (draft-verdt-netmod-yang-versioning-reqs-00), I think 
>> you raised a concern about requirement 2.2:
>>
>> 2.2 A mechanism SHOULD be defined to determine whether data nodes 
>> between two arbitrary YANG module revisions have (i) not changed, 
>> (ii) changed in a backward compatible way, (iii) changed in a 
>> non-backward compatible way.
>>
>> IIRC, I think that your specific concern is that this leads to a 
>> complex solution, which I understand, but I still think that this 
>> requirement should remain for several reasons:
>>
>> (1) It is only marked as a SHOULD rather than a MUST. I.e. it is 
>> desirable that a solution is able to achieve this but is not strictly 
>> required.
>
> I agree with your point in (1). As long as 2.2 is optional there is no 
> problem.
>
>>
>>
>> (2) Some tooling for this already exists.  RFC 7950 section 11 
>> already defines what constitutes a backwards compatible change, and 
>> pyang is already capable of comparing two module revisions to 
>> partially determine what non backwards compatible changes exist 
>> between two module revisions
>>
>>
>> (3) Having considered all the various potential solutions to the 
>> versioning problem, my opinion is that there is only one solution 
>> that is generically capable of accurately telling a client of what 
>> the impact is when updating between two releases.  That solution is 
>> to compare the complete schema for both releases (considering module 
>> versions, deviations, and features), potentially filtering the 
>> comparison output by the subset of the schema actually used by the 
>> client.
>>
>> So, whilst I still think a simpler solution may be helpful to 
>> communicate what sort of changes are contained in a module, I still 
>> think that the full complex solution will eventually be required to 
>> truly solve this problem in a robust way.
>
> My point was that the need of complete schema comparison as described 
> in (3) is needed for 2.2 but not for 2.1 and thus it will probably 
> make sense to decouple the solutions. I am looking forward to see what 
> your solution ideas are.
>
>>
>>  Hence, are you OK with this requirement text remaining as is, or do 
>> you still want to see it changed?
> Yes I am OK with the text.
Thanks for confirming.

Rob

>
>
> Regards,
>
> Vladimir

>
>>
>>
>> Thanks,
>> Rob
>>
>>
>>
>>
>>
>>
> .
>