Re: [netmod] WG Last Call: draft-ietf-netmod-schema-mount-07

Robert Wilton <rwilton@cisco.com> Fri, 10 November 2017 09:39 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 7A5DE12EC09 for <netmod@ietfa.amsl.com>; Fri, 10 Nov 2017 01:39:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, 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 Fk_qQZ3Y1l9I for <netmod@ietfa.amsl.com>; Fri, 10 Nov 2017 01:39:15 -0800 (PST)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C28C129432 for <netmod@ietf.org>; Fri, 10 Nov 2017 01:39:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=10445; q=dns/txt; s=iport; t=1510306755; x=1511516355; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to; bh=ePEbd9E38ysTRso6u46cCRn6dBcGKSMnwVosluhUOVU=; b=L/yJS6VVgJgbjtToMLRDdbVlGuyc7sQ1MmNKboePTBjnDbZenYjT91oJ ZumYU9MNhMr0jDR0IxK3BkHMnvaBb75AFWwZBIA1HgOqS0sUewIBUtqo3 bj2kFM5HIP+ETJ84CICdLSEAqjN4we6koFUrgzpK/b4Cw3qrVivT9RYNX M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CfAADDcgVa/xbLJq1cGQEBAQEBAQEBAQEBAQcBAQEBAYUHJ4N+ih90kDORCIVIghEKggGDOgKEehgBAQEBAQEBAQFrKIUfAQUjVhAJAhgnAwICRhEGAQwGAgEBih6LYp1ogicmimsBAQEBAQEBAQEBAQEBAQEBAQEBAQEdgzCDW4ISgwGFAQmDIoJjBaIglQCLfIdCjjKHcIE5HziBcjQhCB0Vgy2EX0E2iWOCQgEBAQ
X-IronPort-AV: E=Sophos;i="5.44,373,1505779200"; d="scan'208,217";a="132589"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Nov 2017 09:39:12 +0000
Received: from [10.63.23.76] (dhcp-ensft1-uk-vla370-10-63-23-76.cisco.com [10.63.23.76]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id vAA9dCh7013688; Fri, 10 Nov 2017 09:39:12 GMT
To: Andy Bierman <andy@yumaworks.com>, Ladislav Lhotka <lhotka@nic.cz>
Cc: "netmod@ietf.org" <netmod@ietf.org>, Martin Bjorklund <mbj@tail-f.com>, Kent Watsen <kwatsen@juniper.net>
References: <47B1141C-8979-4910-B7CA-2114B9C0D352@juniper.net> <68c6a4d5-fd3e-efdb-9c34-f69f241d6a31@cisco.com> <874lq4oq94.fsf@nic.cz> <7d8a8b01-6d3b-ac29-dd58-f2771ecdad56@cisco.com> <87d14rjwdq.fsf@nic.cz> <CABCOCHTy2MLagXikkwwaOXM+b4-=Ho54wjZEsYsO7yHbxEdTfQ@mail.gmail.com> <1510247543.4067.4.camel@nic.cz> <CABCOCHQ6+_r8mVVkQEbBUj2WqervdHXfF2UjLD0Tm6Sa0DFxCQ@mail.gmail.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <3b497bdc-dbf6-c3ce-1b1f-2460f55fbb43@cisco.com>
Date: Fri, 10 Nov 2017 09:39:12 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <CABCOCHQ6+_r8mVVkQEbBUj2WqervdHXfF2UjLD0Tm6Sa0DFxCQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------A83B94EE9C154811D4AB21C6"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_67wyrNNQ5N7X2XgHtGha2CiXxA>
Subject: Re: [netmod] WG Last Call: draft-ietf-netmod-schema-mount-07
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 10 Nov 2017 09:39:18 -0000


On 09/11/2017 17:44, Andy Bierman wrote:
>
>
> On Thu, Nov 9, 2017 at 9:12 AM, Ladislav Lhotka <lhotka@nic.cz 
> <mailto:lhotka@nic.cz>> wrote:
>
>     On Thu, 2017-11-09 at 08:34 -0800, Andy Bierman wrote:
>     >
>     >
>     > On Thu, Nov 9, 2017 at 7:37 AM, Ladislav Lhotka <lhotka@nic.cz
>     <mailto:lhotka@nic.cz>> wrote:
>     > > Robert Wilton <rwilton@cisco.com <mailto:rwilton@cisco.com>>
>     writes:
>     > >
>     > > >>
>     > > >>> 2. Sec 1. Introduction, page 4, paragraph starting "2.
>     > > >>> Implementation-time ...".  This section states that it is
>     a stable as
>     > > >>> YANG library, and hence cannot change due to a server
>     reboot. However,
>     > > >>> YANG library doesn't appear to have that restriction, and
>     hence this
>     > > >>> doesn't seem to align with RFC 7895, introduction paragraph 2.
>     > > >> I don't know exactly under what circumstances YANG library
>     can change
>     > > >> after a reboot, but in such a case schema-mounts data might
>     be subject
>     > > >> to a change as well. I definitely think that the "run-time"
>     case is
>     > > >> something else.
>     > > > A software upgrade could quite reasonably change YANG
>     library without a
>     > > > device reboot.  Perhaps saying less is more precise:
>     > > >
>     > > > E.g.
>     > > >
>     > > >     2.  Implementation-time: the mounted schema is defined
>     by a server
>     > > >         implementor and is as stable as YANG library
>     information. Also,
>     > > >         a client can learn the entire schema together with
>     YANG library data.
>     > > >
>     > >
>     > > It seems that neither 7950 nor 7895 defines how stable YANG
>     library data
>     > > is. The conclusion might be that it can change any time, which
>     is IMO
>     > > hardly acceptable.
>     >
>     >
>     > Actually, the YANG library is allowed to change at any time.
>     > Clients use the module-set-id and the yang-library-change
>     notification
>     > to keep their cached copy of the server's library up to date.
>
>     Notifications are optional, so basically the client needs to check
>     module-set-id
>     before every operation, and even this may not be sufficient for
>     avoiding errors.
>
>     The YANG data model was touted as a contract between the server
>     and client - and
>      it is a strange contract if the server can change it arbitrarily.
>
>
>
> The server can change the library according to the contract.
> It updates the module-set-id.
>
> In reality, there are no routers that change the module set at run-time.
> They are all mostly-monolithic firmware that need to reboot to change 
> the YANG modules.
> Modular software is more complex to test, so it is not as common in 
> embedded systems.
I think that it is becoming a lot more common.

Various network OSes allow fixes to be installed on the fly (which could 
include fixes or additions to the manageability interfaces), or the 
software to be upgraded without a formal reboot of the system.  Normally 
this would be achieved via some controlled failover of the route 
processor node to a hot standby route processor.

Linux allows packages to be installed on the fly.   This could include 
new protocols and services with associated YANG modules.  In fact, there 
are even variants of Linux that allow the running kernel to be hot 
patched without a reboot!

If a "hot" upgrade was being controlled by YANG then ideally you don't 
want to even break the management protocol session if possible.

Certainly, I would think that you need to allow LNE's to be 
provisioned/unprovisioned without restarting anything.

Thanks,
Rob