Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
6 changed files
with
76 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
releasenotes/notes/forbidden-traits-in-nova-478f1884a06e50e7.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
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. |