Request traits in Nova

Registered by Lei Zhang on 2017-05-29

This blueprint aims at leveraging traits to standardize the way
of requesting qualitative resources in Nova.
The main improvements are:
1. Allow to specify traits in flavors and image metadata.
2. Allow nova to validate traits when create a flavor.
3. Fail fast in nova-api when a requested traits doesn't exist or isn't valid in the cloud.
4. Standardize and encapsulate the implementation about how to request traits to scheduler through request spec.

Blueprint information

Status:
Started
Approver:
Jay Pipes
Priority:
Low
Drafter:
Lei Zhang
Direction:
Approved
Assignee:
Lei Zhang
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Started
Milestone target:
None
Started by
Matt Riedemann on 2017-10-02

Related branches

Sprints

Whiteboard

Addressed by: https://review.openstack.org/468797
    Request traits in Nova

Gerrit topic: https://review.openstack.org/#/q/topic:bp/request-traits-in-nova

Addressed by: https://review.openstack.org/492026
    placement: extract traits from flavor extra spec

Addressed by: https://review.openstack.org/489206
    placement: the common method to filter resource providers by traits

Addressed by: https://review.openstack.org/478464
    placement: add traits support to get resource_providers with shared

Addressed by: https://review.openstack.org/479766
    placement: add traits support in the AllocationCandidates object

Addressed by: https://review.openstack.org/479776
    placement: add traits to the 'GET /allocation_candidates' endpoint

Gerrit topic: https://review.openstack.org/#q,topic:request-traits-in-nova,n,z

Addressed by: https://review.openstack.org/511184
    [DNM] Add _get_provider_ids_with_any_trait

Addressed by: https://review.openstack.org/511185
    [DNM] placement: add traits support in the AllocationCandidates object

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.