[codesprints] Q about yang validation errors on submission.

Christian Hopps <chopps@chopps.org> Wed, 23 October 2019 16:39 UTC

Return-Path: <chopps@chopps.org>
X-Original-To: codesprints@ietfa.amsl.com
Delivered-To: codesprints@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 76BED1200B3 for <codesprints@ietfa.amsl.com>; Wed, 23 Oct 2019 09:39:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 47W-9FdVZonN for <codesprints@ietfa.amsl.com>; Wed, 23 Oct 2019 09:39:16 -0700 (PDT)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id EB89E1201B7 for <codesprints@ietf.org>; Wed, 23 Oct 2019 09:39:15 -0700 (PDT)
Received: from stubbs.int.chopps.org (172-222-100-236.res.spectrum.com [172.222.100.236]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 5D1636016D; Wed, 23 Oct 2019 16:39:15 +0000 (UTC)
From: Christian Hopps <chopps@chopps.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\))
Message-Id: <06A808F2-6BB1-45D8-9118-EC80B355B0EF@chopps.org>
Date: Wed, 23 Oct 2019 12:39:14 -0400
Cc: Christian Hopps <chopps@chopps.org>, Henrik Levkowetz <henrik@levkowetz.com>
To: codesprints@ietf.org
X-Mailer: Apple Mail (2.3594.4.19)
Archived-At: <https://mailarchive.ietf.org/arch/msg/codesprints/C4qgRgh1gPABggvjuOzKXcuzqEw>
Subject: [codesprints] Q about yang validation errors on submission.
X-BeenThere: codesprints@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "List for coordinating \(and following up on\) codesprint activities" <codesprints.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codesprints>, <mailto:codesprints-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/codesprints/>
List-Post: <mailto:codesprints@ietf.org>
List-Help: <mailto:codesprints-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codesprints>, <mailto:codesprints-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Oct 2019 16:39:17 -0000

Hi,

I had an issue a while back with invalid YANG on submission of draft b/c of trying to import ietf-isis. This ietf-isis YANG module draft isn't an RFC yet which is maybe what was causing the issue? Is this the correct mailing list to report that or is there a better place? I've included the failure below in case this is the correct place.

Thanks,
Chris.

> Locally my pyang validation passes as it has access to ietf-isis yang module; however, when I tried to submit I got:
> 
> draft-hopps-lsr-yang-isis-reverse-metric-01.txt:
> xym 0.4:
> Extracting 'ietf-isis-reverse-metric@2019-03-31.yang'
>   Removed 0 empty lines
> 
> 
> ietf-isis-reverse-metric@2019-03-31.yang:
> pyang 2.0.2: pyang --verbose --ietf -p {libs} {model}:
> # read /tmp/tmpP8Qtbl/ietf-isis-reverse-metric@2019-03-31.yang (CL)
> # read /a/www/ietf-datatracker/6.102.0/env/share/yang/modules/ietf/ietf-routing.yang
> # read /a/www/ietf-ftp/yang/rfcmod/ietf-routing@2018-03-13.yang
> # read /a/www/ietf-datatracker/6.102.0/env/share/yang/modules/ietf/ietf-yang-types.yang
> # read /a/www/ietf-ftp/yang/draftmod/ietf-yang-types@2019-07-21.yang
> # read /a/www/ietf-datatracker/6.102.0/env/share/yang/modules/ietf/ietf-interfaces.yang
> # read /a/www/ietf-ftp/yang/rfcmod/ietf-interfaces@2018-02-20.yang
> /tmp/tmpP8Qtbl/ietf-isis-reverse-metric@2019-03-31.yang:6: error: module "ietf-isis" not found in search path
> 
> yanglint 0.14.80: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib} {model} -i:
> err : Data model "ietf-isis" not found.
> err : Importing "ietf-isis" module into "ietf-isis-reverse-metric" failed.
> err : Module "ietf-isis-reverse-metric" parsing failed.
> 
> 
> Am I doing something wrong or is the submission validator broken?