Translate TOSCA description of instance capabilities to heat flavor
TOSCA template describe a server's capabilities by properties like disk_size, num_cpus, etc.. But hot template use a single flavor property. To cover this gap there're two options:
1. create a custom flavor by TOSCA description and use it while translating (but it requires admin role and there're lots of arguments of this topic)
2. query flavors from nova and pick the round one to translate.
Source the Openstack User credentials and use nova ReST API to fetch the flavor details and validate against the instance details
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- High
- Drafter:
- Victor HU
- Direction:
- Approved
- Assignee:
- bharaththiruveedula
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- bharaththiruveedula
- Completed by
- bharaththiruveedula
Related branches
Related bugs
Sprints
Whiteboard
(spzala) https:/
https:/
https:/
(spzala): Instead of using nova-client, I think we should use Nova REST APIs.
(spzala) We should not 'create' any new flavor. We only wants to query and find available best match flavor.
Gerrit topic: https:/
Addressed by: https:/
Add support to fetch flavor details from nova