Re: [netmod] Instance-data-format - shall we define etag and last-modified annotation ?

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 23 July 2019 14:11 UTC

Return-Path: <balazs.lengyel@ericsson.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 5816E120345 for <netmod@ietfa.amsl.com>; Tue, 23 Jul 2019 07:11:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 rRo3GIJBUmzZ for <netmod@ietfa.amsl.com>; Tue, 23 Jul 2019 07:11:39 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20087.outbound.protection.outlook.com [40.107.2.87]) (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 505591202FB for <netmod@ietf.org>; Tue, 23 Jul 2019 07:11:26 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EoefRRiKNrccXVkvNmyFBF6Pgi+SgBw+GrbZp6cUNyW/j0pB0NENk0CA76AyykSF/dtYMIs5il9wRm0VKc80KdL+MkGAEYoW3oXGZJmhlzjIbkZpKeLRCuwCPf2bkHSRpsHEcndKrgBZPbE7P2L4LvXl4o5JTls6xfY359+Y082v7StfasNJrkeqjczmvofy0uf4ySlxSTccYc+xKfDdSbSCdfRGQw3uLZ3LbLJ+Hr78i5M4goHDrCbO47hve+e/MOfMr04ovP/rN4wjRwFMGla2R1UMIt0dIx9pYLlWOw0loQAKlM9dQR7vYw1sES06oGfA11WYZFiYYcoK8MvUdQ==
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-SenderADCheck; bh=Ms+68L7XG/3z8Eqet8EF5MIVkMNP9JtIW9oIzdOQ10k=; b=RZe/zvfR8jB8vcyDbafdUwCnSwhFUqI+EvLGs6Xs7if2Hwx7T/hMKt7u74DPuFI3QK34ZB+WFOoNIyMEinXKTsnNGp3v3tVmbH91EDxHbb5XPlkVsTKrhbW4f0t7CW0YSSxAUFIWz8sZqsaC5YB5MNkeNyU2Rq/vZzPBAEtp264l12zxygYeyLmKsKm9omSeLpiEEkUsEOv40MzB7o21jWxhfZWmwR/MIZN6P/5392bGk/NLY84GLw4EnNGM8Q4CzEZzbEXV0ol+18xFzszjeBocXFGymZ4AgOSUmoO1pkSENvgrOSL8dSMaRfUNMSv1tRjcvTiDOFNdcFXQQj0NkQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=ericsson.com;dmarc=pass action=none header.from=ericsson.com;dkim=pass header.d=ericsson.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ms+68L7XG/3z8Eqet8EF5MIVkMNP9JtIW9oIzdOQ10k=; b=q43w5MrcKqJilVxxyAW9UjLsBsYebLUyEas8aHbwlJV1TBSchKLnRIAq3OOxS9V4vLNkD/IjY+SnZkSTTbvwa/aw+OlG6Z6fMHlAXnwuxbQxNqlo1qD1acPAgtLntkBQANH5gu7GXcy0ACIY4WjmWT4l2UnrIPXmaV6eUbVEQpA=
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com (10.169.137.153) by VI1PR0701MB3021.eurprd07.prod.outlook.com (10.173.75.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Tue, 23 Jul 2019 14:11:23 +0000
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a]) by VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a%11]) with mapi id 15.20.2115.005; Tue, 23 Jul 2019 14:11:23 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Instance-data-format - shall we define etag and last-modified annotation ?
Thread-Index: AdVAwv3YCGqZ1KMoT7S8jMt8r0MeZgAByuUAACWODXA=
Date: Tue, 23 Jul 2019 14:11:23 +0000
Message-ID: <VI1PR0701MB2286001A8E05E099C066BF61F0C70@VI1PR0701MB2286.eurprd07.prod.outlook.com>
References: <VI1PR0701MB2286D806027F541651B0BCE6F0C40@VI1PR0701MB2286.eurprd07.prod.outlook.com> <20190722201510.mom7xg2mdi2ulbby@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190722201510.mom7xg2mdi2ulbby@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [2001:67c:1232:144:71b0:6ac0:4967:8ca5]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: bc657812-f4ba-4429-aebd-08d70f77a4d4
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(49563074)(7193020); SRVR:VI1PR0701MB3021;
x-ms-traffictypediagnostic: VI1PR0701MB3021:
x-microsoft-antispam-prvs: <VI1PR0701MB302152B9FE856C1DD53BB9E0F0C70@VI1PR0701MB3021.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0107098B6C
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(136003)(376002)(366004)(396003)(13464003)(199004)(189003)(52536014)(4326008)(33656002)(446003)(11346002)(229853002)(476003)(6916009)(14444005)(186003)(478600001)(71200400001)(71190400001)(256004)(7696005)(305945005)(7736002)(46003)(14454004)(6116002)(316002)(76176011)(6506007)(53546011)(102836004)(74316002)(76116006)(9686003)(66946007)(66574012)(486006)(6246003)(45776006)(6306002)(99936001)(55016002)(2906002)(68736007)(6436002)(81156014)(86362001)(25786009)(81166006)(66446008)(53936002)(99286004)(8936002)(66556008)(5660300002)(66616009)(8676002)(66476007)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0701MB3021; H:VI1PR0701MB2286.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: OtIgk8Px7PHI5xS32NWA85SBP2u4hwr1Bi4sQ6UP8nLzEPheSnyn8j6obk144tfgNKAhg7n6FOh/munrRVUSPDDW+g/uPEm6Tf5T4HkUV2Wix9h9mlBxWaHY9sDy1ghzZ9eUYLKOCOZdvUIIqc9BElTcUVST7/z+0WsUTmVyaJobw07onn57Skf3rMKM00TeiS9I1tboucoorbRJD9ThQsl4FozJuZbWSx8MgZWOFO71d4WliRbBWDOeRmt121DQEPh2qJiz68425v52mY0dFB6KYSGGu6R68rB6dvC6PXXp1fsIe+dpLOtBjFGs0Wm7iuURX5dXu3UB6dtBjufyburKUkGQoJFovtfd5MHwuKGALT7nD+WT/xamztshXRIGR5bKcoy/1kxPnzD6b/xyV7lqc5UPWY+Yj7BUkh7qDdI=
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_02B2_01D5413E.F9A14050"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: bc657812-f4ba-4429-aebd-08d70f77a4d4
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2019 14:11:23.3202 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: balazs.lengyel@ericsson.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB3021
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/jwC6Ig3tq5I39vMgmE4y8yN_7gE>
Subject: Re: [netmod] Instance-data-format - shall we define etag and last-modified annotation ?
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: Tue, 23 Jul 2019 14:11:49 -0000

