Re: [yang-doctors] [IANA #1289473] Revision statements in IANA-maintained YANG modules

Martin Björklund <mbj+ietf@4668.se> Wed, 22 November 2023 10:24 UTC

Return-Path: <mbj+ietf@4668.se>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BCBABC14CE2F for <yang-doctors@ietfa.amsl.com>; Wed, 22 Nov 2023 02:24:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-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=4668.se header.b="FUM96Na8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="3LBLIJcX"
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 FO4UpNBNWncd for <yang-doctors@ietfa.amsl.com>; Wed, 22 Nov 2023 02:24:36 -0800 (PST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9B36FC14CE2B for <yang-doctors@ietf.org>; Wed, 22 Nov 2023 02:24:30 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 276C03200AF5; Wed, 22 Nov 2023 05:24:29 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 22 Nov 2023 05:24:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1700648668; x=1700735068; bh=Ao/D9htw3EadnKq44358xVKMFtzp2cg4tS8 oqlkVFso=; b=FUM96Na83SAnS2fn3JQq6RhMGx+8m7C+2+TRAGeZdC7CP25A48z DOF1ObBtgvknPoYHgNJlQdv1bKg9nxmHywjuTSOUKzDcM+xu/TGDdsCLKet+oO/0 TOBwzmdRzIPYkkhsYHW800edpeL21i38uouhm0cwNm5IeOLlGlq8iuaHsIvmFtim COjL3gN8Vb6Cls6tkIlw3SJT6nFZltyeCVvXSsSabUiDvO1Fh6YWgHBShnInoKfw pGCQVN/Xn9gG0+jgL0el4jeLZy/iwsFayRWKaRX4YPvn+MCUIGkCKIf+Z5O+rt9R 4+KqOGKAXMILsGDMRVM6/y2+kNmhcCLgMrw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700648668; x=1700735068; bh=Ao/D9htw3EadnKq44358xVKMFtzp2cg4tS8 oqlkVFso=; b=3LBLIJcXpsosXGF/K30e6+133j+MZ/O5yX2h6PAGo6HnVT8DTs3 W2j3YpV5+/nWgygwc6n961dFn9nj7DQnDihYukhh1BbFYSmCOfYUqvLnIOusao5W LCpT/gubISVEJ6mbOWJPNEJ3bWZ52/Z0GWDFyqhVm6cg6AO160bB1UrqNMNQWqh0 5MfYkFgdQozN80ZNSZ5udVBmgebEv5CbPBWCUoeGLY4p85xd2oZzKXT2CBsPiLm2 W6px8ChjfsPECoXSw4lzuzD6d4qM0HvriKijDZ4wIBhJ0OvHJD9Ct5LXh337ZBF5 zobDbVDyQ4Bzd3ApBSlZ5dyn9jCSoaveoQw==
X-ME-Sender: <xms:3NZdZYgtgOYjt3Dv3sn7QfZalCy8wrsxUKlmOJqrO3y0_eJDYz9F3A> <xme:3NZdZRCv0X4OfXCU7VbDSOLJ3wyEqWwv_6jC0qMpPGdoSG8EDs4u7NYjiMw7aTsjZ 1amN1EmmCthrHlIpss>
X-ME-Received: <xmr:3NZdZQFCsJyHVboOpP6bYKIFQEBBA2Pp37egsrMKvjT-GHydhcsdAHuOYYHZjj25hyjqFHbg8okKE3kZA9ZNZaB56tOJyFvXHw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehuddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvvefuhfgjfhfogggtgfesth ejredtredtvdenucfhrhhomhepofgrrhhtihhnuceujhpnrhhklhhunhguuceomhgsjhdo ihgvthhfseegieeikedrshgvqeenucggtffrrghtthgvrhhnpeegtefhgfegkeevueehve euleeltedttdehveeutedvveeijeekgfdvveejtdetudenucffohhmrghinhepihgvthhf rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgsjhdoihgvthhfseegieeikedrshgv
X-ME-Proxy: <xmx:3NZdZZRsKA7Khd6aOBrh9pxlJPcGCNR_7dbi2MA_78oinSuWMr5gWQ> <xmx:3NZdZVz3dgU2DKNmCDh26dO4Ew0OTTNaE9Mmk4RbKifuJvzm5_vPag> <xmx:3NZdZX6Wmoc2iHzLQW8za_teBWv-EyFzTV7-hx86eVDZUql5EojvLQ> <xmx:3NZdZWr2YKdGTYPm2fT7jhIT6J_AHDYQNF9EBm_pvUBmDjh6suGUOw>
Feedback-ID: icc614784:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Nov 2023 05:24:27 -0500 (EST)
Date: Wed, 22 Nov 2023 11:24:24 +0100
Message-Id: <20231122.112424.19315011672692819.id@4668.se>
To: ladislav.lhotka=40nic.cz@dmarc.ietf.org
Cc: iana-issues@iana.org, yang-doctors@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <87v89ufcfc.fsf@nic.cz>
References: <rt-5.0.3-1442929-1700610506-1513.1289473-37-0@icann.org> <rt-5.0.3-1442929-1700610968-1782.1289473-37-0@icann.org> <87v89ufcfc.fsf@nic.cz>
X-Mailer: Mew version 6.8 on Emacs 27.1
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/TmmlKGSDhM9VzL5CmDKGitNdHZk>
Subject: Re: [yang-doctors] [IANA #1289473] Revision statements in IANA-maintained YANG modules
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 22 Nov 2023 10:24:41 -0000

Hi,

Ladislav Lhotka <ladislav.lhotka=40nic.cz@dmarc.ietf.org> wrote:
> Hi Amanda,
> 
> "Amanda Baber via RT" <iana-issues@iana.org> writes:
> 
> > Hi,
> >
> > We came across an issue when attempting to validate RFC 9403's
> > ietf-rib-extension@2023-11-20.yang module before posting.
> >
> > That module refers to iana-routing-types@2022-08-19.yang, and pyang is
> > refusing to validate it on the grounds that
> > iana-routing-types@2022-08-19.yang doesn't have references for its
> > revision statements. (Which it indeed does not.)
> >
> > However, if we try to validate iana-routing-types@2022-08-19.yang
> > directly, we don't get any errors.
> >
> > Which pyang reaction is correct?

When I validate this module directly with pyang, I get the errors:

  $ pyang --ietf iana-routing-types@2022-08-19.yang
  iana-routing-types@2022-08-19.yang:35: error: RFC 8407: 4.8: statement "revision" must have a "reference" substatement
  ...


> 
> RFC 8407 states in sec. 4.8:
> 
>   The "revision" statement MUST have a "reference" substatement.
> 
> The module description refers to RFC 8294 though, and I am not sure
> how this particular module is updated and whether there is always a
> relevant reference available for a given revision.
> 
> >
> > One larger issue is that we weren't aware that we needed to add
> > references for revision statements in the IANA-maintained modules. We
> > have no expertise in YANG and have been relying entirely on validation
> > tools (and on IANA Considerations sections for registry maintenance
> > instructions in general).
> >
> > Should we go back and add references to revision statements for all
> > the IANA-maintained modules?
> 
> This could lead to problems with versioning of modules. 
> 
> >
> > Do we need to do so only going forward?
> 
> I'd suggest to add reference statements to future (substantial)
> revisions of modules, perhaps even retroactively, but only where it
> makes sense.
> 
> >
> > Either way, we have two questions:
> >
> > 1) Many of the registries mirrored by the IANA-maintained modules have
> > First Come First Served or Expert Review ranges that don't require
> > that the applicant provide a specification. For those registrations,
> > we list the name of a contact person in the registry's "Reference"
> > field. In the module, would we continue to omit the reference field?
> 
> If there is no suitable document to refer to, it makes no sense to me
> to add any stub references. RFC 8407 is IMO unnecesarily strict here,
> and a SHOULD might suffice.

The full text in RFC 8407 is:

   A "revision" statement MUST be present for each published version of
   the module.  The "revision" statement MUST have a "reference"
   substatement.  It MUST identify the published document that contains
   the module.

In this case, there really isn't any "published document" - the module
is published directly on the web.  One option could be to add the URL
to the module in "reference".  The motivation for the rule is:

   Modules are often extracted from their original
   documents, and it is useful for developers and operators to know how
   to find the original source document in a consistent manner.

So the URL would help for this.


Side note.  In the description of the module it says:

     This version of this YANG module is part of RFC 8294; see
     the RFC itself for full legal notices.";

This isn't true... Should IANA change the description of the module
when it updates the module?  Perhaps to:

     This original version of this YANG module is part of RFC 8294; see
     the RFC itself for full legal notices.";


/martin




> 
> >
> > 2) When we need to correct an IANA-maintained module, in the absence
> > of a document to refer to, what can we do to make the revision
> > statement valid?
> 
> I'd say yes.
> 
> Best regards, Lada
> 
> >
> > Best regards,
> >
> > Amanda Baber
> > IANA Operations Manager
> >
> > _______________________________________________
> > yang-doctors mailing list
> > yang-doctors@ietf.org
> > https://www.ietf.org/mailman/listinfo/yang-doctors
> 
> -- 
> Ladislav Lhotka, CZ.NIC
> PGP Key ID: 0xB8F92B08A9F76C67
> 
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors