ExtensionLoadError when libvirtd is not present

Bug #1709528 reported by Gautam Prasad
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
Unassigned

Bug Description

Different platforms might not have libvirt installed. So, when libvirtd is not present, the following error is thrown in Ceilometer polling log. And it gets thrown for lot of extensions which are probably relying on libvirt.

2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager Traceback (most recent call last):
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 186, in _load_plugins
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager verify_requirements,
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 218, in _load_one_plugin
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager obj = plugin(*invoke_args, **invoke_kwds)
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/site-packages/ceilometer/agent/plugin_base.py", line 169, in __init__
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager raise ExtensionLoadError(err)
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager ExtensionLoadError: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
2017-08-07 09:42:35.159 57632 ERROR ceilometer.agent.manager
2017-08-07 09:42:35.167 57632 ERROR ceilometer.agent.manager [-] Skip loading extension for disk.write.requests.rate: ExtensionLoadError: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

ls -lrt /var/run/libvirt/libvirt-sock-ro
ls: cannot access /var/run/libvirt/libvirt-sock-ro: No such file or directory

Ceilometer version
openstack-ceilometer-polling-8.0.0

Revision history for this message
gordon chung (chungg) wrote :

so you are using libvirt driver or another driver?

Revision history for this message
Gautam Prasad (gautpras) wrote :

We are not using libvirt driver, its powervm driver.

One solution is to comment these entries in entry_points.txt, but then we need to keep updating that file every now and then.

I think these are mostly noise in the logs for this platform, since anyways they will not be used. So they can be ignored.. ?

Revision history for this message
gordon chung (chungg) wrote :

what is your hypervisor_inspector value in your conf file? this seems strange but i don't think it should be looking at libvirt based on my quick look at code.

Changed in ceilometer:
status: New → Incomplete
Revision history for this message
Gautam Prasad (gautpras) wrote :

Thanks. It was not set in ceilometer.conf so libvirt was being used as default.

Changed in ceilometer:
status: Incomplete → Invalid
Revision history for this message
gordon chung (chungg) wrote :

:) thanks for confirming

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.