Add trait support in the allocation candidates API

Registered by Alex Xu

The `GET /allcoation_candidates` API is key part of the resource claim. But it still doesn't support the traits yet. This BP proposes to add traits support.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Alex Xu
Direction:
Approved
Assignee:
Alex Xu
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-rc1
Started by
Matt Riedemann
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-trait-support-in-allocation-candidates,n,z

Addressed by: https://review.openstack.org/497713
    Add trait support in the allocation candidates API

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

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

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

Approved for Queens. -- mriedem 20171003

Addressed by: https://review.openstack.org/511184
    Add _get_provider_ids_with_any_trait method

Addressed by: https://review.openstack.org/511407
    Put the code of generating sharing RP combinations into a method

Addressed by: https://review.openstack.org/514197
    Add get_resource_provider_with_any_resource method

Addressed by: https://review.openstack.org/514198
    Add ProviderSummaryList object

Addressed by: https://review.openstack.org/514199
    Add more caches for the ProviderSummary

Addressed by: https://review.openstack.org/514200
    Add AggregatedProviderSummary and AggregatedProviderSummaryList objects

Addressed by: https://review.openstack.org/514649
    Enable _get_usages_by_provider_and_rc not filter on the resource class id

Addressed by: https://review.openstack.org/514650
    Add has_resources method to the AggregatedProviderSummary object

Addressed by: https://review.openstack.org/514651
    Add as_allocation_request_obj method to AggregatedProvierSummary obj

Addressed by: https://review.openstack.org/535642
    placement: support traits in allocation candidates API

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.