From d345a606b6f2360958aa06c55e163884cc3e8d5d Mon Sep 17 00:00:00 2001 From: Eric K Date: Mon, 14 May 2018 17:20:38 -0700 Subject: [PATCH] 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 --- congress/datasources/nova_driver.py | 2 +- .../notes/nova-2.26-api-default-5f0923890b2140fb.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/nova-2.26-api-default-5f0923890b2140fb.yaml diff --git a/congress/datasources/nova_driver.py b/congress/datasources/nova_driver.py index 7ef3df899..644bfda79 100644 --- a/congress/datasources/nova_driver.py +++ b/congress/datasources/nova_driver.py @@ -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'}, diff --git a/releasenotes/notes/nova-2.26-api-default-5f0923890b2140fb.yaml b/releasenotes/notes/nova-2.26-api-default-5f0923890b2140fb.yaml new file mode 100644 index 000000000..f62d3b8d9 --- /dev/null +++ b/releasenotes/notes/nova-2.26-api-default-5f0923890b2140fb.yaml @@ -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``