From 4410ca7802bb8f95e804312fe8d8f5e1e79ad30d Mon Sep 17 00:00:00 2001 From: Angelos Kolaitis Date: Tue, 4 Jan 2022 16:24:40 +0200 Subject: [PATCH] Use Volume V3 API in OpenStack exporter Kolla has removed the Volume V2 API by default since OpenStack Wallaby. However, openstack-exporter attempts to use the Volume V2 API by default, resulting in clean installs failing to fetch Cinder metrics in Prometheus. This patch updates the clouds.yml configuration file for openstack-exporter to use the Volume V3 API instead. Closes-Bug: #1938194 Change-Id: Ifbb601be3ef1a1e853d5a7e832adf556c0ae38b9 --- ansible/roles/prometheus/templates/clouds.yml.j2 | 1 + releasenotes/notes/bug-1938194-80dba28f9cdd434c.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-1938194-80dba28f9cdd434c.yaml diff --git a/ansible/roles/prometheus/templates/clouds.yml.j2 b/ansible/roles/prometheus/templates/clouds.yml.j2 index 5472aeed20..ffb711d7ff 100644 --- a/ansible/roles/prometheus/templates/clouds.yml.j2 +++ b/ansible/roles/prometheus/templates/clouds.yml.j2 @@ -3,6 +3,7 @@ clouds: region_name: {{ openstack_region_name }} identity_api_version: 3 identity_interface: internal + volume_api_version: 3 auth: username: {{ keystone_admin_user }} password: {{ keystone_admin_password }} diff --git a/releasenotes/notes/bug-1938194-80dba28f9cdd434c.yaml b/releasenotes/notes/bug-1938194-80dba28f9cdd434c.yaml new file mode 100644 index 0000000000..3d33399c51 --- /dev/null +++ b/releasenotes/notes/bug-1938194-80dba28f9cdd434c.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Use Volume V3 API in OpenStack exporter. Volume V2 API has been removed + since OpenStack Wallaby. + `LP#1938194 `__