Re: [Last-Call] [yang-doctors] Yangdoctors last call review of draft-ietf-dots-telemetry-14

Andy Bierman <andy@yumaworks.com> Sat, 28 November 2020 12:59 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: last-call@ietfa.amsl.com
Delivered-To: last-call@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 73D173A0D99 for <last-call@ietfa.amsl.com>; Sat, 28 Nov 2020 04:59:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=unavailable 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 TSdE84LHqXOY for <last-call@ietfa.amsl.com>; Sat, 28 Nov 2020 04:59:25 -0800 (PST)
Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 849D23A0D95 for <last-call@ietf.org>; Sat, 28 Nov 2020 04:59:24 -0800 (PST)
Received: by mail-lj1-x22f.google.com with SMTP id i17so9135762ljd.3 for <last-call@ietf.org>; Sat, 28 Nov 2020 04:59:24 -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=3d8NQyircm4GFOmXqDc1T3+dZy04tWTll/zl1fOFGb4=; b=TPIPNOzTAfEB2UMYsuwF9JQwuiVEK0J2c2CTgcSzsoX3/2SwYVsqWiRMrYNBx8+qzc CVH8t2lk6WX712dDrIvHumn+hcwjSrsaspEidwYXjPCKqEDf5oMP7LkvSlLVBjjn/DnE KOrAGwruJ2AVsvEeJM65V+6hHEFFbJMUarocZ6dwhu86CvG48IWctF9GjcBi38zRC4Vo 1xny2lzaCwA/BdonDqRyCctbkUxI4aUrBDy6J9JxUPcvwROsjER6Kiio2E/MqAuOq/PH /WAmKajXBDM93QoXrAZInNkVCcMhq4SGrNM4pS1QTwTKQVd2bnrVxWAk6z1qVnvUDvRg Ms+Q==
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=3d8NQyircm4GFOmXqDc1T3+dZy04tWTll/zl1fOFGb4=; b=bOepjwUu+zRnCIDpxfc+OcwP4KNBeFa2AEdhilO1tMJNyu9Ded7f/gleqbV2dUqqm4 KnQSxycVVNKO3zXgl2T7RT+uLjK9wuwShXGyxr9XauAaVHQN88HmUN6rmq2So5kFEdjc OlZMO4PFsnLp001ylR0z6rYIVMEnvJ6BQHQdvV92Fl88ITvCGr0VldmKqwimr13+cFgY ZuG8peZitxnvc4RW1JkK87sH0YIyEKvloigU5DOePisVlgCR1G2ZB/zdrmJbJL6AQ96m T6f5HZYmWuwjMKa5ZC/HtuF3RDKHyJX6MSSeoISrXWfJWpBZySaOWH7g91VSzfbA/q2S XVyQ==
X-Gm-Message-State: AOAM533tV55j66GSKMQEiC8drEUHRhrREULhZVUbTJ9mEKjnIHGLysTD cJAt8zDjcDDJWo+eV0Gon+5uKpJoswjc1z5zPJwfyQ==
X-Google-Smtp-Source: ABdhPJxU/mHKVd25G2PVkbezMwkV8JGnLXag4bX1kB1U78S0yA87Nf58yio8UCcI/a7XFxGBiVrQyk/RLDzigqLV034=
X-Received: by 2002:a2e:6f04:: with SMTP id k4mr5816093ljc.220.1606568362306; Sat, 28 Nov 2020 04:59:22 -0800 (PST)
MIME-Version: 1.0
References: <160639060194.12249.1456224995663816670@ietfa.amsl.com> <CABCOCHSUQaAWZy+kwcavv21oOvBdzYECV=BmG+3D3kR4xGp5zQ@mail.gmail.com> <32155_1606458134_5FC09B16_32155_403_1_787AE7BB302AE849A7480A190F8B9330315849E9@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
In-Reply-To: <32155_1606458134_5FC09B16_32155_403_1_787AE7BB302AE849A7480A190F8B9330315849E9@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 28 Nov 2020 04:59:11 -0800
Message-ID: <CABCOCHSv-SO5kp-CF-VY29D_T2Ee-AEa_+iJBrE3j+fQTsyspA@mail.gmail.com>
To: mohamed.boucadair@orange.com
Cc: Jan Lindblad <janl@tail-f.com>, YANG Doctors <yang-doctors@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "draft-ietf-dots-telemetry.all@ietf.org" <draft-ietf-dots-telemetry.all@ietf.org>, "dots@ietf.org" <dots@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008b007b05b52a5835"
Archived-At: <https://mailarchive.ietf.org/arch/msg/last-call/K81QPXQZrXBZn5QGDJF4Xy2crkI>
Subject: Re: [Last-Call] [yang-doctors] Yangdoctors last call review of draft-ietf-dots-telemetry-14
X-BeenThere: last-call@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Last Calls <last-call.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/last-call>, <mailto:last-call-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/last-call/>
List-Post: <mailto:last-call@ietf.org>
List-Help: <mailto:last-call-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/last-call>, <mailto:last-call-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 28 Nov 2020 12:59:29 -0000

