Merge "Bump Ironic API version to 1.22 when creating the Ironic client"
This commit is contained in:
commit
44c32994c4
@ -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
|
||||
|
10
releasenotes/notes/ironic-api-newton-9397da8135bb97b4.yaml
Normal file
10
releasenotes/notes/ironic-api-newton-9397da8135bb97b4.yaml
Normal 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.
|
Loading…
x
Reference in New Issue
Block a user