Update default Ironic API version to 1.38

Currently the default API version used when creating ironic client
objects is 1.19, which was from the Newton (6.1.0) release. While it is
possible to create a client object with a more recent version within
plugins, introspection rules always use the default. This prevents
access to and updating of fields added in versions after 1.19.

This change updates the default ironic API version to 1.38, which was
the version at the time of the most recent Queens series release
(10.1.0).

Change-Id: I395f18612e20d4f7d71e503391ca2381bad68192
Story: 2002166
Task: 20017
This commit is contained in:
Mark Goddard 2018-06-07 10:05:05 +01:00
parent c6ad0f0ead
commit cdf79db9eb
2 changed files with 20 additions and 2 deletions

View File

@ -30,8 +30,12 @@ LOG = utils.getProcessingLogger(__name__)
VALID_STATES = {'enroll', 'manageable', 'inspecting', 'inspect wait',
'inspect failed'}
# 1.19 is API version, which supports port.pxe_enabled
DEFAULT_IRONIC_API_VERSION = '1.19'
# 1.38 is the latest API version in the Queens release series, 10.1.0.
# NOTE(mgoddard): This should be updated with each release to ensure that
# inspector is able to use the latest ironic API. In particular, this version
# is used when processing introspection rules, and is the default version used
# by processing plugins.
DEFAULT_IRONIC_API_VERSION = '1.38'
IRONIC_SESSION = None

View File

@ -0,0 +1,14 @@
---
upgrade:
- |
Updates the default Ironic API version to 1.38.
This version is used by default within the Bare Metal Inspection service
when communicating with the Bare Metal API. It is the default used by
processing plugins, which may override the version, and by introspection
rules, which may not override the version.
1.38 was the API version at the time of the most recent Queens series
Bare Metal service release (10.1.0).
See `story 2002166 <https://storyboard.openstack.org/#!/story/2002166>`__.