[netmod] Yang model for setting system startup information for software upgrade

Shiva Kumar Pathori <pathori@gmail.com> Fri, 22 February 2019 15:26 UTC

Return-Path: <pathori@gmail.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 D71C612D7F8 for <netmod@ietfa.amsl.com>; Fri, 22 Feb 2019 07:26:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ISzWCITFWcXC for <netmod@ietfa.amsl.com>; Fri, 22 Feb 2019 07:26:30 -0800 (PST)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A65461276D0 for <netmod@ietf.org>; Fri, 22 Feb 2019 07:26:29 -0800 (PST)
Received: by mail-wm1-x336.google.com with SMTP id z84so2326567wmg.4 for <netmod@ietf.org>; Fri, 22 Feb 2019 07:26:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5xEv3ivEKQw9LToadteKu7nb0t1vQb6JlxxxNn1U+Lc=; b=aU8vFNaLv7MqsA4Uj3R2wXcdIUyabeO7OZa0apnN0K3GTb77iXiGxSIOjMcJ309WVO e1ZUWxsfW+BPuV4d/c+PgsStc1AsIQtvU5HRnoWjJ4RI9vlRCD4xTUWcx3jf9IopGs/d jAyM7Ssa8TsJtqtvs/TSkxf5BPuFPgtlXCzpV35ihpsChpM/TujtvbydmowkDi0EP9Wh yT5iEz6qbmIBK/o7uiCabcQtE3xeD8wFdNWE3DJSm8DiMMDLD3+04wX8WcYyfL8br4u5 QP5HLZGwxGZ+1oylT5IxY0zfGoIG3GBX+HztpH+Opq9YYCp+4SfOyAApOS1ZE2Y4IG4u keBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=5xEv3ivEKQw9LToadteKu7nb0t1vQb6JlxxxNn1U+Lc=; b=e8nqrirhGrQmk74e89VHW6DZkSw6ftXJ1HpHhBUTRzDfNerW0ZfGlAZhGQEO0DHxax 5jY9fWnTfKGbDaMxCFgHX3NoJV7RwDKVp8hP/P3lYAeFWakwHdSgizM+KLEL9biywaxv Al9ajiL0CG32kCQIfTe9MZKd+sEHwZP69A0cyo2wGmSai2Z8ORyz4rpP/vDgUoHfLh45 LkVJW2gNKV48o2nH6P5KWLjp0I+mm58efH4eUVN/pSXwFAqnwd+e/RD6jC22NTxC8WpC 1B8gZU9qwd50XF9Fy8+xH2xKct9BjLHkCmPsJV84p0IW3v9AtOPpQIfbe/7uyG+xEp/B FJtA==
X-Gm-Message-State: AHQUAubmeUpGyCezZ/z7LlHoZMI/SX+ceq7/qFRvsKqgurU1XkC7lCfK /1v+/qIyBIeppOLh90Rr6RGlpxAnPyKbcx60i5g=
X-Google-Smtp-Source: AHgI3IbDct8/KDu2Am3FhnGGkFN/+xGHZkCmSe/9m042qOJX/qUx0tQRdeCbAUPLBsBPERE/kmKA3vHfzZgj0jcY4Z8=
X-Received: by 2002:a1c:9692:: with SMTP id y140mr2959109wmd.67.1550849187847; Fri, 22 Feb 2019 07:26:27 -0800 (PST)
MIME-Version: 1.0
References: <CAJtYN8LpfjcgRnGpMxLwi75iKRCSw8BUaajQk9=q8BUDXt2t6Q@mail.gmail.com> <019501d4c906$e6fcc920$4001a8c0@gateway.2wire.net>
In-Reply-To: <019501d4c906$e6fcc920$4001a8c0@gateway.2wire.net>
From: Shiva Kumar Pathori <pathori@gmail.com>
Date: Fri, 22 Feb 2019 20:54:32 +0530
Message-ID: <CAJtYN8L_d0u=QNTiciH7jq-bBDn7+DPwo8ybbTuizVK6b=JOSA@mail.gmail.com>
To: tom petch <ietfc@btconnect.com>, netmod@ietf.org
Content-Type: multipart/alternative; boundary="000000000000f1236905827d36a1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/NkjUiwiIa-KCs1LQeCLIyIapmkc>
Subject: [netmod] Yang model for setting system startup information for software upgrade
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: Fri, 22 Feb 2019 15:26:33 -0000

