Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid

Andy Bierman <andy@yumaworks.com> Wed, 15 January 2020 23:14 UTC

Return-Path: <andy@yumaworks.com>
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 BDADD120044 for <core@ietfa.amsl.com>; Wed, 15 Jan 2020 15:14:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 URfm0Tvi89Fx for <core@ietfa.amsl.com>; Wed, 15 Jan 2020 15:14:25 -0800 (PST)
Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 5B15D120113 for <core@ietf.org>; Wed, 15 Jan 2020 15:14:25 -0800 (PST)
Received: by mail-lf1-x131.google.com with SMTP id b15so14058557lfc.4 for <core@ietf.org>; Wed, 15 Jan 2020 15:14:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DR1G/81JUbVKMoAgaDW66NRWwjjZNFm9xg5bjqMzRq4=; b=TFiAahoySf7JfNMB3sKyq36f6oXXOM0comQlO4e0lf8wi6aqnq9Y3JJYBL+/KtM0TO RRR+YFsu2oz9pbufBFq/gjLaXci/XCdxxItzP2uSbMsSxl10Mj3MvMU369fHp/+w92d1 n8ZGENInjnCk6/0nUmCTuGzjdd1NlWTybdnfcnMAQ09Wq68493B697g8iM3AGSj4j9uq 3Y1pCdwFNTn0Uhkh42FTkADf1UpWW7dZGTRRRpgQYsS0E43bdxwVTMC64VqfPQntqpxp dMfGT2OLblMbNtJgLDWIaJ2fvuPuxRteB105FldjUKt7nN32A9hTCL8/DK+LUw2Ot1ob 72sA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DR1G/81JUbVKMoAgaDW66NRWwjjZNFm9xg5bjqMzRq4=; b=jLl2NygCkI3R5psaetcm+3glrsbPcPQrH1UBpVM5CQB4/MBDOUWnZpBgXFWdOEzTMA A1/agQyNuURSBNENFCJ/82O5I36GJhV4UIYgsuBEPp32tJSAtWbrTtBBq7ou6Y9s6Z6i nUlx1b0e4SrDyePo5U7+bwCIHksbYmiKcvgahSLXLwkgGjw+RZLynZM6sHeIfyTNIM+U WZTKtWIaWLfU9v/oKE7R/iivYRDDxDT9i4FWZMT134m5CluURusV9stpxpVX0NzDuwMu KJYpREyZmCqr6SFrBXQYfOPv6QPzOCRUxPzCS5AapKlCmXcoYespw34oPHXvajaROkO8 EhZQ==
X-Gm-Message-State: APjAAAXSSeK9vIB4JsFm7JZwdm/jbGOcDK90Awf01hM8p2c4X525YYMz rZhMsCdM+CajVK10x+EtsDoKpKWnhaQYl0iTvjEBqQF0
X-Google-Smtp-Source: APXvYqx5h20j3X55SEgP4w/zLP+VULB905Fb++b0nxDdTS0OIToksH1PiLh37g3M1+JZltvm0gixpdUYwTX3maeCv58=
X-Received: by 2002:a19:2389:: with SMTP id j131mr647428lfj.86.1579130063384; Wed, 15 Jan 2020 15:14:23 -0800 (PST)
MIME-Version: 1.0
References: <29380.1565102380@localhost> <BL0PR06MB50428065032ECC2AB3345F619AD70@BL0PR06MB5042.namprd06.prod.outlook.com> <7505.1565633977@localhost> <BL0PR06MB50424C618A704460E4A8F8D99AA90@BL0PR06MB5042.namprd06.prod.outlook.com> <18990.1577231446@localhost> <CAJFkdRyWOfCb4U09rEJ-ZMR3GUuk-rmQ+f3Fs164Mxs8qkeVuw@mail.gmail.com> <22612.1578626081@localhost> <CAJFkdRztFUxdGcdvtTgB=9c-e_BwDAgLTmVPJ+OB8-dgs1sGog@mail.gmail.com> <15754.1578789013@localhost> <CAJFkdRy_3pC37ZxzhTmzqRgWjwDvEFTuhu5Z8+_ktaJgoeOGfg@mail.gmail.com> <6025.1578939111@localhost> <F67A7C80-0955-4836-9B84-66CB52AB6FD9@tzi.org> <26398.1579112884@localhost> <0805B57C-3DCB-4601-976C-2D51CE812312@tzi.org>
In-Reply-To: <0805B57C-3DCB-4601-976C-2D51CE812312@tzi.org>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 15 Jan 2020 15:14:12 -0800
Message-ID: <CABCOCHRj-9OP_6E_pudSvKNPqTL9Kw8w-CftcoLkdxpzn2Tx1g@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, Core <core@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007b8e10059c35de3a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/MNMd2OWprt_tli71SZDHUihIWoQ>
Subject: Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 15 Jan 2020 23:14:28 -0000

