From f3e3208fb784ec1d726b3a7252ec8825d64d7103 Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Mon, 7 Oct 2019 11:07:51 +0200 Subject: [PATCH] Add OS_COMPUTE_API_VERSION to overcloudrc openstack cli doesn't negotiate a microversion. Live migration and multiattach are 2 examples of operations which require arcane incantations to make them work correctly, and therefore usually don't. This adds ``OS_COMPUTE_API_VERSION=2.latest`` to the overcloudrc file to fix it. Change-Id: I6bb4ef5d3d0e53b12f8636b998d7f7c2426c2b60 --- .../export_os_nova_api_version-d5d1501306f8013b.yaml | 8 ++++++++ tripleo_common/utils/overcloudrc.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/export_os_nova_api_version-d5d1501306f8013b.yaml diff --git a/releasenotes/notes/export_os_nova_api_version-d5d1501306f8013b.yaml b/releasenotes/notes/export_os_nova_api_version-d5d1501306f8013b.yaml new file mode 100644 index 000000000..726a1ec87 --- /dev/null +++ b/releasenotes/notes/export_os_nova_api_version-d5d1501306f8013b.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + openstack cli doesn't negotiate a microversion. Live migration and + multiattach are 2 examples of operations which require arcane incantations + to make them work correctly, and therefore usually don't. + This adds ``OS_COMPUTE_API_VERSION=2.latest`` to the overcloudrc file to + fix it. diff --git a/tripleo_common/utils/overcloudrc.py b/tripleo_common/utils/overcloudrc.py index 15d9ef230..e82562b5e 100644 --- a/tripleo_common/utils/overcloudrc.py +++ b/tripleo_common/utils/overcloudrc.py @@ -90,6 +90,7 @@ def create_overcloudrc(stack, no_proxy, admin_password, region_name): 'OS_PASSWORD': admin_password, 'OS_AUTH_URL': overcloud_endpoint.replace('/v2.0', ''), 'OS_IDENTITY_API_VERSION': '3', + 'OS_COMPUTE_API_VERSION': '2.latest', 'OS_IMAGE_API_VERSION': constants.DEFAULT_IMAGE_API_VERSION, 'OS_VOLUME_API_VERSION': constants.DEFAULT_VOLUME_API_VERSION, 'OS_REGION_NAME': region_name or 'regionOne'