Hi Tom,



Thanks a lot for providing your opinion.

Actually this new YANG model is similar to the one defined in rfc7317(
ietf-system@2014-08-06.yang) and mainly will be used for Network node
management.

This will help the administrator for network automation using the YANG
model as current method of upgrade may be through CLI.



We have below container in this YANG model that give the information about
the current system state



>     /*
>      * Operational state data nodes
>      */
>
>     container system-state {
>       config false;
>       description
>         "System group operational state.";
>
>       container platform {
>         description
>           "Contains vendor-specific information for
>            identifying the system platform and operating system.";
>         reference
>           "IEEE Std 1003.1-2008 - sys/utsname.h";
>         leaf os-name {
>           type string;
>           description
>             "The name of the operating system in use -
>              for example, 'Linux'.";
>           reference
>             "IEEE Std 1003.1-2008 - utsname.sysname";
>         }
>         leaf os-release {
>           type string;
>           description
>             "The current release level of the operating
>              system in use.  This string MAY indicate
>              the OS source code revision.";
>           reference
>             "IEEE Std 1003.1-2008 - utsname.release";
>         }
>         leaf os-version {
>           type string;
>           description
>             "The current version level of the operating
>              system in use.  This string MAY indicate
>              the specific OS build date and target variant
>              information.";
>           reference
>             "IEEE Std 1003.1-2008 - utsname.version";
>         }
>         leaf machine {
>           type string;
>           description
>             "A vendor-specific identifier string representing
>              the hardware in use.";
>           reference
>             "IEEE Std 1003.1-2008 - utsname.machine";
>         }
>       }



For example the leaf os-release  current value is 2.0(returned by the
device through NETCONF <get> operation) and now the system administrator
would like to upgrade to a new value 2.4.

So I feel the ietf-system@2014-08-06.yang does not provide an option to
change to different version.  I just thought that the new YANG model can
bridge this gap.

Also most of the devices will have the same set of information(new image,
config file, paf file and patch) as per my knowledge.



Regards,

Shiva





On Wed, 20 Feb 2019 at 15:59, tom petch <ietfc@btconnect.com> wrote:

>
> ----- Original Message -----
> From: "Shiva Kumar Pathori" <pathori@gmail.com>
> To: <netmod@ietf.org>
> Sent: Tuesday, February 19, 2019 1:40 PM
>
> > I think there is a need to extend the ietf-system.yang or have new
> model to
> > get the current system startup information(like current system
> software
> > name, configuration file name, paf file name and patch file name
> etc..)
> > from the device and also set the next startup information for upgrade.
> This
> > can help the device administrator during system upgrade scenario to
> operate
> > with the YANG model. So first step will be copying these files(image,
> > config file, paf file and patch file) to the device and then set the
> next
> > startup information. After this  YANG RPC
> "/ietf-system/system-restart"
> > can be used to reboot the system to upgrade to the new version.
> >
> > I request the WG to provide the opinion on this.
>
> Shiva
>
> The IETF is good at protocols, what must go on between boxes of
> different origins else they do not work.  The internals of those boxes
> have no such need to be standardised and while the IETF does delve into
> those areas, e.g. Host MIB module or, arguably, much of the routing YANG
> module, it is less successful because, well, there is no need for them
> to be standardised for the Internet to work.
>
> So, a YANG module for startup information would need find common ground
> between, say, iPhone, Juniper router, Windows 10, Linux distro and so on
> when those products work quite happily with radically different views of
> what is needed.  I recall one discussion which failed to get agreement
> on what the order of precedence of the fields version, release, level;
> different manufacturers have different interpretations thereof while any
> one manufacturer will likely be consistent in their usage across a wide
> range of hardware and software products.
>
> Thus it seems more likely an area for proprietary extensions than for
> the IETF.
>
> Tom Petch
>
> > Regards,
> > Shiva
> >
>
>
> ------------------------------------------------------------------------
> --------
>
>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> >
>
>