nova/releasenotes/notes/forbidden-traits-in-nova-478f1884a06e50e7.yaml
Chris Dent 2c51688558 Parse forbidden in extra_specs
Accept forbidden traits in the processing of extra_specs, with the
format of:

      trait:CUSTOM_MAGIC=forbidden

This will be transformed into required=!CUSTOM_MAGIC when the traits
are assembled into a request to GET /allocation_candidates.

Implements blueprint forbidden-traits-in-nova

Change-Id: I31e609aef47d2fea03f279e4bfdd30f072d062b4
2018-04-17 18:18:43 +01:00

22 lines
866 B
YAML

---
features:
- |
Added support for forbidden traits to the scheduler. A flavor extra spec
is extended to support specifying the forbidden traits. The syntax of
extra spec is ``trait:<trait_name>=forbidden``, for example:
- trait:HW_CPU_X86_AVX2=forbidden
- trait:STORAGE_DISK_SSD=forbidden
The scheduler will pass the forbidden traits to the
``GET /allocation_candidates`` endpoint in the Placement API to include
only resource providers that do not include the forbidden traits. Currently
the only valid values are ``required`` and ``forbidden``. Any other values
will be considered invalid.
This requires that the Placement API version 1.22 is available before
the ``nova-scheduler`` service can use this feature.
The FilterScheduler is currently the only scheduler driver that supports
this feature.