Comment 3 for bug 2067084

Revision history for this message
Mariusz Karpiarz (mkarpiarz) wrote :

Howard,
"RegionOne" is indeed the default for both the Gnocchi collector and fetcher. See:

https://opendev.org/openstack/cloudkitty/src/commit/8a5319fd5de3f9f9c7b543936a3bb42fb02a62a8/cloudkitty/collector/gnocchi.py#L86
https://opendev.org/openstack/cloudkitty/src/commit/8a5319fd5de3f9f9c7b543936a3bb42fb02a62a8/cloudkitty/fetcher/gnocchi.py#L64

These can be changed to the value set for the `region_name` config parameter from section `[collector_gnocchi]`:

https://opendev.org/openstack/cloudkitty/src/commit/8a5319fd5de3f9f9c7b543936a3bb42fb02a62a8/cloudkitty/collector/gnocchi.py#L184
https://opendev.org/openstack/cloudkitty/src/commit/8a5319fd5de3f9f9c7b543936a3bb42fb02a62a8/cloudkitty/fetcher/gnocchi.py#L107

I think the proper fix would be to modify the source code of Cloudkitty so that `region_name` from `[keystone_authtoken]` is used first, with fallback to `region_name` from `[collector_gnocchi]` and the default if neither one is set.