On Thu, Nov 26, 2020 at 10:22 PM <mohamed.boucadair@orange.com> wrote:

> Hi Andy, all
>
>
>
> Thanks.
>
>
>
> One clarification in reference to this comment:
>
>
>
> « But you are raising an important point -- it is difficult to review
> groupings without any context.
>
> (Without any "uses"). »
>
>
>
> Please note that all defined groupings are used in this draft.
>
>
>

I meant "visible" uses-stmt.

   - The sx:structure statement is external to the YANG language. It is
   (literally) not part of YANG.
   - The mapping of YANG restrictions in the description-stmt for this
   structure is intentionally vague.
   - There is no mapping to NMDA or any concept of a datastore
   - There is no mapping to any YANG defined content for NETCONF or RESTCONF
   - There is no mapping to NACM or any concept of access control

Jan is assuming that this YANG module needs to be reviewed within the
context of specific
(standard) management protocols. I don't think YANG Doctors ever discussed
the guidelines
and review requirements for standard structures. IMO structure-only
documents are OK
and can be reviewed for YANG correctness, consistency, and maintainability.

I would expect any protocol that uses the structure extension to address
all the missing mappings
listed above.


Cheers,
>
> Med
>


Andy


>
>
> *De :* Andy Bierman [mailto:andy@yumaworks.com]
> *Envoyé :* jeudi 26 novembre 2020 18:46
> *À :* Jan Lindblad <janl@tail-f.com>
> *Cc :* YANG Doctors <yang-doctors@ietf.org>; last-call@ietf.org;
> draft-ietf-dots-telemetry.all@ietf.org; dots@ietf.org
> *Objet :* Re: [yang-doctors] Yangdoctors last call review of
> draft-ietf-dots-telemetry-14
>
>
>
>
>
>
>
> On Thu, Nov 26, 2020 at 3:36 AM Jan Lindblad via Datatracker <
> noreply@ietf.org> wrote:
>
> Reviewer: Jan Lindblad
> Review result: Almost Ready
>
> Dear Dots Authors, NETMOD WG,
>
> This is my YD LC review of draft-ietf-dots-telemetry-14. This draft
> contains
> two YANG modules, ietf-dots-telemetry and module ietf-dots-mapping. Both
> modules are unusual from a YANG perspective in that they consist of solely
> typedefs, groupings and sx:structures, and that their purpose is to define
> message bodies for a domain specific management protocol.
>
>
>
>
>
> This is consistent with the intent of RFC 8791.
>
>
>
> People have realized that a formal message definition that can be
> integrated
>
> into the tool chain is much better than 100 pages of ASCII art.  Augments,
>
> annotations, and deviations are not only possible, but critical to
> deployment.
>
>
>
> But you are raising an important point -- it is difficult to review
> groupings without any context.
>
> (Without any "uses").
>
>
>
> Since my previous review of this module (-09, June 2020) the underpinnings
> of
> the modules have changed significantly with a new RFC in the works,
> addressing
> the fundamental issues pointed out at that time. Very good & impressive. I
> still think there are important issues to resolve, so I will call the
> current
> state of -14 "Almost Ready".
>
> Links to previous relevant reviews:
>
> https://datatracker.ietf.org/doc/review-ietf-dots-rfc8782-bis-00-yangdoctors-early-aries-2020-09-23/
>
> https://datatracker.ietf.org/doc/review-ietf-dots-telemetry-09-yangdoctors-early-lindblad-2020-06-30/
>
> Because of this hitherto unusual application of YANG, the usual YD review
> procedures are not really applicable. Whoever reads this should feel free
> to
> comment on which perspectives should be included (or not) in an YD review
> of a
> YANG module defining a new protocol.
>
> I think the YD review should not be expected to cover the
> usability/interoperability of the newly defined protocol as a whole. E.g.
> which
> messages are sent when, what is the relevant/reasonable content in each
> message, are there any races or scalability issues, etc. IMO, such an
> analysis
> is essential, but too much work for an YD review (and outside my area of
> expertise). I have placed my review focus on the clear interpretation of
> the
> YANG modules, since that will be key to interoperability.
>
>
>
>
>
> Agreed.  The protocol document review is a separate matter.
>
>
>
>
>
> When YANG is mapped to NETCONF or RESTCONF, there are entire RFCs devoted
> to
> describing how that mapping is done, from what "mandatory" actually means
> in
> the protocol and how keys are sent, all the way to how the XML or JSON
> payloads
> are constructed and potential error messages. A lot more of that mapping
> is now
> present in this document, but I still find many aspects that are
> undefined/unclear.
>
>
>
> But this is related to the message encoding, not the YANG definitions.
>
> YANG is (trying to be) encoding-independent, and the YANG to CBOR and SID
> drafts explain
>
> how to encode any type of YANG data in CBOR.
>
>
>
>
>
>
>
> Andy
>
>
>
> _________________________________________________________________________________________________________________________
>
> 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.
>
>