Browse Source

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
(cherry picked from commit 91016ffeef)
changes/98/680698/2
Dmitry Tantsur 1 week ago
parent
commit
8ca36be4d8

+ 0
- 5
elements/undercloud-install/os-apply-config/root/stackrc View File

@@ -19,16 +19,11 @@ export OS_AUTH_URL
19 19
 OS_USERNAME=admin
20 20
 OS_PROJECT_NAME=admin
21 21
 COMPUTE_API_VERSION=1.1
22
-# 1.34 is the latest API version in Ironic Pike supported by ironicclient
23
-IRONIC_API_VERSION=1.34
24
-OS_BAREMETAL_API_VERSION=$IRONIC_API_VERSION
25 22
 OS_NO_CACHE=True
26 23
 OS_CLOUDNAME=undercloud
27 24
 export OS_USERNAME
28 25
 export OS_PROJECT_NAME
29 26
 export COMPUTE_API_VERSION
30
-export IRONIC_API_VERSION
31
-export OS_BAREMETAL_API_VERSION
32 27
 export OS_NO_CACHE
33 28
 export OS_CLOUDNAME
34 29
 OS_IDENTITY_API_VERSION='3'

+ 7
- 0
releasenotes/notes/stackrc-baremetal-version-ff365d7ba8bd2204.yaml View File

@@ -0,0 +1,7 @@
1
+---
2
+fixes:
3
+  - |
4
+    The baremetal API version is no longer hardcoded in ``stackrc``. This
5
+    allows easy access to new features in *ironicclient* as they are
6
+    introduced. If you need to use a fixed API version, set the
7
+    ``OS_BAREMETAL_API_VERSION`` environment variable.

Loading…
Cancel
Save