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

Ivaylo Petrov <ivaylo@ackl.io> Fri, 10 January 2020 15:37 UTC

Return-Path: <ivaylo@ackl.io>
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 C7E25120026 for <core@ietfa.amsl.com>; Fri, 10 Jan 2020 07:37:40 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ackl-io.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 fvcnq3XxX14i for <core@ietfa.amsl.com>; Fri, 10 Jan 2020 07:37:38 -0800 (PST)
Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 D099812006B for <core@ietf.org>; Fri, 10 Jan 2020 07:37:37 -0800 (PST)
Received: by mail-wm1-x329.google.com with SMTP id 20so2433437wmj.4 for <core@ietf.org>; Fri, 10 Jan 2020 07:37:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ackl-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ch+kYvgEEHclu+uJUDHA/eBabNViuFqc71qEg5IW8GQ=; b=nNp1Brt9iTVm+5zzqhoCkD9Ek9RlmNHQLSpSfoCrmhA13Vsrkem+H4aAxC717IEh8m omS5wpd9KC3BGdaXdrOFVzdONVvCKcRF1ai6DkJpSL1XplooxJ3g82Bf9pj9ti+RKVCD 8ap1HQWgVegkAbOSiFpt2SYa7vF9b4ANYhcjgHN9MO/bwBrUuxFwga/PWStbfBXIRem8 Pz/fy5WpMNV+M8PwyJ+6GU7SklstSsYKh5tuI8N1/cPQ5j6gAy5e5YSBlh4GD+4gMOKN xVrzEIB55QVkjwGi43//C00MaErb1tvUU11CtMGBMk4EQDTWjkZCz2+DnNRoad3qjIBg h8nw==
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=Ch+kYvgEEHclu+uJUDHA/eBabNViuFqc71qEg5IW8GQ=; b=dU1HhjpCKAykLCYJd1OZ0BruOAh9t9Bg0itIhX8gYZAdCRIuCP5yjwftuP+ygqO9/B lj8E64+nLT+eZFiKUfEbBkw6BUaPP5ln8wJGgWUs795tiaeZNSGiarfu8o3pcDMpUNCW 24I8j9dPm1garV4VvtjcrHTuVEuObm8GN8eo2A1tD/IhMf6rZtPKYl5tUQPM2K+JlP2z McNTo8EB7r92QSAEANQI1iGac3WiuUEpcmwzMCxeTXAW0/WFI0f/shUkTfDHDWTK/aqw o42WVtFXbhbWgHEHdD7jJAv/TOrF5mcl3Jj4HYMYODbanvK5084Rs2Grq9NGOW3U6VsO yLfA==
X-Gm-Message-State: APjAAAVWSNSmiYdfa0VbZx/rqCGWz51PyoVvwCkmm4bjf4FF2enC79Ux i9lgGAATVoJqn6F+idMrRymwLLuuyEtsOfSbY2CRsQ==
X-Google-Smtp-Source: APXvYqx6HW3uTrxpqE/Hsmk3vuG4uL95XhO3t1nQvTs4kfUCt8QJCQWIg1zr6ILsvyrXcoAwCIPoIMwvuHJRdy51ebM=
X-Received: by 2002:a1c:3c8b:: with SMTP id j133mr5126730wma.66.1578670655988; Fri, 10 Jan 2020 07:37:35 -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>
In-Reply-To: <22612.1578626081@localhost>
From: Ivaylo Petrov <ivaylo@ackl.io>
Date: Fri, 10 Jan 2020 16:37:09 +0100
Message-ID: <CAJFkdRztFUxdGcdvtTgB=9c-e_BwDAgLTmVPJ+OB8-dgs1sGog@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: core <core@ietf.org>, Michel Veillette <Michel.Veillette@trilliant.com>, Alexey Melnikov <alexey.melnikov@isode.com>, "a@ackl.io" <a@ackl.io>, consultancy <consultancy@vanderstok.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ptEWtgCNiyl_x8ejBgqzDAF4caU>
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: Fri, 10 Jan 2020 15:37:41 -0000

Hi Michael,

Thank you for the detailed explanation! I understand your concerns
now. Please find my comments below.

