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
This commit is contained in:
Martin Schuppert 2019-10-07 11:07:51 +02:00
parent 58abba685e
commit f3e3208fb7
2 changed files with 9 additions and 0 deletions

View File

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

View File

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