Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 76A73200CD0 for ; Tue, 11 Jul 2017 00:29:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 750E4164798; Mon, 10 Jul 2017 22:29:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BF48D164797 for ; Tue, 11 Jul 2017 00:29:34 +0200 (CEST) Received: (qmail 55249 invoked by uid 500); 10 Jul 2017 22:29:32 -0000 Mailing-List: contact issues-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list issues@ariatosca.incubator.apache.org Received: (qmail 55151 invoked by uid 99); 10 Jul 2017 22:29:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2017 22:29:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 23570194664 for ; Mon, 10 Jul 2017 22:29:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yCIwpG1Kco2L for ; Mon, 10 Jul 2017 22:29:30 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 49A8162610 for ; Mon, 10 Jul 2017 22:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6BF45E01D8 for ; Mon, 10 Jul 2017 22:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2B1C724686 for ; Mon, 10 Jul 2017 22:11:00 +0000 (UTC) Date: Mon, 10 Jul 2017 22:11:00 +0000 (UTC) From: "Avia Efrat (JIRA)" To: issues@ariatosca.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARIA-313) unrequired operation inputs treated as required when starting an execution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Jul 2017 22:29:35 -0000 [ https://issues.apache.org/jira/browse/ARIA-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Avia Efrat updated ARIA-313: ---------------------------- Description: Currently, not supplying a value to a node template operation input that is defined with `required: false` in its type passes the service creation stage, but when trying to execute a workflow on the service, the execution refuses to start, claiming that this input is missing. Example: {code} # (assuming a 'create.sh' script is present) tosca_definitions_version: tosca_simple_yaml_1_0 node_types: nodes.Container.Application.Kubernetes: derived_from: tosca.nodes.Root interfaces: Standard: create: inputs: labels: type: string required: false implementation: create.sh topology_template: node_templates: web_app: type: nodes.Container.Application.Kubernetes {code} Running the install execution will alert that we didn't give a value to the `labels` input. was: Currently, not supplying a value to a node template operation input that is defined with `required: false` in its type passes the service creation stage, but when trying to execute a workflow on the service, the execution refuses to start, claiming that this input is missing. Example: ``` # (assuming a 'create.sh' script is present) tosca_definitions_version: tosca_simple_yaml_1_0 node_types: nodes.Container.Application.Kubernetes: derived_from: tosca.nodes.Root interfaces: Standard: create: inputs: labels: type: string required: false implementation: create.sh topology_template: node_templates: web_app: type: nodes.Container.Application.Kubernetes ``` Running the install execution will alert that we didn't give a value to the `labels` input. > unrequired operation inputs treated as required when starting an execution > -------------------------------------------------------------------------- > > Key: ARIA-313 > URL: https://issues.apache.org/jira/browse/ARIA-313 > Project: AriaTosca > Issue Type: Bug > Affects Versions: 0.1.0, 0.1.1, 0.2.0 > Reporter: Avia Efrat > > Currently, not supplying a value to a node template operation input that is defined with `required: false` in its type passes the service creation stage, but when trying to execute a workflow on the service, the execution refuses to start, claiming that this input is missing. > Example: > {code} > # (assuming a 'create.sh' script is present) > tosca_definitions_version: tosca_simple_yaml_1_0 > node_types: > nodes.Container.Application.Kubernetes: > derived_from: tosca.nodes.Root > interfaces: > Standard: > create: > inputs: > labels: > type: string > required: false > implementation: create.sh > topology_template: > node_templates: > web_app: > type: nodes.Container.Application.Kubernetes > {code} > Running the install execution will alert that we didn't give a value to the `labels` input. -- This message was sent by Atlassian JIRA (v6.4.14#64029)