TOSCA Namespaces Support
TOSCA Simple Profiles allows template authors to declare their own types and templates and assign them simple names with no apparent namespaces. This is going to be discussed more in the TOSCA TC to create rules are needed to avoid collisions and apply their own namespaces when import and nesting occur. With the current heat-translator implementation it is expected that things like node type names are unique as well other things like requirements and capabilities. They are always unique for the TOSCA normative or base type but for custom it's not true. Consider the following scenario where two custom types definitions are imported in a single template,
node_types:
tosca.
derived_from: tosca.nodes.
properties:
name: { get_input: db_name }
user: { get_input: db_user }
password: { get_input: db_pwd }
#interfaces:
node_types:
tosca.
derived_from: tosca.nodes.
#interfaces:
where a custom type for MongoDB has created with certain expected properties and other things and other custom type uses default properties of MongoDB. Since they are of same node type, this will lead to a collision.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Sahdev Zala
- Direction:
- Needs approval
- Assignee:
- srinivas_tadepalli
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Sahdev Zala
- Completed by
- Sahdev Zala
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Update TOSCA base type definition file with version
Addressed by: https:/
Handle URLs for input templates and imports
Gerrit topic: https:/
(spzala) implemented by Srinivas