Problem ceilometer inserting resources on gnocchi

asked 2018-05-11 17:46:11 -0500

arkab gravatar image

I'm having problems running ceilometer with gnocchi. The version of OpenStack is Pike over Centos 7 and the dbm is postgres. The problem is when some event happen and ceilometer tries to insert the metric into gnocchi database it fails because cannot find the resource_id on table resource. I test adding a resource by the gnocchi client and it comes succesfully.

api.log of gnocchi

2018-05-11 17:00:55,219 [26044] ERROR oslo_db.sqlalchemy.exc_filters: DBAPIError exception wrapped from (psycopg2.IntegrityError) inserción o actualización en la tabla «metric» viola la llave foránea «fk_metric_resource_id_resource_id»

agent-notification.log of ceilometer

2018-05-11 17:00:55.266 26760 ERROR ceilometer.dispatcher.gnocchi [-] Resource 1cfd40f2-9e28-496a-a3fa-c2747173e318 does not exist (HTTP 404): ResourceNotFound: Resource 1cfd40f2-9e28-496a-a3fa-c2747173e318 does not exist (HTTP 404)

In bouth upgrades (gnocchi-upgrade and ceilometer-upgrade --skip-metering-database) are no problems, the table resource_types have all the resource types define.

edit retag flag offensive close merge delete