Stephen Finucane 6a38838a41 Stop silently ignoring invalid 'nova boot --hint' options
The '--hint' option for 'nova boot' expects a key-value pair like so:

  nova boot --hint group=245e1dfe-2d0e-4139-80a9-fce124948896 ...

However, the command doesn't complain if this isn't the case, meaning
typos like the below aren't indicated to the user:

  nova boot --hint 245e1dfe-2d0e-4139-80a9-fce124948896

Due to how we'd implemented this here, this ultimately results in us
POSTing the following as part of the body to 'os-servers':

  {
    ...
    "OS-SCH-HNT:scheduler_hints": {
      "245e1dfe-2d0e-4139-80a9-fce124948896": null
    }
    ...
  }

Which is unfortunately allowed and ignored by nova due to the use of
'additionalProperties' in the schema [1]

Do what we do for loads of other options and explicitly fail on invalid
values.

NOTE(stephenfin): This includes the release note first added separately
in change I753e9a0cda1e118578373c519cf2fb2dd605a623.

[1] https://github.com/openstack/nova/blob/19.0.0/nova/api/openstack/compute/schemas/servers.py#L142-L146

Change-Id: I0f9f75cba68e7582d32d4aab2f8f077b4360d386
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Closes-Bug: #1845322
(cherry picked from commit 6954aacd54)
(cherry picked from commit 33627242e8)
(cherry picked from commit c7e793c22e)
2019-10-01 15:59:44 +01:00
2018-07-16 15:43:48 +07:00
2018-07-16 15:43:48 +07:00
2019-04-19 19:43:27 +00:00
2014-05-07 12:16:41 -07:00
2018-07-16 15:43:48 +07:00
2019-04-19 19:43:27 +00:00
2015-09-08 10:10:25 -07:00
2011-08-08 13:25:29 -07:00
2018-07-16 15:43:48 +07:00
2018-06-28 12:37:19 +00:00
2017-03-06 01:18:45 +00:00
2018-07-16 15:43:48 +07:00

Team and repository tags

image

Python bindings to the OpenStack Compute API

Latest Version

This is a client for the OpenStack Compute API. It provides a Python API (the novaclient module) and a command-line script (nova). Each implements 100% of the OpenStack Compute API.

Description
OpenStack Compute (Nova) Client
Readme 36 MiB
Languages
Python 100%