summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2018-07-18 10:27:05 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2018-07-18 10:30:51 -0400
commit0b1e1bb7ce10bf989f37deb23dee5ff42e8dec6f (patch)
tree1586cb0e83e107d0424c5244262decb1f623440b
parent6c398058a6234e3a59822bbcd9ca5d3d05107e96 (diff)
downloadpython-novaclient-0b1e1bb7ce10bf989f37deb23dee5ff42e8dec6f.tar.gz
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
-rw-r--r--doc/source/cli/nova.rst4
-rw-r--r--novaclient/__init__.py2
-rw-r--r--novaclient/tests/unit/v2/test_shell.py1
-rw-r--r--releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml9
4 files changed, 15 insertions, 1 deletions
diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst
index 34b9e674..a5a162ff 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:**
``<server>``
diff --git a/novaclient/__init__.py b/novaclient/__init__.py
index 1923e6a1..e4f84779 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 b748dc6e..c5492514 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 00000000..f581e3cf
--- /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