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)
This commit is contained in:
Lajos Katona 2019-02-20 10:49:43 +01:00 committed by Matt Riedemann
parent b2cd7e12cc
commit 62bf8809c6
5 changed files with 20 additions and 1 deletions

View File

@ -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>``

View File

@ -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")

View File

@ -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))

View File

@ -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.

View File

@ -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