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

"Jason Sterne (Nokia)" <jason.sterne@nokia.com> Mon, 06 November 2023 15:49 UTC

Return-Path: <jason.sterne@nokia.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 0AD3AC14F738 for <netmod@ietfa.amsl.com>; Mon, 6 Nov 2023 07:49:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nokia.com
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 3NE1Xyiq6in8 for <netmod@ietfa.amsl.com>; Mon, 6 Nov 2023 07:49:32 -0800 (PST)
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2102.outbound.protection.outlook.com [40.107.94.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 84C06C15109C for <netmod@ietf.org>; Mon, 6 Nov 2023 07:49:29 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YXoRbzFgBwqPNmR8yoxCDe3stCAVwYvJe1Obs5/NXAjszPMW5c/UIDCwKyMV6L33S95jtFLnWHiBtlQWvkvKUTHKK7VdOyRoL2avvxZZYPU4tX+Nmn1kxf9/JQwktCmvgmn/4MPvvMMpwcU5HzAzrkfmE8yVtnlxGcVcoJ/TQR3/4nkGYGFNsnnU8kuBIUUQEiTGNqbrmA4rErG54AEzP6xJyX2Ebr/yAdT/UVuCCTfSxvF5xksaMi6VfIMqQFAZVt47qOQbeuASGd/W3SQi0PX2TKAEl+MX3lZACdXRRDx5HEnQTYmoCPYgY0WWR8m1+iCNiYq9l3KIEim+lTufqA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ijqAbRDigcJpyyawzUaO8Joox3H8Ifxc7qdyojWiYYs=; b=eGKovOaL8K9t/L53Rdi8NrmZjXo66FZyaYhldT7VQT/A0HnHivPRRthYjn7zxFqyJXDdPeNOUcX/FlfwRaAbcc5yvX/LBugDON+w8gOZTVBVKH8EsngVlGBAqLAHtmcTqHWti8C9JGkoEHLkVuX/7vF7ZiY6QGrVbys3bNdOfu983WS+2bkhydBzJN2HSqqiuMaq8xA6pYAUD+ooVPVSPOpBX84R+mTSflJGjXoc5mj0Yfs5BAMha8b09AJU6hZaM6cXPAkNqfTGL0gZ5zQ6lr7RcZ3/geKSzfEsc0Rr4KdMEAo8AijV8uDJXH8gMEBMv4lRKiJhbr2QFEMy884JEg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ijqAbRDigcJpyyawzUaO8Joox3H8Ifxc7qdyojWiYYs=; b=gb0L+cb6SpGWqlst+AzZ1zDfyBQuJhAd1zY3j3RK9/31FAv1IwkGJDVq6JiJjv/g7yr/HGLsmpHFvKrBcwrSeHjBPioyE9Y3C8RXhDeD0vcvrxl0Z+wKYmBLAaWmRFBBQVeuvjrxYlsAvH1Vgt3IRC368YzMFFfx4ZYfQ1uwJtSqoWymgVyUwgK6Eyq8QNhXE4hP5CagVNOu4MnCtQiCfgNvV6cZmWCLu4sLhFDyEDSDykxiqmhnjse9UwnpQfDv2/0KhntmJsi8HVqA5t4MICapsTCsY4YFrHDV5lO13Wy2jFTMkId36WNyTvSxbZSgTzlZ+bP5FoZO8u+G2MjBuA==
Received: from DM6PR08MB5084.namprd08.prod.outlook.com (2603:10b6:5:41::29) by SJ0PR08MB8182.namprd08.prod.outlook.com (2603:10b6:a03:431::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.25; Mon, 6 Nov 2023 15:49:25 +0000
Received: from DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::a3ae:d9d9:d84d:1113]) by DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::a3ae:d9d9:d84d:1113%6]) with mapi id 15.20.6954.028; Mon, 6 Nov 2023 15:49:25 +0000
From: "Jason Sterne (Nokia)" <jason.sterne@nokia.com>
To: "Rob Wilton (rwilton)" <rwilton=40cisco.com@dmarc.ietf.org>, Jürgen Schönwälder <jschoenwaelder@constructor.university>, "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] draft-ietf-netmod-rfc8407bis: must + error-message for "config false"
Thread-Index: AdoL5aAz3xep1g+CS02uOYrPHK5DEwAsdEEAADVUtFAA1vWQoA==
Date: Mon, 06 Nov 2023 15:49:25 +0000
Message-ID: <DM6PR08MB5084EBAE193D62AF9FF922449BAAA@DM6PR08MB5084.namprd08.prod.outlook.com>
References: <DU2PR02MB101603161862E378A02A4BDD388A0A@DU2PR02MB10160.eurprd02.prod.outlook.com> <ZUICMr0AgbPip1qK@alice.eecs.jacobs-university.de> <BY5PR11MB4196CCB231A271136077F2FAB5A6A@BY5PR11MB4196.namprd11.prod.outlook.com>
In-Reply-To: <BY5PR11MB4196CCB231A271136077F2FAB5A6A@BY5PR11MB4196.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DM6PR08MB5084:EE_|SJ0PR08MB8182:EE_
x-ms-office365-filtering-correlation-id: 485992ee-bfe2-4752-be55-08dbdedff3b3
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YFnO/u4NhoKBgtI3wnrrcJHenqwX3h2FaKBJDJgflVAcdRBraY/Ml4ee66F0+XlaFMxa2/yPTkXq9t7Y2Jl0YI3oHwBa6kPM3bUvauQlfQiWMLiOlItNo3qgqouWMNqj8sBIILZataZl1YFs/tsZ7ma05czag8juQIhzn0N6o1n1LI+FtBY81q01f4YE6LMwg1bOpuPvSun1mtJWqrykKKDFXOwkKdKxi4OT/mHbTsC9G8iyXpqO5sPOontPbDUyOwx0i3FCcTIk8vMba/ldja4nvwsIQia0utDDe2TSjD/5mN0Ts5IQ4Pchg/1fYWBM+tloSUFl6aQrC//rY2x6yRTjPAyRqxVM5U+DwNpgKHHGEsqTXF0hGhBFzOx/H9yqI67gABhpQ7ek/+XsrdYovePu8q1AtHamwTOr3ZvZg4t7zaF9OWTSoWwEwFTTH8gth9D2vNfca++k+Qzld1hdCl4oGubehWlfYzG1Jp3RJvgb4X2a88+B1+PrXc9ekLuw1CiT93+HBAGiPjDL6qXroh2hqzSNTSIqzk1EuCa5PbDVH7zmyLq1U0dayd0mnEu2eNvEvIo0WI9bxdCoL7Z7hYM+msjKzudfQdiaHEuPEeMfZU978v1DZCbKmcBkkInFXDAY62TSbHNu3xslZv7BP/7z9t6ikM2sTL9zx+fDWc498DrGwkLKOTdo2TqsjRMjVJhNFmu7jCGpwBKDDtO0+yQjhAUJq4ggJyAdBYp6EAI=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR08MB5084.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(39860400002)(376002)(366004)(136003)(230473577357003)(230373577357003)(230173577357003)(230273577357003)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(122000001)(15650500001)(41300700001)(2906002)(9686003)(38100700002)(64756008)(66446008)(86362001)(66476007)(66946007)(66556008)(110136005)(76116006)(71200400001)(7696005)(6506007)(83380400001)(53546011)(966005)(26005)(66574015)(478600001)(5660300002)(52536014)(33656002)(4326008)(40140700001)(316002)(82960400001)(38070700009)(8676002)(8936002)(84970400001)(55016003)(66899024); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: F2sVSu073QKqWHiejIy18FRY4StrK03T+lXaZUZ/nSg0a02+dKF3RpiOOnU7kx7KduBMLekk4X3QGZiW6rGndKkF65UtwELql+Z4yS+MFJ00VtNaPQd3l94IMYDpSoqyA/yR6N3SDotN2NAu+Tp5FCOlslzJDWFdoC3QXkkEbOvCePODlB6ghWTF/BeWQ5cvHuZKcvwPpx3/UJgO/U9zkbFzncX8/S2nHlKx9XfyhATFB0QWErYjXCjYtsJ8h+purk7K+K4wfYzFSXZLb3zAo9YWdVuQV7KjmxI5txSozTp/G1UW59N9GIRN4zJ+ko+AEgn5mTQ1zbFp6DCoryKuR/Omz5a5fJOGb7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gpVB+DuLXLftPgpcFdvk6x6IQhEVT/hUUqG+jmjIffJSAcWYqCGgE+4G39JYbbebEqkdbh8KjbX5OFptiM+6cu3gjFpLcgtNTw0Qar+RItb2a+z0j+WMMk2/5xhDXpVbKbHdko/0WVEUS05lf594/QikNe9stA+7
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR08MB5084.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 485992ee-bfe2-4752-be55-08dbdedff3b3
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2023 15:49:25.0371 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: FlrNetTwDTyMfexDu4I7/Xj+9pAKg2yNFdWeeLFs3iHFxtwODwrgi9A0/Wl04CpeN1geQ/ZZfeARD7fBimePKQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR08MB8182
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/6mQsQtsMp6pQsXEWR8s38zvQs0s>
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: Mon, 06 Nov 2023 15:49:37 -0000

