Update nova driver default API version to 2.26

Done in order to take advantage of Nova tags support
introduced in 2.26.

Change-Id: I7fe68e624bf5c61cc854988457639bc6ae58d166
This commit is contained in:
Eric K 2018-05-14 17:20:38 -07:00
parent 71afca0ebe
commit d345a606b6
2 changed files with 7 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class NovaDriver(datasource_driver.PollingDataSourceDriver,
self.creds = args
session = ds_utils.get_keystone_session(self.creds)
self.nova_client = novaclient.client.Client(
version=self.creds.get('api_version', '2'), session=session)
version=self.creds.get('api_version', '2.26'), session=session)
self.add_executable_method('servers_set_meta',
[{'name': 'server',
'description': 'server id'},

View File

@ -0,0 +1,6 @@
---
prelude: >
upgrade:
- Default API microversion used by Nova driver changed from 2 to 2.26 to
enable Nova tags. If version 2 is desired, please specify it explicitly
in data source configuration. For example, ``openstack congress datasource create --config api_version=2 --config username=admin --config tenant_name=admin --config auth_url=http://127.0.0.1/identity --config password=password nova nova``