Hi,

I've deployed Cloudkitty using Kolla-ansible, then I followed this example to test if the service is working : https://docs.openstack.org/cloudkitty/xena/user/rating/hashmap.html#examples

I don't fully understand the service.

I waited a day, and until now I don't have any results.

The only errors I had is this once is :
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator [-] [scope: a50e58ff494441b3b78ab096bca747d9, worker: 0
] Error while collecting metric image.size at timestamp 2022-04-01 00:00:00+01:00: {'cause': "Metrics can't being aggregated", 'reason': 'Granularities are missing', 'detail': [['image.size', 'mean', 3600.0]]} (HTTP 400). Exiting.: gnocchiclient.exceptions.BadRequest: {'cause': "Metrics can't being aggregated", 'reason': 'Granularitie:are missing', 'detail': [['image.size', 'mean', 3600.0]]} (HTTP 400)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator Traceback (most recent call last):
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cloudkitty/orchestrator.py", line 308, in _get_result
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     return self._collect(metric, timestamp)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cloudkitty/orchestrator.py", line 297, in _collect
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     self._tenant_id,
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cloudkitty/collector/__init__.py", line 240, in retrieve
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     q_filter=q_filter,
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cloudkitty/collector/gnocchi.py", line 450, in fetch_all
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     q_filter=q_filter,
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/cloudkitty/collector/gnocchi.py", line 329, in _fetch_metric
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     measurements = self._conn.aggregates.fetch(op, **agg_kwargs)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchiclient/v1/aggregates.py", line 72, in fetch
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     data=ujson.dumps(data)).json()
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchiclient/v1/base.py", line 41, in _post
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     return self.client.api.post(*args, **kwargs)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 401, in post
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     return self.request(url, 'POST', **kwargs)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator   File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchiclient/client.py", line 52, in request
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator     raise exceptions.from_response(resp, method)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator gnocchiclient.exceptions.BadRequest: {'cause': "Metrics can't being aggregated", 'reason': 'Granularities are missing', 'detail': [['image.size', 'mean', 3600.0]]} (HTTP 400)
2022-04-20 11:57:37.834 31 ERROR cloudkitty.orchestrator


I searched the web and I found this post : https://storyboard.openstack.org/#!/story/2008598

Could that be the problem? If so , how to correct it?

i tried to create this file on my kolla-ansible deployer
vim /etc/kolla/config/cloudkitty.conf
[DEFAULT]
debug = True

[collect]
metrics_conf = /etc/cloudkitty-api/metrics.yml (I don't know if this path is correct, since there is no /etc/cloudkitty on the nodes)

And I created a directory like this :
mkdir /etc/kolla/config/cloudkitty/
wget https://raw.githubusercontent.com/openstack/cloudkitty/master/etc/cloudkitty/metrics.yml -O /etc/kolla/config/cloudkitty/metrics.yml

I executed then kolla-ansible -i multinode reconfigure -t cloudkitty

All I have in the logs is :
2022-04-21 15:13:32.691 8 INFO cotyledon._service_manager [-] Child 1304 exited with status 1
2022-04-21 15:13:32.693 8 INFO cotyledon._service_manager [-] Child 1310 exited with status 1
2022-04-21 15:13:32.695 8 INFO cotyledon._service_manager [-] Child 1312 exited with status 1
2022-04-21 15:13:32.697 8 INFO cotyledon._service_manager [-] Child 1314 exited with status 1
2022-04-21 15:13:33.097 8 INFO cotyledon._service_manager [-] Child 1325 exited with status 1
2022-04-21 15:13:33.101 8 INFO cotyledon._service_manager [-] Child 1327 exited with status 1
2022-04-21 15:13:33.102 8 INFO cotyledon._service_manager [-] Forking too fast, sleeping
2022-04-21 15:13:38.109 8 INFO cotyledon._service_manager [-] Child 1329 exited with status 1
2022-04-21 15:13:38.112 8 INFO cotyledon._service_manager [-] Child 1331 exited with status 1
2022-04-21 15:13:38.114 8 INFO cotyledon._service_manager [-] Child 1333 exited with status 1

Any ideas?


Regards.