Re: [nfsv4] Hang when trying to process rfc8881 converted to an I-D

"Noveck, David" <David.Noveck@netapp.com> Tue, 18 August 2020 18:40 UTC

Return-Path: <David.Noveck@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E70C3A09A0; Tue, 18 Aug 2020 11:40:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=netapp.onmicrosoft.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 n59i1HoClu7y; Tue, 18 Aug 2020 11:40:33 -0700 (PDT)
Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700087.outbound.protection.outlook.com [40.107.70.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2774C3A092B; Tue, 18 Aug 2020 11:40:32 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UdUXe9wZVYIKPKBm3Pu7wxzzdFMDIxBnMjgAvv5nQuijfRUjTrZNry4cu6X9H2ZjDyPgkdApJ95bACxfQ80lcoW848DbL3AQL/n0KIW+g8rPyMNdQfm0jhz1zhP8nD9loOLhycKD9h5yEqW7utCm30V6a2jWVWjRE/5qwHtxBpuu5iZsajeqi9c0bZleUPAbsSATRbWp0IcsOGfTSijtmvxbhnAjEqwNrSGkyjEVVJ1UBZ4XUS93VmN+M/Ro6n6jYGGsIP+pg9Mte7Ld2jAykOyqCPwS+HLEsboylTcHUxvS9sKAg3UpNLMymN71htrekJjw7eZMT4y9i04uXdA5+g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+MYQ9fcNnOtH7d+KnUVLp6RzBYVNgkXA/rvLg0F3GqE=; b=ExAbbZQAgwjkhKwv7LWLPaKMyo2dNDHyNFgUizXlagXj601xkAdDPJN0f4rzubIEQgX1uKTdbjq1C54movJgQFLWcEzMsHllfaxhCRooQNWnkc4HcmvIwUJl8QnRhN7DBvsVzcu/+dqQART0EUNvusITYdG5fK/1ZQdeALdMkumtJao2qhiaStZLAzaeauIYh752TcbyVmK9vkusVg1s7cOeyHmH9TeMK2cLGVUupQSbTD8nXZ7ktsEXv2iwyW2Efx7uR+r+YLL/TKKh87yHXhE6lzfqVFpS+L19VTsMjGhx1k4qRaej/3W4QSV0uwKQACx9renN764FXVT4T5MH2w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netapp.com; dmarc=pass action=none header.from=netapp.com; dkim=pass header.d=netapp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+MYQ9fcNnOtH7d+KnUVLp6RzBYVNgkXA/rvLg0F3GqE=; b=FwTkG3G+YIBw1fJwE70KDp9NOUbI5Wpl/6+/ScfarQX1ep9NCfFUGV4H+NOoZYQ0H6Dkl/EkZ8b1n2yEZFU77XaL1LQZoxyL1A2CVAEV5sfapU4ZZdAJwM6zENE+BHlStFeSdlPxp+nQpO+pqXlsAwXp8Yyi3DTnTuSuqnQw80I=
Received: from MN2PR06MB5597.namprd06.prod.outlook.com (2603:10b6:208:cf::24) by MN2PR06MB5392.namprd06.prod.outlook.com (2603:10b6:208:c8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16; Tue, 18 Aug 2020 18:40:29 +0000
Received: from MN2PR06MB5597.namprd06.prod.outlook.com ([fe80::6103:a14b:8934:dce7]) by MN2PR06MB5597.namprd06.prod.outlook.com ([fe80::6103:a14b:8934:dce7%6]) with mapi id 15.20.3305.024; Tue, 18 Aug 2020 18:40:29 +0000
From: "Noveck, David" <David.Noveck@netapp.com>
To: Jean Mahoney <jmahoney@amsl.com>, Henrik Levkowetz <henrik@levkowetz.com>, "tony@att.com" <tony@att.com>
CC: Chuck Lever <chuck.lever@oracle.com>, nfsv4-chairs <nfsv4-chairs@ietf.org>, "nfsv4-ads@ietf.org" <nfsv4-ads@ietf.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: [nfsv4] Hang when trying to process rfc8881 converted to an I-D
Thread-Index: AdZ1b2CVayhLHlxTQeWcc+a7mKUg1gAF3X8AAAEmvwAAAK+JwA==
Date: Tue, 18 Aug 2020 18:40:28 +0000
Message-ID: <MN2PR06MB55971C483A6431B9A8289994E15C0@MN2PR06MB5597.namprd06.prod.outlook.com>
References: <MN2PR06MB5597B574955103F5EF543823E15C0@MN2PR06MB5597.namprd06.prod.outlook.com> <c7a93397-bb4b-ce6a-41a8-12486b4ef3fe@levkowetz.com> <137cb358-bfd0-fcbb-b142-b5b1ba5f744c@amsl.com>
In-Reply-To: <137cb358-bfd0-fcbb-b142-b5b1ba5f744c@amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-dg-rorf: true
authentication-results: amsl.com; dkim=none (message not signed) header.d=none;amsl.com; dmarc=none action=none header.from=netapp.com;
x-originating-ip: [173.76.108.56]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: cc4fc8e6-e482-4251-4d2b-08d843a62e22
x-ms-traffictypediagnostic: MN2PR06MB5392:
x-microsoft-antispam-prvs: <MN2PR06MB5392B560299F73B21B25EE0BE15C0@MN2PR06MB5392.namprd06.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Xo3P1ZRqkNHUHBNZ1gjauiagl0lW1A5bWXM/mkP0oSjeG8OhLJ8fd/dFon7W1H2e6D7oam6vKZvbOj+K19liTneK20P6sp/9rhtmNLzktJH0vTu3sV2Lvgh8/w+G6YHZhiKdGR86AqGbYiudrFWX5kOgsRyj/GsV4JUswMOxzZornHpgttdpNWHQTeFKE4/EXYEOpHgQ3lcKg7K+edtbA+QxmW28kC26cTO52oZ5ORtpecdLj3zZP09/ymk/gWJxA5z5Wh2A6l3wA0JGWUMwRqJFfRzSS1EVNxNkmRPebab1WbfjpbC0dbCS7vquwX4I5JVyw5AiENIvAPReERGbjlC5AVLKW4updU6JUHArpn/6xuEKHOpdSeVC/s9+/TxsTG/j+kVTS694bfrSOf/vdw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR06MB5597.namprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(346002)(136003)(366004)(396003)(4326008)(52536014)(53546011)(6506007)(64756008)(66476007)(33656002)(8936002)(966005)(55016002)(83380400001)(76116006)(66946007)(5660300002)(66556008)(186003)(110136005)(66446008)(66574015)(9686003)(478600001)(86362001)(26005)(316002)(2906002)(54906003)(71200400001)(8676002)(7696005); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: FWfDFGi66B9b6z6CkYqG1j0zTCy7Xsb9T9KTO7BqmIPjVYdMtmn8LT3sJ7FABBEUJBPupaxEUOvscPFbNDZRMvPzoVj4L6e8bb+l5hwSRehdEo8F1LhsyNN1I2XqR4DxbJFefJUsDIIqNBq5S1nzuiIjHkiQXU8Xev+HzeqWlbM8hUaTHFJk8iSWIXkzm9v6qFtzulyoaDtvtgtTYKnG9jktL6F0uD0gkOunpq2yq/oWGxashASmLzyuN22ohYNDnVyHDmziFMsEIFIajAgkJK3Cei8Cyt7RIGB1wvDhVt8c0u6uxmFvk7Hn82Olx6eeYMDxb630IiZmNwKON9QGiodEe41U0/q965CUmjX0V311sYxrF7KqQsiB2LOcNtFNcgU9qp+3YEmQr0dukxSzKgBBhPD/jy0e3julHBF2pGXX1kHZXzJZdZuqZm75v0mEFBkJJrGegsEq+o1zX8zoUxXX4ddzfKczIKt0aOHhMrvRp8NWClN8GDHoBtbXXoi1CLepTsT4DoopPMLnM4JP58dwqlhlDWMmg/Mqui5WMcRVh7oDnYsIoTseHMeXgBvOCwaYsizUYYl+yULhw1FhquAsZAJd63ceodOSvkZ/YSdqqguprrzCExzJ5bqhgvgq1hhvCRf6eextasYFSxbW7g==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: netapp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR06MB5597.namprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: cc4fc8e6-e482-4251-4d2b-08d843a62e22
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2020 18:40:28.9527 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 3yXTprkkySyeBC4A1W4lIPrMjJHX84CTFAwfGD9rPmMhhQy6eNKdV54V7cNLGp7aRse/on7Cr3r/9jHMt87Grg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR06MB5392
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/ezJlVrHtczb5HgNO1H0bx0p3xxg>
Subject: Re: [nfsv4] Hang when trying to process rfc8881 converted to an I-D
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Aug 2020 18:40:36 -0000

> [JM] For anyone who wants to use xml2rfc on their own machine, the download instructions are here:
>
> https://pypi.org/project/xml2rfc/

Wasn't able to do that in my windows system.   I don't think the problem is in the instructions but in our I-T's fear (justified or not) of us downloading what appears to be random, potentially hostile code.

Running this over the web has been a good way of avoiding these worries but that doesn't work for me now.

-----Original Message-----
From: Jean Mahoney <jmahoney@amsl.com> 
Sent: Tuesday, August 18, 2020 2:15 PM
To: Henrik Levkowetz <henrik@levkowetz.com>; Noveck, David <David.Noveck@netapp.com>; tony@att.com
Cc: Chuck Lever <chuck.lever@oracle.com>; nfsv4-chairs <nfsv4-chairs@ietf.org>; nfsv4-ads@ietf.org; nfsv4@ietf.org
Subject: Re: [nfsv4] Hang when trying to process rfc8881 converted to an I-D

NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.




Thanks, Henrik!

Some comments inline --

On 8/18/20 12:41 PM, Henrik Levkowetz wrote:
> Hi David,
>
> On 2020-08-18 17:34, Noveck, David wrote:
>> I’m trying to use xml2rfc to process an I-D essentially duplicating
>> the contents of rfc8881.xml.   The goal is to have a starting point
>> for the working group to enable work on an rfc5661bis.  So far, it 
>> seems that xml2rfc always hangs/times out/aborts when I try this ☹
> Yes, the online service at xml2rfc.ietf.org takes about 13 minutes to 
> process the 2.4 Mbytes xml file, which stretches far beyond the web 
> server timeout.  It's an old machine.  Unfortunately, I think this 
> document is too large to process with the online service as it 
> currently exists.
>
> Processing the original rfc8881.xml on my desktop, I get a processing 
> time of 1m 15s.

[JM] For anyone who wants to use xml2rfc on their own machine, the download instructions are here:

https://pypi.org/project/xml2rfc/


>
>> I’m using Jean’s instructions (originally directed to another
>> purpose) on how to do this but they don’t seem to work:
>>
>> *   Remove number="8881" from the <rfc> element.
>> *   Remove the <seriesInfo> element
> Yup, those are good instructions.
>
> After doing so, the processing time on my desktop is slightly under 1m.
>
> Additionally, in order to make it easier to work with the XML, I would 
> recommend doing 'unprep' on the xml, in order to undo the full 
> expansion of all attributes etc. which is done before publication.  
> Doing so will give you less verbose XML.
>
> On the command-line, that would be:
>
>     $ xml2rfc --unprep rfc8881b.xml
>      Unprepping rfc8881b.xml
>      Created file rfc8881b.plain.xml

[JM]  The non-prepped file is also available here:

https://www.rfc-editor.org/in-notes/prerelease/rfc8881.notprepped.xml


>
> Renaming that to draft-ietf-nfsv4-rfc5661bis.xml, I got this on my 
> desktop machine:
>
>     $ time xml2rfc draft-ietf-nfsv4-rfc5661bis.xml
>     /home/henrik/src/xml2rfc/trunk/cli/draft-ietf-nfsv4-rfc5661bis.xml(36): Warning: The document date (2020-08-01) is more than 3 days away from today's date
>      Created file draft-ietf-nfsv4-rfc5661bis.txt
>
>     real      0m45.022s
>     user      0m44.020s
>     sys       0m0.210s
>
>
> Best regards,
>
>       Henrik

[JM] There are some other tweaks to make to the <rfc> element to create a bis I-D (not necessary to produce output, but to ensure that the header contains correct info):

https://www.rfc-editor.org/materials/FAQ-xml2rfcv3.html#name-how-do-i-use-the-rfc-elemen


>
>> In fairness to Jean, let me note that this suggestion were made 
>> before a big set of last-minute changes were made to the .xml file
>> just before actual rfc publication.   I’m pretty sure these happened
>> after author sign-off.  These include new v3 elements, that, as far 
>> as I can determine, have never been documented: <toc>, <boilerplate>, 
>> <copyright>.

[JM] Before publication, a preptool is used to pull all external content into the final prepped file so that the publication file does not have external dependencies.  This introduces XML elements like <toc> and <boilerplate> and the copyright text.

RFC 7991 covers the v3 vocabulary, but there have been some minor updates. The latest information can be found here:

    https://xml2rfc.tools.ietf.org/xml2rfc-doc.html


Best regards,

Jean


>> I think we need to get this resolved as soon as possible.  Some
>> possibilities:
>>
>> *   Debug xml2rfc so it handles a file prepared using Jean’s
>> approach.   I can provide rfc8881asID.xml if that would be helpful in
>> debugging this.
>> *   Provide updated instructions on how to convert an RFC to a
>> corresponding I-D.   I’ve tried deleting the <toc> element, deleting
>> the entire <boilerplate> element but so far no luck ☹
>> *   Provide an .xml that includes all the substantive changes made
>> during the process of preparing the RFC for publication, but none of 
>> the ones that happened after the authors signed off.  I may be naïve, 
>> but I feel it is worth trying Jean’s procedure on that .xml file.