Versions Compared

Key

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

Currently ACM-Runtime fetches "maxStatusWaitMs" from properties file, uses that value to calculate the timeout for all operations.

What can be implemented:

  • Add more specific value for each operation in properties file as defaultFor each operation, continue to use the maxStatusWaitMs property as default value

  • Add specific value for each operation in composition definition or into the instance that override the default value

application.yaml

...

languageyml

...

Proposed solution 1

Add specific value for each operation in composition definition into metadata.

Example of composition definition

service template
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

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

composition instance

Code Block
languageyaml
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:
    heartBeatMs: 20000  name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement
      maxStatusWaitMsversion: 2000001.2.3
    primeTimeoutMsdescription: 200000Bridge Automation Composition Element for deprimeTimeoutMs:the Demo
200000     deployTimeoutMsproperties:
 1000000     undeployTimeoutMs: 200000baseUrl: http://{{address}}:30801
      updateTimeoutMshttpHeaders:
 1000000       migrateTimeoutMsContent-Type: 1000000application/json
      deleteTimeoutMs: 200000 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
languageyaml
name: DemoInstanceOslo
 metadata: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
    primeTimeoutMs: 200000description: Bridge Automation Composition Element for the Demo
    deprimeTimeoutMsproperties:
200000       deployTimeoutMs: 1000000
      undeployTimeoutMs: 200000
      updateTimeoutMs: 1000000
      migrateTimeoutMs: 1000000
      deleteTimeoutMs: 200000
      baseUrl: http://{{address}}:30801
      httpHeaders:
        Content-Type: application/json
        Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=