Hello Jürgen,
Could the etag and last-modified annotations be moved to 6991bis?
Regards Balazs

-----Original Message-----
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> 
Sent: 2019. július 22., hétfő 16:15
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: netmod@ietf.org
Subject: Re: [netmod] Instance-data-format - shall we define etag and
last-modified annotation ?

On Mon, Jul 22, 2019 at 07:23:59PM +0000, Balázs Lengyel wrote:
> Hello,
> 
> Restconf (rfc8040) defined to useful bits of metadata about a YANG 
> defined
> datastore: entity-tag and the last-modified timestamp.
> 
> These can be very useful in instance data sets, however Restconf 
> defines an encoding for these (as part of the http headers) that can 
> not be used in instance-data-sets.

This may actually point out a flaw or omission of RFC 8527. RFC 8040 defines
an entity-tag for its "unified" datastore and it says "if the RESTCONF
server is co-located with a NETCONF server, then this entity-tag MUST be for
the "running" datastore". So it is a bit unclear what happens with other
NMDA datastores and I did not quickly find something in RFC 8527. (For
example, can have a distinct etag for <startup/>?
 
> draft-ietf-netmod-yang-instance-file-format-03#section-7.2
>
<https://tools.ietf.org/html/draft-ietf-netmod-yang-instance-file-format-03#
> section-7.2>     defines metadata annotations for these two, that can be
> used in instance data
> 
>   md:annotation entity-tag {
>       type string;
>       description "Used to encode the entity-tag .";
>     }
>     md:annotation last-modified {
>       type yang:date-and-time;
>       description "Contains the date and time when the annotated
>         instance was last modified (or created).";
>     }
> 
> In order to be able to include this data, the annotations need to be 
> defined in some YANG module.
> 
> The question has been raised whether
> 
> 1.	these annotations should be defined in the ietf-yang-instance-data
> module as it needs them, as that is open or
> 2.	the annotations should be defined in another draft in a separate
> YANG module as any other annotation
> 
> The first option is better because the instance-data needs these 
> annotations, and at this point we see no other user for the 
> annotation, and in this case the ongoing instance data draft will 
> define it
> 
> The second option is better because, if later there are other users 
> for these annotations, it might be strange to reference the 
> ietf-yang-instance-data module. Also why provide special treatment to 
> these
> 2 annotations?
> 
> The authors support option 1 and don't have the time to start a new 
> draft to define these annotations.
> 
> On IETF105 in the room there was more support for option 1. 
> 
> Please indicate if you have an opinion about the choice of 1 or 2

Version -03 only defines these annotations but does not do anything specific
with these definitions. So if the annotations are defined elsewhere, the ID
is as complete as before. If entity-tag and last-modified are actually seen
as datastore properties, it would be nice to have them defined in the NMDA
documents (and it seems we overlooked this when we did the NMDA work).

I think this needs a bit of discussion whether these are actually seen as
datastore properties. But in this case, I would lean towards option 2.

/js

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