From 62bf8809c660ed0675f301c235b1d434caeaf580 Mon Sep 17 00:00:00 2001 From: Lajos Katona Date: Wed, 20 Feb 2019 10:49:43 +0100 Subject: [PATCH] Add support for microversion v2.72 This microversion in Nova is added to support Neutron ports having resource request during server create to guarantee minimum bandwidth QoS. This is a behavior-only change in the compute API, there are no changes to the server create request or response schema. Change-Id: I1a39390015acd8703e8bab55af13f5c75ae226db Depends-On: https://review.openstack.org/636360 Partial-Bug: #1578989 See-Also: https://review.openstack.org/502306 (nova spec) See-Also: https://review.openstack.org/508149 (neutron spec) --- doc/source/cli/nova.rst | 4 ++++ novaclient/__init__.py | 2 +- novaclient/tests/unit/v2/test_shell.py | 1 + novaclient/v2/servers.py | 4 ++++ .../notes/microversion-v2_72-d910ce07ec3948d6.yaml | 10 ++++++++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/microversion-v2_72-d910ce07ec3948d6.yaml diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index e9de8a0af..21f760d76 100644 --- a/doc/source/cli/nova.rst +++ b/doc/source/cli/nova.rst @@ -956,6 +956,10 @@ nova boot Boot a new server. +In order to create a server with pre-existing ports that contain a +``resource_request`` value, such as for guaranteed minimum bandwidth +quality of service support, microversion ``2.72`` is required. + **Positional arguments:** ```` diff --git a/novaclient/__init__.py b/novaclient/__init__.py index 5dc881d07..8b6111de1 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.71") +API_MAX_VERSION = api_versions.APIVersion("2.72") diff --git a/novaclient/tests/unit/v2/test_shell.py b/novaclient/tests/unit/v2/test_shell.py index 3589ec5c0..e2297699a 100644 --- a/novaclient/tests/unit/v2/test_shell.py +++ b/novaclient/tests/unit/v2/test_shell.py @@ -4132,6 +4132,7 @@ class ShellTest(utils.TestCase): # flavor information. 70, # There are no version-wrapped shell method changes for this. 71, # There are no version-wrapped shell method changes for this. + 72, # 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/novaclient/v2/servers.py b/novaclient/v2/servers.py index 87a415565..a37c1b387 100644 --- a/novaclient/v2/servers.py +++ b/novaclient/v2/servers.py @@ -1236,6 +1236,10 @@ class ServerManager(base.BootingManagerWithFind): """ Create (boot) a new server. + In order to create a server with pre-existing ports that contain a + ``resource_request`` value, such as for guaranteed minimum bandwidth + quality of service support, microversion ``2.72`` is required. + :param name: Something to name the server. :param image: The :class:`Image` to boot with. :param flavor: The :class:`Flavor` to boot onto. diff --git a/releasenotes/notes/microversion-v2_72-d910ce07ec3948d6.yaml b/releasenotes/notes/microversion-v2_72-d910ce07ec3948d6.yaml new file mode 100644 index 000000000..69ea49821 --- /dev/null +++ b/releasenotes/notes/microversion-v2_72-d910ce07ec3948d6.yaml @@ -0,0 +1,10 @@ +--- +features: + - | + Support has been added for `microversion 2.72`_. This microversion + allows creating a server using the ``nova boot`` command with + pre-existing ports having a ``resource_request`` value to enable + features such as guaranteed minimum bandwidth for `quality of service`_. + + .. _microversion 2.72: https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id65 + .. _quality of service: https://docs.openstack.org/neutron/latest/admin/config-qos.html