yorc icon indicating copy to clipboard operation
yorc copied to clipboard

Support TOSCA 1.3 to separate capability Compute from capability Container

Open trihoangvo opened this issue 5 years ago • 0 comments

Pull Request description

This PR supports the TOSCA profile v1.3 which introduces the new capability tosca.capabilities.Compute derived from tosca.capabilities.Container as described in GH-589

Description of the change

What I did

  • Add new capability type tosca.capabilities.Compute in data / tosca / normative-types.yml.
  • Adapt tests to use the new capability type as follows:
  1. Update all nodes hosted on a tosca.nodes.Compute and tosca.nodes.WebServer node to have the new requirement from type tosca.capabilities.Compute (instead of tosca.capabilities.Container).
  2. For other nodes, they continue to have the requirement tosca.capabilities.Container as they are hosted on a tosca.nodes.SoftwareComponent.

How to verify it

  • Run unit test: OK
  • Run real test:
  1. Update the repo tosca-normative-types from a4c with the PR https://github.com/alien4cloud/tosca-normative-types/pull/2 to add the new capability type tosca.capabilities.Compute.
  2. Use a4c to boot a Compute node with a software component on it.

Description for the changelog

Support TOSCA 1.3 to separate capability Compute from capability Container

Applicable Issues

No issues if you have a new setup. But for existing ones, upgrade existing tosca types in a4c is difficult and I do not know how to do it properly.

trihoangvo avatar Feb 04 '20 16:02 trihoangvo