Re: [netmod] draft-ietf-netmod-rfc8407bis: must + error-message for "config false"

Jürgen Schönwälder <jschoenwaelder@constructor.university> Wed, 01 November 2023 07:46 UTC

Return-Path: <jschoenwaelder@constructor.university>
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 5F447C14CF1C for <netmod@ietfa.amsl.com>; Wed, 1 Nov 2023 00:46:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.607
X-Spam-Level:
X-Spam-Status: No, score=-2.607 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n5oYNSopqQJK for <netmod@ietfa.amsl.com>; Wed, 1 Nov 2023 00:46:00 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 80EE5C14F747 for <netmod@ietf.org>; Wed, 1 Nov 2023 00:45:58 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 37231439F; Wed, 1 Nov 2023 08:45:55 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id Sku-5XnDywh1; Wed, 1 Nov 2023 08:45:54 +0100 (CET)
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 "DFN-Verein Global Issuing CA" (not verified)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Wed, 1 Nov 2023 08:45:54 +0100 (CET)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by hermes.jacobs-university.de (Postfix) with ESMTP id AD08220150; Wed, 1 Nov 2023 08:45:54 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10028) with ESMTP id wWq7gka7q_kY; Wed, 1 Nov 2023 08:45:54 +0100 (CET)
Received: from localhost (alice.jacobs.jacobs-university.de [10.50.244.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by hermes.jacobs-university.de (Postfix) with ESMTPS id 3D42220095; Wed, 1 Nov 2023 08:45:54 +0100 (CET)
Date: Wed, 01 Nov 2023 08:45:54 +0100
From: Jürgen Schönwälder <jschoenwaelder@constructor.university>
To: mohamed.boucadair@orange.com
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <ZUICMr0AgbPip1qK@alice.eecs.jacobs-university.de>
Reply-To: Jürgen Schönwälder <jschoenwaelder@constructor.university>
Mail-Followup-To: mohamed.boucadair@orange.com, "netmod@ietf.org" <netmod@ietf.org>
References: <DU2PR02MB101603161862E378A02A4BDD388A0A@DU2PR02MB10160.eurprd02.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <DU2PR02MB101603161862E378A02A4BDD388A0A@DU2PR02MB10160.eurprd02.prod.outlook.com>
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/lEmmAdtvu4o5r35_hVSynj4CKpg>
Subject: Re: [netmod] draft-ietf-netmod-rfc8407bis: must + error-message for "config false"
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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, 01 Nov 2023 07:46:05 -0000

Here is what RFC 7950 says:

  7.5.4.1.  The "error-message" Statement

     The "error-message" statement, which is optional, takes a string as
     an argument.  If the constraint evaluates to "false", the string is
     passed as <error-message> in the <rpc-error> in NETCONF.

Since state data is not (directly) modified by processing RPCs, which
<rpc-error> would carry the <error-message>? If the answer is 'none',
then why define an <error-message> for state data?

My take has always been that operational state data should report as
much as possible the true state of the device - even if the current
state violates certain constraints. The entity to check constraints
would be a managing system, not the managed system. That said, the
wording in section 7.5.4.1 indicates that the designers had servers
processing RPCs in mind.

/js

On Tue, Oct 31, 2023 at 10:40:15AM +0000, mohamed.boucadair@orange.com wrote:
> Hi all,
> 
> In the context of https://datatracker.ietf.org/doc/draft-ietf-pce-pcep-yang/, Dhruv has received in the past a comment about the use of "must + error-message" for "config false" data nodes. He reported that comment at https://mailarchive.ietf.org/arch/msg/yang-doctors/gWnXnyNHPVv_nZB1PQjThAwP1JY/, but without any follow-up.
> 
> rfc7950#section-8.1 includes a provision for the use of "must" for state data, but silent about the use of error-message. Some guidance for authors may be useful here.
> 
> The following options are being considered:
> 
> (1) Remove both must and error-message for config false data nodes
> (2) Remove error-message but keep the must
> (3) keep both
> 
> I think that (3) is OK as this is a formal way to detect anomalies in state data, but I'm open to hear what the WG thinks.
> 
> Opinions whether we need to include a mention about this in draft-ietf-netmod-rfc8407bis are welcome.
> 
> Thank you.
> 
> Cheers,
> Med
> 
> ____________________________________________________________________________________________________________
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
> 
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.

> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


-- 
Jürgen Schönwälder              Constructor University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://constructor.university/>