Bump Ironic API version to 1.22 when creating the Ironic client

Due to how microversioning works in the Ironic client, it is not possible
to use API features introduced in API version 1.10 and later from Mistral,
as the default version is 1.9 (mid-Liberty). This change bumps the required
API version to 1.22 (Newton final).

See the following link for the full API version history:
http://docs.openstack.org/developer/ironic/dev/webapi-version-history.html

Change-Id: I1c605fc00efe5fe8956d6547ea5e85e6e1172c9b
This commit is contained in:
Dmitry Tantsur 2016-11-29 13:57:51 +01:00
parent a4a2964c36
commit 57e4614c16
2 changed files with 19 additions and 1 deletions

View File

@ -52,6 +52,13 @@ LOG = log.getLogger(__name__)
CONF = cfg.CONF
IRONIC_API_VERSION = '1.22'
"""The default microversion to pass to Ironic API.
1.22 corresponds to Newton final.
"""
class NovaAction(base.OpenStackAction):
def _create_client(self):
ctx = context.ctx()
@ -373,7 +380,8 @@ class IronicAction(base.OpenStackAction):
return self._get_client_class()(
ironic_endpoint.url,
token=ctx.auth_token,
region_name=ironic_endpoint.region
region_name=ironic_endpoint.region,
os_ironic_api_version=IRONIC_API_VERSION
)
@classmethod

View File

@ -0,0 +1,10 @@
---
features:
- It is now possible to use the Bare metal (Ironic) API features introduced
in API version 1.10 to 1.22.
upgrade:
- Required Ironic API version was bumped to '1.22' (corresponding to Ironic
6.2.0 - Newton final release).
- Due to the default Ironic API version change to '1.22', new bare metal
nodes created with 'node_create' action appears in "enroll" provision state
instead of "available". Please update your workflows accordingly.