From 128347fbd724a77e4a603d2e18b59fc58604ec89 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 28 Aug 2018 11:58:03 +0200 Subject: [PATCH] Stop hardcoding baremetal API version in stackrc Long time ago it was required because ironicclient defaulted to an ancient version. It was changed back in Queens (ironicclient 2.0), so we can drop it now to avoid confusion. Change-Id: Icea0bdf6d5dcdd81ce9c34be7af8a241da0861bc Closes-Bug: #1789392 (cherry picked from commit 97298707451df065351ce002b8875830afc9d008) --- extraconfig/post_deploy/undercloud_post.sh | 3 --- .../notes/stackrc-baremetal-version-309809c01105095f.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/stackrc-baremetal-version-309809c01105095f.yaml diff --git a/extraconfig/post_deploy/undercloud_post.sh b/extraconfig/post_deploy/undercloud_post.sh index ba8c7be30f..f1559fec2c 100755 --- a/extraconfig/post_deploy/undercloud_post.sh +++ b/extraconfig/post_deploy/undercloud_post.sh @@ -21,9 +21,6 @@ export COMPUTE_API_VERSION=1.1 export NOVA_VERSION=1.1 export OS_NO_CACHE=True export OS_CLOUDNAME=undercloud -# 1.34 is the latest API version in Ironic Pike supported by ironicclient -export IRONIC_API_VERSION=1.34 -export OS_BAREMETAL_API_VERSION=\$IRONIC_API_VERSION export OS_IDENTITY_API_VERSION='3' export OS_PROJECT_DOMAIN_NAME='Default' export OS_USER_DOMAIN_NAME='Default' diff --git a/releasenotes/notes/stackrc-baremetal-version-309809c01105095f.yaml b/releasenotes/notes/stackrc-baremetal-version-309809c01105095f.yaml new file mode 100644 index 0000000000..698e05e8da --- /dev/null +++ b/releasenotes/notes/stackrc-baremetal-version-309809c01105095f.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + The baremetal API version is no longer hardcoded in ``stackrc``. This + allows easy access to new features in *ironicclient* as they are + introduced. If you need to use a fixed API version, set the + ``OS_BAREMETAL_API_VERSION`` environment variable.