Re: [DMM] YANG validation issue in draft-ietf-dmm-fpc-cpdp-06.txt

Benoit Claise <bclaise@cisco.com> Mon, 13 March 2017 14:50 UTC

Return-Path: <bclaise@cisco.com>
X-Original-To: dmm@ietfa.amsl.com
Delivered-To: dmm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 348DC129517; Mon, 13 Mar 2017 07:50:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.522
X-Spam-Level:
X-Spam-Status: No, score=-14.522 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 1Qh3uL0D5elx; Mon, 13 Mar 2017 07:50:49 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 01B05129421; Mon, 13 Mar 2017 07:50:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=6011; q=dns/txt; s=iport; t=1489416649; x=1490626249; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=lElaFoX3QSxbi41aNYNFvuDOrrF828XytWgVAD994zo=; b=mUuWtY0hBhqacqzSe+UDr2JP5WS6T0mAhuB54BMI+IMONEKa0pqBc3r3 5gvelkyaUt6I3v9DylvzC8TG8IszozfqGhoiaNEQZOB/QcS3nb1qGdqnW prpzWU1bl1Ujk+wcXOaRTA+pN4zkVIhLcnkL0jTNcfwibsjUG3qDCFZg9 U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BTAQCDsMZY/xbLJq1dGQEBAQEBAQEBAQEBBwEBAQEBhDIqYI1uc5BbkyyCD4IOJoV8AoMaGAECAQEBAQEBAWsohRUBAQEBAzIBBRElFwQLEQQBASgHRgkIBgEMBgIBAYl8rSYPg0aKVwEBAQEBAQEBAQEBAQEBAQEBAQEBAR2GToIFgWGBCYQmEQEohVkFnEGGdotDgXtUhFGDMoZTiEWCcIgOHzgSaggjFggXFUGEVx2BZD81AYcXDRcHghABAQE
X-IronPort-AV: E=Sophos;i="5.36,159,1486425600"; d="scan'208";a="692960934"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2017 14:50:46 +0000
Received: from [10.60.67.87] (ams-bclaise-8916.cisco.com [10.60.67.87]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v2DEok2H027545; Mon, 13 Mar 2017 14:50:46 GMT
To: "Bertz, Lyle T [CTO]" <Lyle.T.Bertz@sprint.com>, Radek Krejčí <rkrejci@cesnet.cz>, "draft-ietf-dmm-fpc-cpdp@ietf.org" <draft-ietf-dmm-fpc-cpdp@ietf.org>, "dmm@ietf.org" <dmm@ietf.org>, Per Hedeland <per@tail-f.com>
References: <18543b91-876c-7f41-f31f-1f670117a811@cisco.com> <86fd433ecc0c48adbc304eb22401ec4b@plswe13m04.ad.sprint.com> <723ff824-19a5-768b-754e-85216c63cd43@cisco.com> <4e559c8d-7a72-3878-9197-e6aaba8da4cd@cesnet.cz> <38347ea5a9224c0882a72a69665c46ae@plswe13m04.ad.sprint.com>
From: Benoit Claise <bclaise@cisco.com>
Message-ID: <e0361376-3c5f-265b-248f-4265a4ab9d92@cisco.com>
Date: Mon, 13 Mar 2017 15:50:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <38347ea5a9224c0882a72a69665c46ae@plswe13m04.ad.sprint.com>
Content-Type: text/plain; charset="iso-8859-2"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmm/K9EOWtm0lKSEB2GBq06qkEe4LpM>
Subject: Re: [DMM] YANG validation issue in draft-ietf-dmm-fpc-cpdp-06.txt
X-BeenThere: dmm@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Distributed Mobility Management Working Group <dmm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmm>, <mailto:dmm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmm/>
List-Post: <mailto:dmm@ietf.org>
List-Help: <mailto:dmm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmm>, <mailto:dmm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Mar 2017 14:50:51 -0000

Hi Lyle,

Let me answer to everybody

1. We added pyang to the submission tool. Note that pyang doesn't check 
xpath
     And yes, we might have some caching issue here when people submit 
multiple interdependent drafts the same day.
2. yangvalidator.org is a best effort tool maintained by Carl Moberg. It 
might not be up to date.
     And yes, we could have some caching issue, because the right way to 
do it is
      - start from scratch,
      - download all the drafts,
      - extract all YANG models
      - include all the RFC YANG modules, and the other YANG modules 
(IEEE, openconfig, etc.) that might be needed
      - compile all these YANG modules with 4 validators (2 opensource, 
2 commercial) that you obviously keep up to date
      - reports bug to the different validators when you find one.
      - wash ... rinse ... repeat
      All this (I skipped some steps to shorten the email :-) ) is what 
I do in 3.
3. I maintain my own tool chain and generate all my reports on 
www.claise.be, once the IETF drafts are posted or when a github repo is 
updated.
     When I see how much time it takes me, no wonder that 2. might not 
be up to date.

