Merge "api-ref: document caveats with scheduler hints"

This commit is contained in:
Zuul 2017-10-31 11:27:56 +00:00 committed by Gerrit Code Review
commit 39e7ca3226
2 changed files with 14 additions and 2 deletions

View File

@ -4436,7 +4436,19 @@ os-stop:
os:scheduler_hints:
description: |
The dictionary of data to send to the scheduler. Alternatively, you can specify
``OS-SCH-HNT:scheduler_hints`` as the string.
``OS-SCH-HNT:scheduler_hints`` as the key in the request body.
There are a few caveats with scheduler hints:
* The request validation schema is per hint. For example, some require a
single string value, and some accept a list of values.
* Hints are only used based on the cloud scheduler configuration, which
varies per deployment.
* Hints are pluggable per deployment, meaning that a cloud can have custom
hints which may not be available in another cloud.
For these reasons, it is important to consult each cloud's user
documentation to know what is available for scheduler hints.
in: body
required: false
type: object

View File

@ -39,7 +39,7 @@ _hints = {
]
},
'same_host': {
# NOTE: The value of 'different_host' is the set of server
# NOTE: The value of 'same_host' is the set of server
# uuids where a new server is scheduled on the same host.
'type': ['string', 'array'],
'items': parameter_types.server_id