Merge "Add OS_COMPUTE_API_VERSION to overcloudrc"

This commit is contained in:
Zuul 2019-10-18 14:27:55 +00:00 committed by Gerrit Code Review
commit 72e36309ce
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'