On Fri, Jan 10, 2020 at 4:14 AM Michael Richardson
<mcr+ietf@sandelman.ca> wrote:
>
>
> {AD+Chair action requested below}
>
> Ivaylo Petrov <ivaylo@ackl.io> wrote:
>     >> This example raises an interesting point. "ietf-voucher" have been
>     >> defined without considering a possible constrained implementation and
>     >> have no SID list or .sid file included in RFC 8366. SIDs has been
>     >> assigned after the fact, as allowed by
>     >> https://tools.ietf.org/html/draft-ietf-core-sid-07#section-3. If we
>     >> include a SID list or .sid file for
>     >> "ietf-constrained-voucher@2019-08-01.yang", part of the SIDs  will be in
>     >> a RFC, the rest won't. To avoid such situation, we should rely entirely
>     >> on an IANA registry for all .sid files defined by RFCs.
>
>     mcr> I am still uncertain how this is going to work.
>
> I think that the major issue is that I am still not convinced that IANA is
> prepared to operate pyang itself.  Conversations at IETF105 and IETF106 did
> not convince me that they (IANA) completely understood what they are being
> asked to do.
> For instance, I'm not convinced that there is a support process for IANA to
> get bugs fixed in the sid.py module.
>
> (I would be pleased to be convinced otherwise)

I remember that during the discussion with IANA we considered that
the authors and the expert will be responsible for the running of the
pyang tool and IANA will only take the .sid file and store it. The .sid
files will be provided to IANA when there is a request to register the
.sid file - however that is done. Do you see an error in our reasoning
other that the fact that we might be burdening the authors too much?
Does this seem acceptable to you?

>
>     ivaylo> IP: Let me try to summarize how the sid range obtaining and
>     ivaylo> allowaction process is currently defined and please let me know
>     ivaylo> if it is still not clear enough or if you have any
>     ivaylo> concerns. After that I share some thoughts for module updates.
>
> Yes, I understand the early allocation process.
>
>     ivaylo> - the RFC is already published - then as it is specified in sec 6.3.2 ,
>     ivaylo> the experts will check that there is an RFC and the registration will
>     ivaylo> be done upon request.
>
> Early Allocations are done for a limited period of time, IANA is allowed to
> reclaim the space if the document does not proceed.
>
> If when an author asks for early allocation for a YANG module that references
> other modules which are already published, then there are multiple things that could
> happen:
>
> 1) IANA could do a permanent allocation for the referenced modules, entering
>    the sid file in as well.
>    {this may cause a recursion quite deep initially}
>
> 2) IANA could do an early allocation for the referenced modules, marking them
>    as such, and potentially reclaiming.
>
> (1) has the problem that it may cause a bunch of pollution.
> (2) has the problem that the referenced allocation will need to be reference
>     counted for all/any documents that reference it.
>
> I suspect that the problem will be short-lived pain, and that doing (1) is
> the right thing, and that we might want to take the hit in WG and Expert
> Review in a proactive manner.  (I am happy to help here)
>
> But, there is also:
>
> (3) a document could ask for an early SID allocation, referencing a YANG
>     module which is in another WG, or worse, not yet adopted, and therefore
>     not subject to Early Adoption rules!
>     This may be a problem we do not to fix (Just get the document adopted),
>     but I think that we should be clear about this.
>
>
> My recommendation is that all YANG modules, upon being *ADOPTED* by a WG,
> have a SID allocation done.  Yes, the document will get revised, but the
> SID system is designed to deal with this.

Yes, that issue does not seem obvious. Currently I don't see a
blocking issue with allocating SIDs for all YANG modules once
a draft is adopted,  so maybe this is truly our best way to avoid
problems.

>
> I think that doing this requires an IESG and IANA decision.
> I think that getting through this before March is important.
>
> The CORE WG has had a series of virtual interims (I see none scheduled, I
> assume that is an oversight), and maybe we could invite IANA and a couple of
> IESG ADs to confer and get clarity here.
>
>     > If this is done, the situation where a module M1 is updated and it is
>     > used by another module M2 would not cause issues as it is should match
>     > the case where the SIDs are generated for the first time. On the other
>     > hand, if someone else generates a .sid file that includes the extra
>     > values that come from the new version of module M1, this is not going
>     > to cause real issues as there could be two SID values that represent
>     > the same YANG item, which means that the .sid file for M1 can still be
>     > updated.
>
> Agreed!
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>
>
>

--
Best regards,
Ivaylo