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:
qtang 2016-09-28 16:49:59 +08:00 committed by Qiang Tang
parent 81a2b9a6bc
commit c9fd35a496
3 changed files with 8 additions and 2 deletions

View File

@ -23,11 +23,12 @@ from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
DEFAULT_API_VERSION = '2'
DEFAULT_API_VERSION = '2.1'
API_VERSION_OPTION = 'os_compute_api_version'
API_NAME = 'compute'
API_VERSIONS = {
"2": "novaclient.client",
"2.1": "novaclient.client",
}
# Save the microversion if in use

View File

@ -38,7 +38,7 @@ _s.add_endpoint(AUTH_URL + ':5000/v2.0')
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
_s.add_endpoint(AUTH_URL + ':9696')
_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.add_endpoint(AUTH_URL + ':9292')
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')

View 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>`_]