From 2d901c63655041ccbad036021628a0a795201205 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Fri, 28 Jul 2017 11:27:36 +0200 Subject: [PATCH] Bump the default bare metal (ironic) API version in the overcloud to 1.34 This is the latest Pike API version, and it allows access to all new features to the users of the client. No breaking changes were made to the API since Ocata. Also issue a deprecation release note to inform the users that ironicclient will change the default API version to latest, and we will follow this change for the overcloud. Depends-On: I3f8fbd38bb81930f8b5771faaef6005e689f4f26 Closes-Bug: #1706408 Change-Id: I4a5787effd3a3e62e6c16748f10471e3b0f6360f --- .../ironic-api-version-pike-4264d815385cba7a.yaml | 13 +++++++++++++ tripleo_common/constants.py | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/ironic-api-version-pike-4264d815385cba7a.yaml diff --git a/releasenotes/notes/ironic-api-version-pike-4264d815385cba7a.yaml b/releasenotes/notes/ironic-api-version-pike-4264d815385cba7a.yaml new file mode 100644 index 000000000..f5bd95f1f --- /dev/null +++ b/releasenotes/notes/ironic-api-version-pike-4264d815385cba7a.yaml @@ -0,0 +1,13 @@ +--- +upgrade: + - | + The default bare metal API version used by the overcloud was bumped + to 1.34, which is latest API version supported by Pike ironicclient. +deprecations: + - | + In the Queens release ironicclient will start defaulting to the latest + supported bare metal API version, instead of the lowest. After that, + we will stop pinning the bare metal API version in ``overcloudrc``. + All scripts that rely on a specific version should set it explicitly via + either ``OS_BAREMETAL_API_VERSION`` environment variable or + ``--os-baremetal-api-version`` command line argument. diff --git a/tripleo_common/constants.py b/tripleo_common/constants.py index 4d33e285b..53af3b457 100644 --- a/tripleo_common/constants.py +++ b/tripleo_common/constants.py @@ -111,8 +111,8 @@ PASSWORD_PARAMETER_NAMES = ( PLAN_NAME_PATTERN = '^[a-zA-Z0-9-]+$' # The default version of the Bare metal API to set in overcloudrc. -# 1.29 is the latest API version in Ironic Ocata supported by ironicclient. -DEFAULT_BAREMETAL_API_VERSION = '1.29' +# 1.34 is the latest API version in Ironic Pike supported by ironicclient. +DEFAULT_BAREMETAL_API_VERSION = '1.34' # The default version of the Image API to set in overcloudrc. DEFAULT_IMAGE_API_VERSION = '2'