Re: [netmod] Adding system configuration to running [was: Re: Comments on NMDA-04]

Andy Bierman <andy@yumaworks.com> Thu, 14 September 2017 17:23 UTC

Return-Path: <andy@yumaworks.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 8D91B1321B6 for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 10:23:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 w8XnTFz_yKKB for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 10:23:01 -0700 (PDT)
Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com [IPv6:2a00:1450:4010:c07::22a]) (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 369C9126BF0 for <netmod@ietf.org>; Thu, 14 Sep 2017 10:23:01 -0700 (PDT)
Received: by mail-lf0-x22a.google.com with SMTP id r17so17896lff.6 for <netmod@ietf.org>; Thu, 14 Sep 2017 10:23:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Os14RY0bSzLrFAwh4aAa3jHVG1Y5wAUIbeeZUco0ovQ=; b=ECgxdWoiyZ5gy9QBURT512GAP2WzlnSZ/we8N6xL61bGbvGbhEfg1WmeZA6FeSXnLz fgWxew64xiunDjnYDS7E5EeFI5HwIBYW+8zLipsh4pMsJHngUYg0gbaScWKX/OsUxIU7 PT7UcraNnK2sxrRRTXswLQ6ey+ofxymjiM3Qo0c6d+Qu81NiRR0wdDsTp+whK3kDldWl X1aCnDzoyzLpQoAFYaMz4WLloosz+EZGh9JGv2F72XBjUPcBV0k+RCP5mQcnnqb2cx0h uxWk8ahBAV0XzUSt0AyQHbE0RU0mcnqZzA5fP4st3FI8YdvWxL7Jf/25f8PhsBUl+QqF rQMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Os14RY0bSzLrFAwh4aAa3jHVG1Y5wAUIbeeZUco0ovQ=; b=MQa0325CeEIw7+N19nLPNz7HZC3eTtZWphy17rT8faKHKU8Jj9z8wHqrBzDS2NNpPA CWaIH+lfce7gSJR8lB5hDViTy5IPzIbkQOOzhjGp/tPsLFTfx12t0MMw1QRtFnRF28yT Rja6PmCnLaUZaaeazRu34t4V4hRsB8pFptCpFZvRZz1zjgl05reHr94noiegVN972KEI NvNgsFCktGdRHXaBjKamf93kNi3R/vGR+oIWIc6eSFUR6PiFIlEkvVr5H988Kd/YACCJ kF1F7fSo+pTzlfpYvTFPkkGAsZIZA8FqSg07DS09n5Z+b4jgH7E7jQQX6+5XtbsS2EUf xh8A==
X-Gm-Message-State: AHPjjUg0rRnhT2nTl4NPFuVoIupYyrSqpJEwSpefNzF1BbqcMcckpCUN fzPVWL6lQJ41uZNQmoH8E+HWigBqh0NGA5OUWQ7VkQ==
X-Google-Smtp-Source: AOwi7QC30pn5ndlO8nylWVBB6Iufk+EsqWAiITgaW5//HTWy74wH8ErbcWQc1QiSR56EPHFTAIkDtRMG3llOfwN55jU=
X-Received: by 10.25.223.86 with SMTP id q22mr8543525lfj.45.1505409779503; Thu, 14 Sep 2017 10:22:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.18.41 with HTTP; Thu, 14 Sep 2017 10:22:58 -0700 (PDT)
In-Reply-To: <4dc2014b-0355-ac0b-f9a0-06a2d73033c4@cisco.com>
References: <9ec6b2e4-36a7-87e6-59fa-828855235835@ericsson.com> <20170914.163239.143365521945928900.mbj@tail-f.com> <4ce3efcd-6e88-9390-1241-21fb89985a9a@ericsson.com> <4dc2014b-0355-ac0b-f9a0-06a2d73033c4@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 14 Sep 2017 10:22:58 -0700
Message-ID: <CABCOCHQ64DUwH=4FHSDoxbSbugoo-OyrXDwq5_Evcrk+CjA43g@mail.gmail.com>
To: Robert Wilton <rwilton@cisco.com>
Cc: Balazs Lengyel <balazs.lengyel@ericsson.com>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="f403045e58a426364c05592987d7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/203CSHGCuu2obY9mXEcvtjE-eqw>
Subject: Re: [netmod] Adding system configuration to running [was: Re: Comments on NMDA-04]
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: Thu, 14 Sep 2017 17:23:04 -0000

On Thu, Sep 14, 2017 at 10:08 AM, Robert Wilton <rwilton@cisco.com> wrote:

>
>
> On 14/09/2017 16:35, Balazs Lengyel wrote:
>
> See below!
> On 2017-09-14 16:32, Martin Bjorklund wrote:
>
> Hi Balazs,
>
> Thanks for your review.  Comments inline.
>
> Balazs Lengyel <balazs.lengyel@ericsson.com> <balazs.lengyel@ericsson.com> wrote:
>
> Hello,
>
> Reading the draft-ietf-netmod-revised-datastores-04 some comments:
>
> General) The system often adds data to the <running> or <intended>
> datastore already not just to <operational>: e.g.
>
> UC1: I have a server configured in running. I need to bind it to an
> ip-address. The ip-address might be the local loopback address,
> however if that is only added to <operational>, validation will
> fail indicating that the server is bound to a non-existent
> address. How to handle this?
>
> UC2: I have a set of capabilities set by the system
> e.g. supported-reporting-intervals. I need to configure a job that
> MUST use one of these intervals. If the supported-reporting-intervals
> are only added to <operational> I can not validate the
> selected-interval in my configured job.
>
> My proposal is to allow the system to add data to running as
> well. Actually I think that is a more relevant case then adding
> configuration just to <operation>.
>
> I think the consensus is that in general it is a bad idea if servers
> (spontaneously) add data to <running>.  However, there is nothing in
> the new or old architectures that prohibits this.
>
> BALAZS: I strongly disagree.  I know others are also adding stuff to
> running as well.
> IMHO the above use cases are real and used and actually important for us.
> I would like to see them included in some way.
>
> I basically agree with Martin here.
>
> The architecture is cleaner if <running> is only written by the client.
> This avoid requiring clients tracking unexpected changes to running, and
> opens up the possibility of validating configuration off the box.  Ideally
> extra stuff should be added into <intended> and then become visible in
> <operational>.
>
> I understand that some systems add data to <running>, and this is fine.
> But I think that it is better for an architecture document to be silent on
> this point.
>
>
I agree with Balazs that system-created nodes in running are quite common
and
the vendors doing it have no intention of changing it.

If the added nodes need to be saved in non-volatile storage then then
definitely belong in <running>.

IMO the architecture is rather opaque wrt/ the interactions between
datastores,
especially the interactions between <running> and <intended>. Now it not
only
prunes inactive nodes, it adds system nodes?

Maybe it is too early for NMDA to be making lots of rules about how YANG
works
with new (and unimplemented) datastores.



Thanks,
> Rob
>
>
Andy


>
>
> regards Balazs
>
> --
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
>
>
>
> _______________________________________________
> netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>