diff --git a/releasenotes/notes/ironic-api-version-d2b4ec1474918f12.yaml b/releasenotes/notes/ironic-api-version-d2b4ec1474918f12.yaml new file mode 100644 index 000000000..95dd8e0d1 --- /dev/null +++ b/releasenotes/notes/ironic-api-version-d2b4ec1474918f12.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + The default ``OS_BAREMETAL_API_VERSION`` and ``IRONIC_API_VERSION`` in + ``overcloudrc`` were bumped to 1.29, which corresponds to Ocata final and + allows using all recent features without specifying an explicit version. diff --git a/tripleo_common/constants.py b/tripleo_common/constants.py index f00e03680..c40165e69 100644 --- a/tripleo_common/constants.py +++ b/tripleo_common/constants.py @@ -101,3 +101,7 @@ 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' diff --git a/tripleo_common/utils/overcloudrc.py b/tripleo_common/utils/overcloudrc.py index 64eae529c..27fab64f8 100644 --- a/tripleo_common/utils/overcloudrc.py +++ b/tripleo_common/utils/overcloudrc.py @@ -16,6 +16,8 @@ import socket from six.moves import urllib +from tripleo_common import constants + def get_service_ips(stack): service_ips = {} @@ -89,6 +91,8 @@ def create_overcloudrc(stack, no_proxy, admin_password): 'OS_AUTH_TYPE': 'password', 'OS_PASSWORD': admin_password, 'OS_AUTH_URL': overcloud_endpoint, + 'OS_BAREMETAL_API_VERSION': constants.DEFAULT_BAREMETAL_API_VERSION, + 'IRONIC_API_VERSION': constants.DEFAULT_BAREMETAL_API_VERSION, } overcloudrc = CLEAR_ENV