Re: [core] comi and NMDA (configuration and operational state datastore)

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 21 July 2017 09:36 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 542B212ECB4 for <core@ietfa.amsl.com>; Fri, 21 Jul 2017 02:36:07 -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, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 5r2xrkZkrMfY for <core@ietfa.amsl.com>; Fri, 21 Jul 2017 02:36:05 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B1BDF127869 for <core@ietf.org>; Fri, 21 Jul 2017 02:36:02 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 8D08D8D; Fri, 21 Jul 2017 11:36:01 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id ilkXWTcNWoeS; Fri, 21 Jul 2017 11:35:56 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Fri, 21 Jul 2017 11:36:01 +0200 (CEST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 6C00A200AD; Fri, 21 Jul 2017 11:36:01 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id hADwZzjsM-D8; Fri, 21 Jul 2017 11:36:01 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id E663B200AA; Fri, 21 Jul 2017 11:36:00 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id D87E93FF872C; Fri, 21 Jul 2017 11:35:59 +0200 (CEST)
Date: Fri, 21 Jul 2017 11:35:59 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Andy Bierman <andy@yumaworks.com>
Cc: Core <core@ietf.org>
Message-ID: <20170721093559.GA22027@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Andy Bierman <andy@yumaworks.com>, Core <core@ietf.org>
References: <20170720083313.GA20950@elstar.local> <CABCOCHTPt0aozaWN9tw6iXkMdP3jBHGTeQjY3w2FZPD69ETNEw@mail.gmail.com> <20170720094718.GG20950@elstar.local> <CABCOCHSEWpKV-rR3sh6a_tA0zjK07rt_RB6y0+5mNAuwZoRHsA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CABCOCHSEWpKV-rR3sh6a_tA0zjK07rt_RB6y0+5mNAuwZoRHsA@mail.gmail.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/dxSSyvZn9JYNBZ8gFs2qgPGoE_Y>
Subject: Re: [core] comi and NMDA (configuration and operational state datastore)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Jul 2017 09:36:07 -0000

On Thu, Jul 20, 2017 at 06:57:32PM -0700, Andy Bierman wrote:
> On Thu, Jul 20, 2017 at 2:47 AM, Juergen Schoenwaelder <
> j.schoenwaelder@jacobs-university.de> wrote:
> 
> > Hi,
> >
> > well, I am trying to understand what the scope of CoMI is. If CoMI is
> > only for ~100k memory devices, you may be right.
> >
> 
> 
> IMO the NMDA stuff is only interesting if the device includes some sort of
> dynamic configuration datastores (extremely unlikely). But in case I am
> wrong,
> CoMI provides full access to operation resources, so NETCONF operations
> such as <edit-config> and <get-data> can be used if really needed.
> 
> A few obvious problems with using a multi-step editing process is that it
> is not REST-full at all, it requires locking, it requires lock recovery
> when the client goes away with outstanding locks, and it requires that
> the client support lots of different server transaction models (i.e.,
> just as heavyweight as NETCONF, but much harder without any session-based
> interaction model).
>
> We should be trying to make CoMI as simple as possible, not a binary
> NETCONF.
 
Exactly. You do not want to use NETCONF operations and hence be able
to expose multiple datastores as different resources, as proposed for
RESTCONF.

My point is that YANG data models move towards NMDA and hence having
<running> and <operational> exposed become an issue.  Well, if CoMI is
only for 100k devices, then probably not. The question for me really
is whether CoMI targets a very narrow target market (these ~100k
memory constrained devices) while embedded devices capable to run
embedded Unix flavours will simply do RESTCONF. (I personally believe
this is the most likely scenario; and I personally believe many of the
100k devices will likely do something like mud, i.e., pulling a config
from a server, and not expose a real management interface.)

If so, what is the market for CoMI? Perhaps CoMI has a market if
application data is communicated with it, i.e., a device pulls its
config etc from a server and afterwards ships application data that is
defined in YANG via CoMI (in which case CoMI is kind of a misnomer).

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>