Re: [lmap] /capabilities/task* vs /capabilities/tasks/task*

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 05 January 2017 14:41 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: lmap@ietfa.amsl.com
Delivered-To: lmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C54B9129578 for <lmap@ietfa.amsl.com>; Thu, 5 Jan 2017 06:41:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.3
X-Spam-Level:
X-Spam-Status: No, score=-7.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.1] 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 u8epAPNHSFFc for <lmap@ietfa.amsl.com>; Thu, 5 Jan 2017 06:41:50 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D23AF128B38 for <lmap@ietf.org>; Thu, 5 Jan 2017 06:41:49 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id F3CE4754; Thu, 5 Jan 2017 15:41:47 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id U6joVmMYXJYJ; Thu, 5 Jan 2017 15:41:45 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Thu, 5 Jan 2017 15:41:47 +0100 (CET)
Received: from localhost (demetrius1.jacobs-university.de [212.201.44.46]) by hermes.jacobs-university.de (Postfix) with ESMTP id 6FB61200B8; Thu, 5 Jan 2017 15:41:47 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius1.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id DlKVJKPI_6k9; Thu, 5 Jan 2017 15:41:46 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id D9BA1200AD; Thu, 5 Jan 2017 15:41:46 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 072DC3E024D5; Thu, 5 Jan 2017 15:41:47 +0100 (CET)
Date: Thu, 05 Jan 2017 15:41:47 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Carey, Timothy (Nokia - US)" <timothy.carey@nokia.com>
Message-ID: <20170105144147.GA10175@elstar.local>
Mail-Followup-To: "Carey, Timothy (Nokia - US)" <timothy.carey@nokia.com>, "lmap@ietf.org" <lmap@ietf.org>
References: <20170103163223.GA7367@elstar.local> <9966516C6EB5FC4381E05BF80AA55F77012A81C5C8@US70UWXCHMBA05.zam.alcatel-lucent.com> <20170104224556.GA9362@elstar.local> <9966516C6EB5FC4381E05BF80AA55F77012A820D4A@US70UWXCHMBA05.zam.alcatel-lucent.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <9966516C6EB5FC4381E05BF80AA55F77012A820D4A@US70UWXCHMBA05.zam.alcatel-lucent.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lmap/nraDiMJax20ofYuEM7d25gpnnkI>
Cc: "lmap@ietf.org" <lmap@ietf.org>
Subject: Re: [lmap] /capabilities/task* vs /capabilities/tasks/task*
X-BeenThere: lmap@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: Large Scale Measurement of Access network Performance <lmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lmap>, <mailto:lmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lmap/>
List-Post: <mailto:lmap@ietf.org>
List-Help: <mailto:lmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lmap>, <mailto:lmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Jan 2017 14:41:52 -0000

Yes, one option is to simply have actions fail that refer to a
capability that is not available. This also seems to be the simplest
to implement.

/js

On Thu, Jan 05, 2017 at 09:32:43AM +0000, Carey, Timothy (Nokia - US) wrote:
> Juergen,
> 
> 
> I would agree that option B is the correct approach - but the action should fail, correct?
> 
> BR,
> Tim
> 
> -----Original Message-----
> From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] 
> Sent: Wednesday, January 04, 2017 4:46 PM
> To: Carey, Timothy (Nokia - US) <timothy.carey@nokia.com>
> Cc: lmap@ietf.org
> Subject: Re: [lmap] /capabilities/task* vs /capabilities/tasks/task*
> 
> On Tue, Jan 03, 2017 at 08:27:37PM +0000, Carey, Timothy (Nokia - US) wrote:
> > Juergen,
> > The task capabilities just point to the registry objects (registry and roles) - they don't have programs assigned.
> >
> 
> In the information model; the data model also allows to have entries without a registry object which identifies a program to run (and this is what I have implemented).
> 
> The question, however, is what exactly happens if a configured task refers to a capability task that does not exist. There are different
> options:
> 
> a) The configuration is invalid. This is problematic in a YANG context
>    since the idea is that validity of a configuration should not
>    depend on the specific runtime capabilities of a system.
> 
> b) The configuration may be valid but of configured tasks that refer
>    to tasks that are not among the capabilities are not executed.
> 
> From a YANG perspective, semantics b) seem to make most sense. But then the question is how this plays with actions (that refer to configured tasks) and schedules (that refer to actions). There are again differnet options:
> 
> b1) An action that refers to a configured task that references a
>     non-existing capability is simply not executed.
> 
> b2) Any schedule that includes an action that that refers to a
>     configured task that references a non-existing capability is not
>     executed.
> 
> Recall that we have differnet execution modes. For pipelines schedules, b2) might make sense, for parallel or sequential schedules
> b1) might make sense.
> 
> From the discussion around intended and applied configs, it seems b2 seems to make most sense because b2) essentially says that any actions and their schedules that reference non-existing capabilities are not part of the applied config, that is, the applied config becomes a proper subset of the schedules (and not a subset of the actions of the schedules).
> 
> /js
> 
> -- 
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>