ceilometer's compute agent fails to fetch instance_disk and instance_network_interface metrics

asked 2020-03-09 07:30:50 -0500

AB239 gravatar image

Hello all,

I am trying to install and configure ceilometer with Stein release of Openstack. I have a setup with 2 compute (physical hosts) and 1 VM as controller. I have configured Gnocchi and I am able to get the metrics.

Problem: In output of 'gnocchi resource list', I can see all the instance in openstack BUT, I can only see instance_disk and instance_network_interface resource-type from 1 compute node while resources of type 'instance' are visible from both the compute nodes.

To automate and effectively monitor resources, I am banking upon 'original_resource_id' column in the gnoochi resource list so that UUIDs of all the resources spawned with the instance can further be used to get the metrics/measures related to it.

On the compute that only returns instance as resource type, I see following error in /var/log/ceilometer/ceilometer-agent-compute.log

2020-03-09 17:34:29.482 11995 DEBUG ceilometer.agent [-] Config file: {'sources': [{'name': 'some_pollsters', 'interval': 60, 'meters': ['cpu', 'cpu_l3_cache', 'cpu.delta', 'cpu_util', 'memory.usage', 'network.incoming.bytes', 'network.incoming.packets', 'network.outgoing.bytes', 'network.outgoing.packets', 'disk.device.read.requests', 'disk.device.read.requests.rate', 'disk.device.write.requests', 'disk.device.write.requests.rate', 'disk.device.read.bytes', 'disk.device.read.bytes.rate', 'disk.device.write.bytes', 'disk.device.write.bytes.rate', 'disk.device.capacity', 'disk.device.allocation', 'disk.device.usage', 'hardware.cpu.util', 'hardware.cpu.user', 'hardware.cpu.nice', 'hardware.cpu.system', 'hardware.cpu.idle', 'hardware.cpu.wait', 'hardware.cpu.kernel', 'hardware.cpu.interrupt', 'hardware.memory.used', 'hardware.memory.total', 'hardware.memory.buffer', 'hardware.memory.cached', 'hardware.memory.swap.avail', 'hardware.memory.swap.total', 'hardware.system_stats.io.outgoing.blocks', 'hardware.system_stats.io.incoming.blocks', 'hardware.network.ip.incoming.datagrams', 
    2020-03-09 17:34:29.496 11995 ERROR ceilometer.polling.manager 
2020-03-09 17:34:29.501 11995 DEBUG ceilometer.polling.manager [-] Skip pollster disk.device.capacity, no resources found this cycle poll_and_notify /usr/lib/python3/dist-packages/ceilometer/polling/manager.py:172
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager [-] Unable to discover resources: 'libvirtError' object has no attribute 'message': AttributeError: 'libvirtError' object has no attribute 'message'
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager Traceback (most recent call last):
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager   File "/usr/lib/python3/dist-packages/ceilometer/compute/discovery.py", line 143, in discover_libvirt_polling
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager     "http://openstack.org/xmlns/libvirt/nova/1.0")
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager   File "/usr/lib/python3/dist-packages/libvirt.py", line 1567, in metadata
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager     if ret is None: raise libvirtError ('virDomainGetMetadata() failed', dom=self)

2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager libvirt.libvirtError: metadata not found: Requested metadata element is not present
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager 
2020-03-09 17:34:29.503 11995 ERROR ceilometer.polling.manager During handling of the above exception, another exception occurred:
2020-03-09 17:34:29.503 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-03-09 07:48:14 -0500

AB239 gravatar image

I managed to fix it. Use this patch -> https://github.com/openstack/ceilomet...

It worked fine after this.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-03-09 07:30:50 -0500

Seen: 129 times

Last updated: Mar 09