TOSCA integration with Senlin in order to policy management
The current TOSCA specification provides the ability to model policies and associate them with templates. Preliminary work has been underway to ensure a smooth mapping between these TOSCA policies and the way the Senlin OpenStack service defines policies for its cluster resources. The goal for this blueprint is to enable the translation workflow to integrate with Senlin in order to capture the realization of any policies that have been modeled in TOSCA. Essentially this becomes a function of filtering the provided template to strip out the appropriate policy information, and to call out to the Senlin API in order to create these policies (and any other required information) within Senlin. Once this is complete, the normal translation process continues.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Low
- Drafter:
- Julio Ruano
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
This blueprint is pretty straightforward... Ahead of target translation, check to see if there are any associated policies defined. For example, walk the Tosca Graph to pick out any policy definitions. From these policy definitions, call out to the Senlin API in order to create these as representations within Senlin. Create any necessary profiles in order to represent cluster resources within the Senlin API. Continue target translation as normal.
Deliverables:
- Translator code to work with the Senlin API
- Translator code to pick out any policy definitions in the TOSCA Graph from the parser
- Translator code to map TOSCA policy definitions to representations within Senlin