Merge "Bump Ironic API version to 1.22 when creating the Ironic client"

This commit is contained in:
Jenkins 2016-12-01 05:33:18 +00:00 committed by Gerrit Code Review
commit 44c32994c4
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.