Optimize Nova Custom Constraints

https://blueprints.launchpad.net/heat/+spec/nova-custom-constraints

Optimize Nova Custom Constraints, add/apply nova server constraint, and apply nova flavor constraint.

Problem description

  1. Many resources have property InstanceId/Server which related with nova server, but until now we haven’t support nova server constraints.

  2. Just define nova flavor custom constraint, but not to apply it.

Proposed change

  1. Add nova server custom constraint, and to apply it for resources.

  2. Move nova keypair and flavor custom constraints to nova.py, to make sure all nova custom constraints defined together.

  3. Apply nova flavor constraints for resources.

Alternatives

None

Implementation

Assignee(s)

Primary assignee:

huangtianhua@huawei.com

Milestones

Target Milestone for completion:

Kilo-1

Work Items

  1. Add/Apply nova server custom constraint.

  2. Move nova keypair and flavor custom constraints to nova.py.

  3. Apply nova flavor constraints for resources

  4. Add UT/Tempest tests for all the changes.

Dependencies

None