Ask Your Question
0

Gnocchi not receiving all the measurements from ceilometer, some gets dropped.

asked 2019-05-13 05:18:43 -0500

wahab.icp gravatar image

I am using Openstack(Rocky) on Ubuntu 18.04.

I have installed gnocchi, It is working fine.

root@controller:~# gnocchi measures show cb0c9713-1b45-4afc-b02d-2a4019c1e41d
+---------------------------+-------------+-----------+
| timestamp                 | granularity |     value |
+---------------------------+-------------+-----------+
| 2019-05-13T11:25:00+02:00 |       300.0 | 11.075793 |
+---------------------------+-------------+-----------+

But some measurements are getting dropped. as canbe seen in /var/log/ceilometer/ceilometer-agent-notification.log below.

2019-05-13 11:27:31.223 17350 WARNING ceilometer.transformer.conversions [-] Dropping sample with no predecessor: (<name: cpu, volume: 4670000000, resource_id: a8a4973b-6c5c-488c-8c67-bbf273d28a0a, timestamp: 2019-05-13T09:27:30.721642>,)
2019-05-13 11:27:31.243 17350 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecessor: (<name: disk.device.write.bytes, volume: 697786368, resource_id: a8a4973b-6c5c-488c-8c67-bbf273d28a0a-vda, timestamp: 2019-05-13T09:27:30.716622>,)

Contents of nano /var/log/gnocchi/gnocchi-metricd.log are

2019-05-13 12:16:33,771 [29758] ERROR    gnocchi.cli.metricd: Unexpected error during processing job
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gnocchi/cli/metricd.py", line 87, in run
    self._run_job()
  File "/usr/lib/python3/dist-packages/gnocchi/cli/metricd.py", line 248, in _run_job
    self.coord.update_capabilities(self.GROUP_ID, self.store.statistics)
  File "/usr/lib/python3/dist-packages/tooz/coordination.py", line 592, in update_capabilities
    raise tooz.NotImplemented
tooz.NotImplemented

Question:

How to remove the tooz error in gnocchi-metricd.log?

How to remedy the dropping of some measurements from ceilometer?

Any help is much appreciated!

edit retag flag offensive close merge delete

Comments

I might be wrong, but the sample is only dropped by the transformer. The transformer needs more than one sample to compute a derived sample and doesn’t make a calculation. If that’s true, it’s a bit over the top to generate a warning.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-13 06:31:29 -0500 )edit
1

The other error is not related (see timestamps). Gnocchi attempts to call a Tooz function that is not (yet? anymore?) implemented. Is there a version mismatch?

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-13 06:36:33 -0500 )edit
1

The notImplemented error is probably caused by not configuring a coordination driver backend for Tooz (coordination_url key in gnocchi.conf). It’s the backend that implements the update_capabilities method.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-13 06:48:50 -0500 )edit

How can I know if there is a version mismatch of Tooz? I just tried installing the latest version of Tooz but all the requirements were already satisfied.

wahab.icp gravatar imagewahab.icp ( 2019-05-13 06:50:48 -0500 )edit

Yes, I have commented out the coordination_url key in gnocchi.conf because the suggested value was redis://controller:6379and i am not using redis. The coordination_url configuration option is anyways optional as per https://docs.openstack.org/ceilometer/rocky/install/install-base-ubuntu.html (https://docs.openstack.org/ceilometer...)

wahab.icp gravatar imagewahab.icp ( 2019-05-13 06:55:01 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2019-05-16 02:26:27 -0500

ppeereb1 gravatar image

Your probably running into the same bug as we did: https://github.com/gnocchixyz/gnocchi...

edit flag offensive delete link more

Comments

Hello, Thank you for the answer. You are right I think. I have started using redis-server. Have a nice day ahead. :-)

wahab.icp gravatar imagewahab.icp ( 2019-05-16 05:11:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-05-13 05:18:43 -0500

Seen: 121 times

Last updated: May 16