Skip to content

Commit c9fd35a

Browse files
committed
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
1 parent 81a2b9a commit c9fd35a

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

openstackclient/compute/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323

2424
LOG = logging.getLogger(__name__)
2525

26-
DEFAULT_API_VERSION = '2'
26+
DEFAULT_API_VERSION = '2.1'
2727
API_VERSION_OPTION = 'os_compute_api_version'
2828
API_NAME = 'compute'
2929
API_VERSIONS = {
3030
"2": "novaclient.client",
31+
"2.1": "novaclient.client",
3132
}
3233

3334
# Save the microversion if in use

openstackclient/tests/unit/fakes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
_s = TEST_RESPONSE_DICT.add_service('network', name='neutron')
3939
_s.add_endpoint(AUTH_URL + ':9696')
4040
_s = TEST_RESPONSE_DICT.add_service('compute', name='nova')
41-
_s.add_endpoint(AUTH_URL + ':8774/v2')
41+
_s.add_endpoint(AUTH_URL + ':8774/v2.1')
4242
_s = TEST_RESPONSE_DICT.add_service('image', name='glance')
4343
_s.add_endpoint(AUTH_URL + ':9292')
4444
_s = TEST_RESPONSE_DICT.add_service('object', name='swift')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Update novaclient DEFAULT_API_VERSION to 2.1 from 2.0
5+
[Bug `1588171 <https://bugs.launchpad.net/bugs/1588171>`_]

0 commit comments

Comments
 (0)