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

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 04 January 2017 22:45 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 BCADC12973E for <lmap@ietfa.amsl.com>; Wed, 4 Jan 2017 14:45:59 -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 mSX6242QR74J for <lmap@ietfa.amsl.com>; Wed, 4 Jan 2017 14:45:57 -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 52BD31297BE for <lmap@ietf.org>; Wed, 4 Jan 2017 14:45:57 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id AD1DC6AC; Wed, 4 Jan 2017 23:45:55 +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 Utfm_YuoNjTd; Wed, 4 Jan 2017 23:45:54 +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; Wed, 4 Jan 2017 23:45:55 +0100 (CET)
Received: from localhost (demetrius1.jacobs-university.de [212.201.44.46]) by hermes.jacobs-university.de (Postfix) with ESMTP id 4F73B20086; Wed, 4 Jan 2017 23:45:55 +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 LlIPhhH-1vXo; Wed, 4 Jan 2017 23:45:54 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id DABE320085; Wed, 4 Jan 2017 23:45:54 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 11C403E012B9; Wed, 4 Jan 2017 23:45:57 +0100 (CET)
Date: Wed, 04 Jan 2017 23:45:56 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Carey, Timothy (Nokia - US)" <timothy.carey@nokia.com>
Message-ID: <20170104224556.GA9362@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>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <9966516C6EB5FC4381E05BF80AA55F77012A81C5C8@US70UWXCHMBA05.zam.alcatel-lucent.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lmap/Ttyw21TtpNAMBfXjy87_Nk3KmcU>
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: Wed, 04 Jan 2017 22:46:00 -0000

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/>