ariatosca-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avia Efrat (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARIA-313) unrequired operation inputs treated as required when starting an execution
Date Mon, 10 Jul 2017 22:11:00 GMT

     [ 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)

Mime
View raw message