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
This commit is contained in:
Angelos Kolaitis 2022-01-04 16:24:40 +02:00
parent 0950b464f0
commit 4410ca7802
No known key found for this signature in database
GPG Key ID: 66AC4122BBC46C5C
2 changed files with 7 additions and 0 deletions

View File

@ -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 }}

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Use Volume V3 API in OpenStack exporter. Volume V2 API has been removed
since OpenStack Wallaby.
`LP#1938194 <https://bugs.launchpad.net/kolla-ansible/+bug/1938194>`__