Re: [Netconf] issues with processing onboarding information (zerotouch)

Martin Bjorklund <mbj@tail-f.com> Mon, 13 August 2018 10:36 UTC

Return-Path: <mbj@tail-f.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 481EB127598 for <netconf@ietfa.amsl.com>; Mon, 13 Aug 2018 03:36:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=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 wDk1PmiYhJB7 for <netconf@ietfa.amsl.com>; Mon, 13 Aug 2018 03:36:03 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 6EC931277BB for <netconf@ietf.org>; Mon, 13 Aug 2018 03:36:03 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 993FF1AE0144; Mon, 13 Aug 2018 12:36:02 +0200 (CEST)
Date: Mon, 13 Aug 2018 12:36:01 +0200
Message-Id: <20180813.123601.53608699346435534.mbj@tail-f.com>
To: kwatsen@juniper.net
Cc: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <40EF0531-4112-4121-996F-32A030CC9670@juniper.net>
References: <40EF0531-4112-4121-996F-32A030CC9670@juniper.net>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/4pl-2-_bZ9xh2NfRmf3f7W9PYh4>
Subject: Re: [Netconf] issues with processing onboarding information (zerotouch)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
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: Mon, 13 Aug 2018 10:36:05 -0000

Hi,

Kent Watsen <kwatsen@juniper.net> wrote:
> Dear WG,
> 
> Following up on this thread, I'm beginning to make the changes,
> but there are a couple items where input would be helpful:
> 
> 1) regarding this:
> 
>    > b) Clarify that the scripts MUST also be idempotent, in case
>    >    the bootstrapping process falls into a loop.  Alternatively,
>    >    we could introduce a requirement on the scripts to supply
>    >    some sort of clean-up command; then the only state retained
>    >    would ever be the currently running boot-image, which is 
>    >    fine.  Thoughts?
> 
> What's being discussed here is the case where the script succeeds, 
> but a subsequent step (e.g., commit) fails.  In this case, do we
> say:
> 
>  a) scripts MUST be idempotent.  This sounds good, but I wonder
>     how possible this is.
> 
>  b) scripts MUST supply a clean-up command that removes all state
>     created by a successful execution of the script.  This seems
>     easier to code.

Do you mean that each script takes some kind of (conceptual) input
parameter that tells it to clean up the state produced by the previous
invocation?

Could we instead leave this to implementations?  In some environments
the server might be able to do the cleanup itself (which would be less
error prone).  In some other environments the scripts might not even
create any state.



/martin

> 
> Note: if no objections, I'll go with (b).
> 
> 
> 
> 2) regarding this:
> 
> 
>    > Should we add more zerotouch "progress-type" enums, and maybe
>    > make more of them mandatory?
>    >
>    > Details: module ietf-zerotouch-bootstrap-server contains the 
>    > RPC report-progress, which has input leaf "progress-type",
>    > which is an enumeration.  Currently, the enums follow
>    > this pattern:
>    >
>    > - bootstrap-initiated
>    > - bootstrap-complete
>    > - <step>-warning
>    > - <step>-error
>    > - informational
>    >
>    > where <step> has values: parsing, boot-image, pre-script,
>    > config, and post-script.
>    > 
>    > a) Should we add additional well-typed values for visibility
>    >    reasons (i.e. more debug information sent to the bootstrap
>    >    server)?  Specifically, these two:
>    >
>    >     - <step>-initiated
>    >     - <step>-success
>    > 
>    > b) assuming (a), should we make more of the reporting of
>    >  progress mandatory?  Currently only "bootstrap-complete"
>    >  is mandatory, with everything else being a SHOULD.
> 
> That kind of says it all, any thoughts on (a) and (b)?
> 
> Note: if no objections, I'll go with (a) only and, for (b), just
> make "bootstrap-initiated" mandatory.
> 
> 
> 
> Thanks,
> Kent // author
> 
> 
> 
> 
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>