Merge "Add support for microversion 2.65"

This commit is contained in:
Zuul 2018-07-21 01:49:00 +00:00 committed by Gerrit Code Review
commit 3398e14b8f
4 changed files with 15 additions and 1 deletions

View File

@ -2321,6 +2321,10 @@ Abort an on-going live migration. (Supported by API versions '2.24' -
'2.latest') [hint: use '--os-compute-api-version' flag to show help message '2.latest') [hint: use '--os-compute-api-version' flag to show help message
for proper version] for proper version]
For microversions from 2.24 to 2.64 the migration status must be ``running``;
for microversion 2.65 and greater, the migration status can also be ``queued``
and ``preparing``.
**Positional arguments:** **Positional arguments:**
``<server>`` ``<server>``

View File

@ -25,4 +25,4 @@ API_MIN_VERSION = api_versions.APIVersion("2.1")
# when client supported the max version, and bumped sequentially, otherwise # when client supported the max version, and bumped sequentially, otherwise
# the client may break due to server side new version may include some # the client may break due to server side new version may include some
# backward incompatible change. # backward incompatible change.
API_MAX_VERSION = api_versions.APIVersion("2.64") API_MAX_VERSION = api_versions.APIVersion("2.65")

View File

@ -3842,6 +3842,7 @@ class ShellTest(utils.TestCase):
61, # There are no version-wrapped shell method changes for this. 61, # There are no version-wrapped shell method changes for this.
62, # There are no version-wrapped shell method changes for this. 62, # There are no version-wrapped shell method changes for this.
63, # There are no version-wrapped shell method changes for this. 63, # There are no version-wrapped shell method changes for this.
65, # There are no version-wrapped shell method changes for this.
]) ])
versions_supported = set(range(0, versions_supported = set(range(0,
novaclient.API_MAX_VERSION.ver_minor + 1)) novaclient.API_MAX_VERSION.ver_minor + 1))

View File

@ -0,0 +1,9 @@
---
features:
- |
Support has been added for the compute API `2.65`_ microversion. This
allows calling ``nova live-migration-abort`` on live migrations that are
in ``queued`` or ``preparing`` status in addition to the already accepted
``running`` status.
.. _2.65: https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id59