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.

This is the same as change Icea0bdf6d5dcdd81ce9c34be7af8a241da0861bc,
but adapter to instack-undercloud.

Change-Id: I106f5dc0ed4c3a3b67d8fc94c69b2b2f1d8fc547
Closes-Bug: #1789392
This commit is contained in:
Dmitry Tantsur 2019-09-06 16:09:01 +02:00
parent 5f1b6c6e50
commit 91016ffeef
2 changed files with 7 additions and 5 deletions

View File

@ -19,16 +19,11 @@ export OS_AUTH_URL
OS_USERNAME=admin
OS_PROJECT_NAME=admin
COMPUTE_API_VERSION=1.1
# 1.34 is the latest API version in Ironic Pike supported by ironicclient
IRONIC_API_VERSION=1.34
OS_BAREMETAL_API_VERSION=$IRONIC_API_VERSION
OS_NO_CACHE=True
OS_CLOUDNAME=undercloud
export OS_USERNAME
export OS_PROJECT_NAME
export COMPUTE_API_VERSION
export IRONIC_API_VERSION
export OS_BAREMETAL_API_VERSION
export OS_NO_CACHE
export OS_CLOUDNAME
OS_IDENTITY_API_VERSION='3'

View File

@ -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.