From cdf79db9eb47af749c74b8523ec942714d5cea33 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 7 Jun 2018 10:05:05 +0100 Subject: [PATCH] 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 --- ironic_inspector/common/ironic.py | 8 ++++++-- .../notes/story-2002166-371315335fd8e62d.yaml | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/story-2002166-371315335fd8e62d.yaml diff --git a/ironic_inspector/common/ironic.py b/ironic_inspector/common/ironic.py index 272a61a8b..26ce965b8 100644 --- a/ironic_inspector/common/ironic.py +++ b/ironic_inspector/common/ironic.py @@ -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 diff --git a/releasenotes/notes/story-2002166-371315335fd8e62d.yaml b/releasenotes/notes/story-2002166-371315335fd8e62d.yaml new file mode 100644 index 000000000..0816c431f --- /dev/null +++ b/releasenotes/notes/story-2002166-371315335fd8e62d.yaml @@ -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 `__.