Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
tosca_definitions_version: tosca_simple_yaml_1_3
metadata:
  primeTimeoutMs: 200000
  deprimeTimeoutMs: 200000
  deployTimeoutMs: 1000000
  undeployTimeoutMs: 200000
  updateTimeoutMs: 1000000
  migrateTimeoutMs: 1000000
  deleteTimeoutMs: 200000

Proposed solution 2

Add primeTimeoutMs and deprimeTimeoutMs in composition definition into metadata.

Add specific value for each instance operation into the instance.

Example of composition definition and composition instance composition instance

service template
name: DemoInstanceOslo
Code Block
languageyml
tosca_definitions_version: 1.0.1tosca_simple_yaml_1_3
metadata:
  primeTimeoutMs: 200000
  deprimeTimeoutMs: 200000

composition instance

Code Block
name: DemoInstanceOslo
version: 1.0.1
metadata:
  deployTimeoutMs: 1000000
  undeployTimeoutMs: 200000
  updateTimeoutMs: 1000000
  migrateTimeoutMs: 1000000
  deleteTimeoutMs: 200000
compositionId: {{composition1Id}}
description: Demo automation composition instance for Oslo
elements:
  709c62b3-8918-41b9-a747-d21eb79c6c25:
    id: 709c62b3-8918-41b9-a747-d21eb79c6c25
    definition:
      name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement
      version: 1.2.3
    description: Bridge Automation Composition Element for the Demo
    properties:
      baseUrl: http://{{address}}:30801
      httpHeaders:
        Content-Type: application/json
        Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=

Proposed solution 3

Add primeTimeoutMs and deprimeTimeoutMs in composition definition into metadata.

Add specific value for each instance operation into the instance element.

Example of composition definition and composition instance

service template
Code Block
languageyml
tosca_definitions_version: tosca_simple_yaml_1_3
metadata:
  primeTimeoutMs: 200000
  deprimeTimeoutMs: 200000

composition instance

Code Block
name: DemoInstanceOslo
version: 1.0.1
compositionId: {{composition1Id}}
description: Demo automation composition instance for Oslo
elements:
  709c62b3-8918-41b9-a747-d21eb79c6c25:
    id: 709c62b3-8918-41b9-a747-d21eb79c6c25
    definition:
      name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement
      version: 1.2.3
    description: Bridge Automation Composition Element for the Demo
    properties:
      primeTimeoutMs: 200000
      deprimeTimeoutMs: 200000
      deployTimeoutMs: 1000000
      undeployTimeoutMs: 200000
      updateTimeoutMs: 1000000
      migrateTimeoutMs: 1000000
      deleteTimeoutMs: 200000
      baseUrl: http://{{address}}:30801
      httpHeaders:
        Content-Type: application/json
        Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=

...