[
https://issues.apache.org/jira/browse/ARIA-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081295#comment-16081295
]
Ran Ziv edited comment on ARIA-313 at 7/10/17 10:34 PM:
--------------------------------------------------------
As mentioned in the [relevant thread in the mailing
list|https://lists.apache.org/thread.html/2e5a8d4146f3d57969a8faa006d731ff553e2908ef19017cccaf7969@%3Cdev.ariatosca.apache.org%3E],
the issue is caused by a mis-intrepretation of the {{required}} field for
inputs in TOSCA in the current ARIA version.
The value for the {{required}} field should be stored past the parsing phase,
and used by the orchestrator as well.
was (Author: ran):
As mentioned in the [relevant thread in the mailing
list|https://lists.apache.org/thread.html/b65f7aee584f1fa9e3f757d25b8ce4a3ba6a0ac59f7106cab0d199b1@%3Cdev.ariatosca.apache.org%3E],
the issue is caused by a mis-intrepretation of the {{required}} field for
inputs in TOSCA in the current ARIA version.
The value for the {{required}} field should be stored past the parsing phase,
and used by the orchestrator as well.
> 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 workflow will alert that we didn't give a value to the
> `labels` input, and won't start
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)