diff options
author | Lajos Katona <lajos.katona@ericsson.com> | 2019-02-20 10:49:43 +0100 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-03-06 20:44:49 -0500 |
commit | 62bf8809c660ed0675f301c235b1d434caeaf580 (patch) | |
tree | 641b0f8b79f251c5e05f7315037b2e83333f7bbb | |
parent | b2cd7e12ccb65e67be0a0b01243d6f19f95e70e8 (diff) | |
download | python-novaclient-62bf8809c660ed0675f301c235b1d434caeaf580.tar.gz |
Add support for microversion v2.7213.0.0
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)
-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-- | novaclient/v2/servers.py | 4 | ||||
-rw-r--r-- | releasenotes/notes/microversion-v2_72-d910ce07ec3948d6.yaml | 10 |
5 files changed, 20 insertions, 1 deletions
diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index e9de8a0a..21f760d7 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:** ``<name>`` diff --git a/novaclient/__init__.py b/novaclient/__init__.py index 5dc881d0..8b6111de 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 3589ec5c..e2297699 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 87a41556..a37c1b38 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 00000000..69ea4982 --- /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 |