Uploaded image for project: 'OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC'
  1. OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC
  2. TOSCA-170

DEFER - CSD05 - Explicit textual mention, and grammar support, for adding (extending) node operations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Deferred
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: CSD1
    • Fix Version/s: None
    • Component/s: Profile-YAML
    • Labels:
      None
    • Environment:

      grammar support for yaml extensions of operations.

      Description

      Node template operations can override operations specified in its node type, including overrides of type operations to NoOps. Can node templates also add operations not specified in their types? March 18 call consensus was that it would be good to make this explicit in the text where "overrides" are discussed, and Matt thought the grammar should explicitly allow extensions to operations.

      An example of all the possibilities regarding operations and derivation:

      ```
      tosca_definitions_version: tosca_simple_yaml_1_0_0

      node_templates:
      server1:
      type: custom.nodes.Compute
      properties:

      1. Omitted
        interfaces:
        tosca.interfaces.node.lifecycle.Standard:
        create: # Override an operation defined in the type (even adds inputs)
        implementation: scripts/custom_create.sh
        inputs:
        some_input: hard_coded
        configure: scripts/custom_configure.sh # Adds an operation that is not implemented in the type
        start: null # Override the type operation with No-Op
      2. The postconfigure is defined in the type and is not overridden

      node_types:
      custom.nodes.Compute:
      derived_from: tosca.nodes.Compute
      interfaces:
      tosca.interfaces.node.lifecycle.Standard:
      create: scripts/create.sh
      start: scripts/start.sh
      postconfigure: scripts/postconfigure.sh
      ```

        Attachments

          Activity

            People

            • Assignee:
              MosheElisha Moshe Elisha (Inactive)
              Reporter:
              dmoberg Dale Moberg (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: