...
Code Block |
---|
|
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 |
---|
|
tosca_definitions_version: tosca_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 |
---|
|
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:
deployTimeoutMs: 1000000
undeployTimeoutMs: 200000
updateTimeoutMs: 1000000
migrateTimeoutMs: 1000000
deleteTimeoutMs: 200000
baseUrl: http://{{address}}:30801
httpHeaders:
Content-Type: application/json
Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= |