On Wed, Jan 15, 2020 at 1:32 PM Carsten Bormann <cabo@tzi.org> wrote:

> On 2020-01-15, at 19:28, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> >
> >
> > Carsten Bormann <cabo@tzi.org> wrote:
> >> On 2020-01-13, at 19:11, Michael Richardson <mcr+ietf@sandelman.ca>
> >> wrote:
> >>>
> >>> o SIDs never change.
> >
> >> That may require a little bit of expansion.  SIDs do change while I’m
> >> editing the document on my laptop and not telling anyone else what I’m
> >> doing.  But at some time, they freeze.
> >
> > Actually, if things go well on your laptop, they don't.
> > You might add/delete leafs and so you might roll through the SIDs
> quickly,
> > and then, because you haven't published anything, decided to reset, but
> > that's your business :-)
>
> Exactly.
>
> My question really was if we can state unambiguously when it stops being
> my business.
>
> >> What is the specific event that makes a SID allocation immutable, even
> >> if the underlying identifier goes away (and maybe comes back later)?
> >
> >> What is the way we keep this memory?
> >
> > There is the .sid file which records the allocations.
> > You use --generate-sid-file (giving your allocation) to initialize the
> > process, which creates a .sid file.  You do this only once.
> >
> > You use --update-sid-file normally to allocate SID values from a YANG
> file.
> > It keeps track not to re-use elements after the leaf is deleted, and
> makes
> > sure to re-use numbers when the leaf has not changed.  Deleting and then
> > adding a leaf with the *same name* should wind up with the SID being
> reused.
>
> So when the development of a standard is completed, we hand IANA a SID
> file with dead SIDs in it?  Or how do we maintain the memory of those dead
> SIDs?  Are there boundaries through which a SID file can go that does
> remove dead SIDs?
>
> > The SID file is some JSON.
> > Here is an example:
> >
> https://github.com/anima-wg/constrained-voucher/blob/master/ietf-constrained-voucher-request%402019-09-01.sid
>
> Yes.  The file format is fine, the question is whether we give enough
> guidance on how to handle the evolution of “the” SID file for a YANG module.
>
> I think Andy Bierman has reminded us often enough that this is hard to get
> right.
> Sorry for playing a bad copy of Andy today.
>
>
:-)

There are so many ways to mess up things with SIDs...
I hope the pyang regression tests for  SIDs are ready for the task.
There are multiple YANG lint programs and they don't all agree or get
everything right.
There are no such programs for SID (e.g. to verify everything that is
supposed to
have a SID assigned actually got an assignment).

As a hypothetical, let's assume there are undetected bugs in a SID file
or across the entire set of SID files. How do they get corrected?
The SID file itself contains no metadata indicating it is a corrected
revision of a previous SID file.

This has already proven to be a problem for YANG, and it has the
deviation-stmt
which can be used in some cases to correct broken YANG in another YANG file.

A SID file is just a JSON instance file.
There are no defined mechanisms to correct a SID file from IANA or anywhere
else.
Perhaps a "sid-file-revision" field in the SID file would help.


Grüße, Carsten
>
>
Andy


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