Uploaded image for project: 'AriaTosca'
  1. AriaTosca
  2. ARIA-313

Unrequired operation inputs treated as required when starting an execution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1.0, 0.1.1, 0.2.0
    • 0.2.0
    • None
    • None

    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:

      # (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 workflow will alert that we didn't give a value to the `labels` input, and won't start

      Attachments

        Activity

          People

            avia Avia Efrat
            avia Avia Efrat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: