Define region and interface for collector/fetcher

It appears, that produced gnocchiclient does not respect region_name
from the auth_section, thus it needs to be defined directly for the
fetcher.

We align collector for now with fetcher, to make change backportable.

Closes-Bug: #2067084
Change-Id: If3a37b6190449e18446e65ce3b8cb70cd9038c37
This commit is contained in:
Dmitriy Rabotyagov 2024-05-25 11:50:25 +02:00
parent 744c46f6cd
commit fae91db568

View File

@ -17,7 +17,11 @@ port = {{ cloudkitty_service_port }}
collector = {{ cloudkitty_collector }}
[collector_{{ cloudkitty_collector }}]
{% if cloudkitty_collector == 'gnocchi' %}
auth_section = keystone_authtoken
interface = internalURL
region_name = {{ cloudkitty_service_region }}
{% endif %}
[cors]
@ -34,7 +38,11 @@ connection_recycle_time = {{ cloudkitty_db_connection_recycle_time }}
backend = {{ cloudkitty_collector }}
[fetcher_{{ cloudkitty_collector }}]
{% if cloudkitty_collector == 'gnocchi' %}
auth_section = keystone_authtoken
interface = internalURL
region_name = {{ cloudkitty_service_region }}
{% endif %}
[keystone_authtoken]
memcached_servers = {{ cloudkitty_memcached_servers }}