Re: [Netconf] Inconsistency in Section 1.4 of draft-ietf-netconf-restconf-18
Andy Bierman <andy@yumaworks.com> Thu, 15 December 2016 18:06 UTC
Return-Path: <andy@yumaworks.com>
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 EB30E12995C for <netconf@ietfa.amsl.com>; Thu, 15 Dec 2016 10:06:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 DDjwDS3G75DM for <netconf@ietfa.amsl.com>; Thu, 15 Dec 2016 10:06:55 -0800 (PST)
Received: from mail-qt0-x22b.google.com (mail-qt0-x22b.google.com [IPv6:2607:f8b0:400d:c0d::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 091FD129C07 for <netconf@ietf.org>; Thu, 15 Dec 2016 10:06:52 -0800 (PST)
Received: by mail-qt0-x22b.google.com with SMTP id n6so64730518qtd.1 for <netconf@ietf.org>; Thu, 15 Dec 2016 10:06:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PU8tuCVtuhqwahI4Lnf9i+Dy4KZTOx4xZJF6OO1ev2o=; b=MiSN726AzQoerjlR+k5e7aNtlICFxAx+eO3F5Gjsab8YIgLelIyZgHLPSzUlYQqRs9 TrTNq62ToVxn/gGE6c/pke/06biVY/tf3t8SIIp9U2x0wnqtKfqbwRsBa2xbqy/fTJHw RjrHsOKUJ6mP4PCu93R2d9BaESGR37frY9VSZFw2/msNWLcPl6Z8agWWyNl2dKPJT3qT ymUJy8PRd2hJi2zCtfV3zyDq2pywJ3BnwBJiFqJQgYHU+mwiNqIKME5xcSSB7VCo0bCy bXJObbI18bhCct5hcYQn9Uk0CptAGhFy4B1cPErzdjZcqM3KbyxlXtFQ7Pk+wPkaDmci 4bVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PU8tuCVtuhqwahI4Lnf9i+Dy4KZTOx4xZJF6OO1ev2o=; b=B4m1qZ4Ur2f5ODWTJiScCiIk0ION9X6pp6YxEAmOmOpWU0J+W+Wu4yXVtoC2t3nJak 864psbW2iJOqk31VyFlaj0PcdKcUOFlDDwMJhR0acw3Jgl9SNkQwKX2pKWhpKgVEZ53H 3X4tMcFx17pd9k5YpLfSx7sIq4avAMxsDxRzj6vFpjFxVKoxJbJyzMsvsuzc94Kd0U/O fONE1/nVL26fS+BjMtTrRdA9oK+I4p3gfS0FTfxCjhKlqhk7s13kT/1wbSlCiPoZpko7 GWGsmV8FdwM614R1mv5VKEnqMRhzpx6XSx4f4GqwU+c6wxnMF5O1D1qCgGx6lnfpU8ge ADkA==
X-Gm-Message-State: AIkVDXKxMGzfp5Jh7ezjbbUXH1z7SpjEtnBLPUddunOYb8v2Fz60npE792hccKCTt1o6SVLkcPTV5C20NEC25w==
X-Received: by 10.200.41.171 with SMTP id 40mr1979238qts.235.1481825211092; Thu, 15 Dec 2016 10:06:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.101.180 with HTTP; Thu, 15 Dec 2016 10:06:50 -0800 (PST)
In-Reply-To: <19D8E110-ADA3-4652-9338-D8136511690D@juniper.net>
References: <02e601d25645$003cea50$00b6bef0$@gmail.com> <20161215.124711.2216477344616156120.mbj@tail-f.com> <19D8E110-ADA3-4652-9338-D8136511690D@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 15 Dec 2016 10:06:50 -0800
Message-ID: <CABCOCHSymT-3iyDUNnya8o+dCTZuHNMn04fT+rctTKN87LdRSg@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Content-Type: multipart/alternative; boundary="001a1140657853cde80543b65102"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/iTLM2XbCDsSsZEJ2n_70K0Q2eks>
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 18:06:57 -0000
On Thu, Dec 15, 2016 at 9:55 AM, Kent Watsen <kwatsen@juniper.net> wrote: > > > "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? > > Our server returns 'in-use' and error-app-tag 'outstanding-confirmed-commit' if client B tries a <commit> on client A's confirmed commit. rpc-reply { rpc-error { error-info { error-number 373 } error-type protocol error-tag in-use error-severity error error-app-tag outstanding-confirmed-commit error-message 'cannot perform the operation with confirmed-commit pending' } } However, our RESTCONF server supports the confirmed-commit procedure using query parameters (confirmed, persist, persist-id, confirm-timeout) and also a POST on /restconf/operations/commit. (IMO some NETCONF operations are needed to make RESTCONF as robust as NETCONF) > Kent > Andy > > > > _______________________________________________ > Netconf mailing list > Netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf >
- [Netconf] Inconsistency in Section 1.4 of draft-i… Mehmet Ersue
- Re: [Netconf] Inconsistency in Section 1.4 of dra… Martin Bjorklund
- Re: [Netconf] Inconsistency in Section 1.4 of dra… Kent Watsen
- Re: [Netconf] Inconsistency in Section 1.4 of dra… Andy Bierman
- Re: [Netconf] Inconsistency in Section 1.4 of dra… Martin Bjorklund