From 0b1e1bb7ce10bf989f37deb23dee5ff42e8dec6f Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 18 Jul 2018 10:27:05 -0400 Subject: [PATCH] Add support for microversion 2.65 There are no functional changes for this, just bumping the supported client-side version and updating docs. Depends-On: https://review.openstack.org/573136/ Part of blueprint abort-live-migration-in-queued-status Change-Id: Ie0777dbe4d82892ec75b353f6b13ee2d2c5db72c --- doc/source/cli/nova.rst | 4 ++++ novaclient/__init__.py | 2 +- novaclient/tests/unit/v2/test_shell.py | 1 + .../notes/microversion-v2_65-3c89c5932f4391cb.yaml | 9 +++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index 34b9e674c..a5a162ffc 100644 --- a/doc/source/cli/nova.rst +++ b/doc/source/cli/nova.rst @@ -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 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:** ```` diff --git a/novaclient/__init__.py b/novaclient/__init__.py index 1923e6a12..e4f84779d 100644 --- a/novaclient/__init__.py +++ b/novaclient/__init__.py @@ -25,4 +25,4 @@ API_MIN_VERSION = api_versions.APIVersion("2.1") # when client supported the max version, and bumped sequentially, otherwise # the client may break due to server side new version may include some # backward incompatible change. -API_MAX_VERSION = api_versions.APIVersion("2.64") +API_MAX_VERSION = api_versions.APIVersion("2.65") diff --git a/novaclient/tests/unit/v2/test_shell.py b/novaclient/tests/unit/v2/test_shell.py index b748dc6eb..c5492514f 100644 --- a/novaclient/tests/unit/v2/test_shell.py +++ b/novaclient/tests/unit/v2/test_shell.py @@ -3842,6 +3842,7 @@ class ShellTest(utils.TestCase): 61, # 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. + 65, # There are no version-wrapped shell method changes for this. ]) versions_supported = set(range(0, novaclient.API_MAX_VERSION.ver_minor + 1)) diff --git a/releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml b/releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml new file mode 100644 index 000000000..f581e3cf7 --- /dev/null +++ b/releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml @@ -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