See in-line.
> We changed that this morning and tested but got the same response form the yangvalator site.  Thus, it appears we are then fighting a caching bug on yangvaldator site.  Although our I-D toolchains are evolving, I think having multiple toolchains is a bit problematic here as authors are shadowboxing.  We'll make the update but is there a way to get an official toolchain established that authors can point to?
>
> The I-D tool is not using the same tool set others, who are commenting on errors/issue, are.  This makes YANG development a bit more problematic as we go from a 'it worked on this chain but not that one...' situation.  If the answer for now is 'maintain your own toolchain' that is fine
The tool chains above are best effort.  So the best answer at this point 
is : you get what you paid for, so maintain your own toolchain :-)
> but I would encourage public access on how to maintain a good chain (or a github project on the chain) and push awareness, at least once, beyond netmod wg as more working groups pick up YANG.
I've been monitoring every single new YANG module and sending 
appropriate emails to the authors when I spot errors out of my tool chain.
Like this initial email for example.

Regards, Benoit
>    
>
> Lyle
>
> -----Original Message-----
> From: Radek Krejčí [mailto:rkrejci@cesnet.cz]
> Sent: Monday, March 13, 2017 8:39 AM
> To: Benoit Claise <bclaise@cisco.com>; Bertz, Lyle T [CTO] <Lyle.T.Bertz@sprint.com>; draft-ietf-dmm-fpc-cpdp@ietf.org; dmm@ietf.org; Per Hedeland <per@tail-f.com>
> Subject: Re: [DMM] YANG validation issue in draft-ietf-dmm-fpc-cpdp-06.txt
>
> Hi,
> some notes to warnings from yanglint:
>
> - each two warnings are actually connected in this case, so let's look to the first issue:
> warn: Schema node "attributetype" not found (../attributetype).
> warn: Invalid when condition "../attributetype = 'Per-MN-Agg-Max-DL-Bit-Rate-type'". (/ietf-dmm-fpc:tenants/tenant/fpc-mobility/contexts/ul/qos-profile-parameters/value/ietf-dmm-fpc-pmip:qos-pmip/attribute-choice/per-mn-agg-max-dl-case)
>
> - attributetype node, used in the when condition as "../attributetype", was not found
> - the when condition is placed in the node with the path printed at the end of the second message in the brackets
> - when you look into the schema, the node with when is actually placed into ietf-dmm-fpc-pmip via uses in one of the augments, used grouping qosattribute is from ietf-pmip-qos
> - so the actual bug is in ietf-pmip-qos schema in grouping qosattribute - instead of ../attributetype there should be ./attributetype because the context node for the when in case statement is the closets ancestor node to the node with the "when" statement that is a data node
>
> Regards,
> Radek
>
>
> Dne 13.3.2017 v 14:19 Benoit Claise napsal(a):
>> Including Radek (developing yanglint) and Per (confd), in case they've got the bandwidth to help you.
>>
>> Regards, Benoit
>>> We will as soon as we can isolate the error.  The error is unhelpful.  Do you have any guidance on it?
>>>
>>> Also, is there any way to rid ourselves of those tailf warnings?  They happen quite often and our developers now ignore most errors coming from confd as noise.
>>>
>>> -----Original Message-----
>>> From: dmm [mailto:dmm-bounces@ietf.org] On Behalf Of Benoit Claise
>>> Sent: Monday, March 13, 2017 6:17 AM
>>> To: draft-ietf-dmm-fpc-cpdp@ietf.org; dmm@ietf.org
>>> Subject: [DMM] YANG validation issue in draft-ietf-dmm-fpc-cpdp-06.txt
>>>
>>> Dear authors,
>>>
>>> I see that you have posted a new draft version. Great.
>>> Note that ietf-dmm-fpc-pmip@2017-03-08.yang still fails validation.
>>> See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.claise.be%2FIETFYANGPageCompilation.html&data=02%7C01%7Clyle.t.bertz%40sprint.com%7C05650ca67a00476a5b9008d46a03b748%7C4f8bc0acbd784bf5b55f1b31301d9adf%7C0%7C0%7C636250011571481523&sdata=RwDlcOxUAxOoCew0qs9nMQsjbtZ0vXQ4HgUKL8ABdn8%3D&reserved=0
>>> Please correct the mistake and post a new version.
>>>
>>> Regards, Benoit
>>>
>>> _______________________________________________
>>> dmm mailing list
>>> dmm@ietf.org
>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fdmm&data=02%7C01%7Clyle.t.bertz%40sprint.com%7C05650ca67a00476a5b9008d46a03b748%7C4f8bc0acbd784bf5b55f1b31301d9adf%7C0%7C0%7C636250011571481523&sdata=u5sSjji78baaTpWJkQWc0Wk2Y1AjtzRhWkSJAn5cgcQ%3D&reserved=0
>>>
>>> ________________________________
>>>
>>> This e-mail may contain Sprint proprietary information intended for the sole use of the recipient(s). Any use by others is prohibited. If you are not the intended recipient, please contact the sender and delete all copies of the message.
>>> .
>>>