diff options
author | Zuul <zuul@review.openstack.org> | 2018-07-21 01:49:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-07-21 01:49:00 +0000 |
commit | 3398e14b8fc85a1ea32e089436c93f26c363aafd (patch) | |
tree | d3999789b5912728088840936e48ab5acb6bab83 | |
parent | 8b8f4676816530eb519b065c6bff3eb8938e1aa9 (diff) | |
parent | 0b1e1bb7ce10bf989f37deb23dee5ff42e8dec6f (diff) | |
download | python-novaclient-3398e14b8fc85a1ea32e089436c93f26c363aafd.tar.gz |
Merge "Add support for microversion 2.65"
-rw-r--r-- | doc/source/cli/nova.rst | 4 | ||||
-rw-r--r-- | novaclient/__init__.py | 2 | ||||
-rw-r--r-- | novaclient/tests/unit/v2/test_shell.py | 1 | ||||
-rw-r--r-- | releasenotes/notes/microversion-v2_65-3c89c5932f4391cb.yaml | 9 |
4 files changed, 15 insertions, 1 deletions
diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index 55ea49f8..41a5b232 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 |