
This patch add new query parameter `required` to the `GET /allocation_candidates` API, which is used to filter candidates with required traits. The candidate attached traits return in the provider summary also. Those API changes are added by new microversion. Also using specific exception TraitNotFound instead of the generic exception ValueError when invalid traits in the request. Change-Id: Id821b5b2768dcc698695ba6570c6201e1e9a8233 Implement blueprint add-trait-support-in-allocation-candidates
11 lines
524 B
YAML
11 lines
524 B
YAML
---
|
|
features:
|
|
- |
|
|
Add ``required`` query parameter to the ``GET /allocation_candidates`` API
|
|
in new placement microversion 1.17. The parameter accepts a list of traits
|
|
separated by ``,``, which is used to further limit the list of allocation
|
|
requests to resource providers that have the capacity to fulfill the
|
|
requested resources AND *collectively* have all of the required traits
|
|
associated with them. In the same microversion, the candidate attached
|
|
traits returned in the provider summary.
|