Re: [Netconf] Inconsistency in Section 1.4 of draft-ietf-netconf-restconf-18

Kent Watsen <kwatsen@juniper.net> Thu, 15 December 2016 17:55 UTC

Return-Path: <kwatsen@juniper.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5273412940E for <netconf@ietfa.amsl.com>; Thu, 15 Dec 2016 09:55:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=junipernetworks.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 WujO51qISIcD for <netconf@ietfa.amsl.com>; Thu, 15 Dec 2016 09:55:27 -0800 (PST)
Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0132.outbound.protection.outlook.com [104.47.32.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C39A120725 for <netconf@ietf.org>; Thu, 15 Dec 2016 09:55:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7iFdW/6fL0xxE0Jp7IkErBALgfiIJM9rQjI2QN1NCEk=; b=Xk/Fpcq7Ve72kf7DR5HNWN/yc4im10FunBTdoJ1Q2AzeRwti8TL1s54R8nNeMB3Nelfp7WzLRG3FgBXC4hZnoqIdLd89C2jWQk9+EXZOA0wvufZ6j09L7KmfnfiNPiQwTFWKjq3NE/YHj7NTCKItdqEjttXGchmlDVA66pbJkf4=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.5; Thu, 15 Dec 2016 17:55:27 +0000
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) by BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) with mapi id 15.01.0789.014; Thu, 15 Dec 2016 17:55:27 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Martin Bjorklund <mbj@tail-f.com>, "mersue@gmail.com" <mersue@gmail.com>
Thread-Topic: [Netconf] Inconsistency in Section 1.4 of draft-ietf-netconf-restconf-18
Thread-Index: AQHSVssKbf/q5VyazECXOOWgD+2fGKEI92uA
Date: Thu, 15 Dec 2016 17:55:27 +0000
Message-ID: <19D8E110-ADA3-4652-9338-D8136511690D@juniper.net>
References: <02e601d25645$003cea50$00b6bef0$@gmail.com> <20161215.124711.2216477344616156120.mbj@tail-f.com>
In-Reply-To: <20161215.124711.2216477344616156120.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.1c.1.161117
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [66.129.241.12]
x-ms-office365-filtering-correlation-id: cbc56f3d-6764-4923-96ba-08d425138da7
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0501MB1442;
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1442; 7:+G9TWzTPv9XeRclsRn2wX56eDRhDlIXKQNkYXDh97nFBmgd61UbsmZafvy2A0udo7a0lfYlJrWqMd9Ak1s9nrBr7Fuc9LsfeKdCUR1Ol2ctQiK/QS9ZPPvDqTP3y4nbAuS9Ax6jCEWZDaJR9x/o2PKwjAS1KSHz5brXbq/a95D1/5/Lsy5gaCsRRg+WZasuPiW3z/Wur8nKHDLJFD/JNorI4alSIw42gBa3BiUyt2Y974RmhYLJS2lMnMwXdSP88pLKxVVB9q43AJna64fdRXXH35Q4VwDjZp2s/fWrjYCkl8+ROrWYsnP6UUUHhZTQwy1axlq1+gVg1RdfhJwCA+t0KNl7g1CIdSsmAdh3Tt1L7OTepP4JJCfCX0NCUj0gT5m+VGtddSw8lT65cd0Iof37H4UA7Yo21tSm8cu8TWfBm1GP/+tBt8/HgnknYpksvQr49VCIEvOTqeAKBilV1gA==
x-microsoft-antispam-prvs: <BN3PR0501MB14423C26116E2F325B4D6E6CA59D0@BN3PR0501MB1442.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:BN3PR0501MB1442; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0501MB1442;
x-forefront-prvs: 0157DEB61B
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39410400002)(39850400002)(189002)(199003)(24454002)(66066001)(38730400001)(5001770100001)(54356999)(76176999)(50986999)(8676002)(4326007)(122556002)(230783001)(7736002)(305945005)(3280700002)(39060400001)(3660700001)(77096006)(6486002)(105586002)(106116001)(68736007)(106356001)(2950100002)(3846002)(102836003)(99286002)(6116002)(2501003)(229853002)(101416001)(5660300001)(82746002)(25786008)(2900100001)(83506001)(189998001)(81166006)(92566002)(81156014)(8936002)(4001350100001)(86362001)(83716003)(6512006)(6436002)(2906002)(6506006)(33656002)(97736004)(36756003)(104396002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1442; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <9546D6D4B8F84E4E9A7E6538BF797EBB@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Dec 2016 17:55:27.5938 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1442
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Xyuz1XVU6IwEzBRznuzdrVv43NY>
Cc: "netconf@ietf.org" <netconf@ietf.org>, "rfc-editor@rfc-editor.org" <rfc-editor@rfc-editor.org>
Subject: Re: [Netconf] Inconsistency in Section 1.4 of draft-ietf-netconf-restconf-18
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Dec 2016 17:55:29 -0000


"Mehmet Ersue" <mersue@gmail.com> wrote:
> Dear NETCONF WG,
> 
> RFC Editor found an inconsistency in Section 1.4 of
> draft-ietf-netconf-restconf-18, where paragraph 6 says:
> 
>    "If the NETCONF server is expecting a
>    "persist-id" parameter to complete the confirmed commit procedure
>    then the RESTCONF edit operation MUST fail with a "409 Conflict"
>    status-line.  There error-tag "in-use" is returned in this case.  The
>    error-tag value "resource-denied" is used in this case."
> 
> Myself as the document shepherd and the authors agreed to use the error-tag
> value "invalid value" to align with the operations <cancel-commit> and
> <commit> in RFC 6241.
> The correction will be done as below:
> 
> OLD:
>    There error-tag "in-use" is returned in this case.  The
>    error-tag value "resource-denied" is used in this case.
> 
> NEW:
>       The error-tag value "invalid-value" is used in this case.
> 
> Please speak up within 2 days if you have a strong objection.

I don't think invalid-value is appropriate.  It signals that the
client provided an invalid value for some parameter, but that's not
true in this case - there is nothing the client can do in order to fix
the situation.  I prefer to use 'resource-denied' (which is actually
what Mehmet suggested).



What do NETCONF servers return when no persist-id is passed even though one is needed?  RFC 6241 isn’t clear.   RFC 6241 seems to only speak to when the wrong persist-id is passed.  Either case, RESTCONF SHOULD return the same error-tag value that a NETCONF server returns for these cases, right?

Kent