Update default nova api version to 2.1
Ref:https://review.openstack.org/#/c/311653/ We should use 2.1 as the default nova version now The API_MIN_VERSION of novaclient has already changed to 2.1 Change-Id: I9ff16cf052556e5d3756f81e02a8e76e8f315df5 Closes-bug: #1588171
This commit is contained in:
parent
81a2b9a6bc
commit
c9fd35a496
@ -23,11 +23,12 @@ from openstackclient.i18n import _
|
|||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
DEFAULT_API_VERSION = '2'
|
DEFAULT_API_VERSION = '2.1'
|
||||||
API_VERSION_OPTION = 'os_compute_api_version'
|
API_VERSION_OPTION = 'os_compute_api_version'
|
||||||
API_NAME = 'compute'
|
API_NAME = 'compute'
|
||||||
API_VERSIONS = {
|
API_VERSIONS = {
|
||||||
"2": "novaclient.client",
|
"2": "novaclient.client",
|
||||||
|
"2.1": "novaclient.client",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Save the microversion if in use
|
# Save the microversion if in use
|
||||||
|
@ -38,7 +38,7 @@ _s.add_endpoint(AUTH_URL + ':5000/v2.0')
|
|||||||
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
|
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
|
||||||
_s.add_endpoint(AUTH_URL + ':9696')
|
_s.add_endpoint(AUTH_URL + ':9696')
|
||||||
_s = TEST_RESPONSE_DICT.add_service('compute', name='nova')
|
_s = TEST_RESPONSE_DICT.add_service('compute', name='nova')
|
||||||
_s.add_endpoint(AUTH_URL + ':8774/v2')
|
_s.add_endpoint(AUTH_URL + ':8774/v2.1')
|
||||||
_s = TEST_RESPONSE_DICT.add_service('image', name='glance')
|
_s = TEST_RESPONSE_DICT.add_service('image', name='glance')
|
||||||
_s.add_endpoint(AUTH_URL + ':9292')
|
_s.add_endpoint(AUTH_URL + ':9292')
|
||||||
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')
|
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')
|
||||||
|
5
releasenotes/notes/bug-1588171-61214d0ea482988c.yaml
Normal file
5
releasenotes/notes/bug-1588171-61214d0ea482988c.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Update novaclient DEFAULT_API_VERSION to 2.1 from 2.0
|
||||||
|
[Bug `1588171 <https://bugs.launchpad.net/bugs/1588171>`_]
|
Loading…
Reference in New Issue
Block a user