+1 on what Jurgen and Rob are pointing out here.

I'm not sure it makes a ton of sense to actually have a lot of "must" statements in state models. We could consider discouraging them?  (but we need to continue *allowing* them).

Jason

> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Rob Wilton
> (rwilton)
> Sent: Thursday, November 2, 2023 5:17 AM
> To: Jürgen Schönwälder <jschoenwaelder@constructor.university>;
> mohamed.boucadair@orange.com
> Cc: netmod@ietf.org
> Subject: Re: [netmod] draft-ietf-netmod-rfc8407bis: must + error-message
> for "config false"
> 
> 
> CAUTION: This is an external email. Please be very careful when clicking
> links or opening attachments. See the URL nok.it/ext for additional
> information.
> 
> 
> 
> Specifically regarding MUST statements on state date, RFC 8342 section 5.3,
> also has this statement (which effectively aligns to Jürgen's last paragraph):
> 
>    <operational> SHOULD conform to any constraints specified in the data
>    model, but given the principal aim of returning "in use" values, it
>    is possible that constraints MAY be violated under some circumstances
>    (e.g., an abnormal value is "in use", the structure of a list is
>    being modified, or remnant configuration (see Section 5.3.1) still
>    exists).  Note that deviations SHOULD be used when it is known in
>    advance that a device does not fully conform to the <operational>
>    schema.
> 
>    Only semantic constraints MAY be violated.  These are the YANG
>    "when", "must", "mandatory", "unique", "min-elements", and
>    "max-elements" statements; and the uniqueness of key values.
> 
>    Syntactic constraints MUST NOT be violated, including hierarchical
>    organization, identifiers, and type-based constraints.  If a node in
>    <operational> does not meet the syntactic constraints, then it
>    MUST NOT be returned, and some other mechanism should be used to
> flag
>    the error.
> 
> Regards,
> Rob
> 
> 
> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Jürgen
> Schönwälder
> Sent: Wednesday, November 1, 2023 7:46 AM
> To: mohamed.boucadair@orange.com
> Cc: netmod@ietf.org
> Subject: Re: [netmod] draft-ietf-netmod-rfc8407bis: must + error-message
> for "config false"
> 
> 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/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod