gnocchi create resource error when deployed by kolla-ansible

Bug #1920095 reported by Wonil Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Medium
Wonil Choi

Bug Description

What happened:
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi [-] Failed to create resource {'id': 'ac9109c5-a263-456f-8361-6210bdfb770b', 'host': 'scale3', 'flavor_id': 13, 'flavor_name': 'performance_flavor', 'user_id': '314d55c05d94406085c4adf5f5229ed6', 'project_id': '55eddf2c70c04d5594af431ef1cf8cc3'}: gnocchiclient.exceptions.BadRequest: Invalid input: expected str for dictionary value @ data['flavor_id'] (HTTP 400)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi Traceback (most recent call last):
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/ceilometer/publisher/gnocchi.py", line 537, in _create_event
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi self._create_resource(resource_type, resource)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/ceilometer/publisher/gnocchi.py", line 447, in _create_resource
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi self._gnocchi.resource.create(resource_type, resource)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/gnocchiclient/v1/resource.py", line 98, in create
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi data=ujson.dumps(resource)).json()
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/gnocchiclient/v1/base.py", line 41, in _post
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi return self.client.api.post(*args, **kwargs)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 392, in post
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi return self.request(url, 'POST', **kwargs)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi File "/usr/lib/python3.6/site-packages/gnocchiclient/client.py", line 52, in request
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi raise exceptions.from_response(resp, method)
2021-03-04 09:55:10.839 26 ERROR ceilometer.publisher.gnocchi gnocchiclient.exceptions.BadRequest: Invalid input: expected str for dictionary value @ data['flavor_id'] (HTTP 400)

How to reproduce it (minimal and precise):
Just create a VM instance with ceilometer deployed by kolla-ansible.

Wonil Choi (wonil22)
Changed in kolla-ansible:
assignee: nobody → Wonil Choi (wonil22)
Revision history for this message
Wonil Choi (wonil22) wrote :
Revision history for this message
Wonil Choi (wonil22) wrote :

ansible/roles/ceilometer/templates/event_definitions.yaml.j2 file in kolla-ansible is not the latest.

Revision history for this message
Wonil Choi (wonil22) wrote :
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.