ceilometer-compute-agent service can fail to connect to socket and not report metrics

Bug #1850846 reported by Zachary Zehring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceilometer Agent Charm
Expired
Undecided
Unassigned

Bug Description

There appears to be a race condition between libvirt and the ceilometer-agent-compute service. We had an environment where all the agent services were not reporting instance metrics for ceilometer. We found that all the ceilometer-agent-compute services had the following error status:

ceilometer-agent-compute[2706]: libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

Some things of note:
- all /var/log/ceilometer/ceilometer-agent-compute.log files were empty
- the service was in "active (running)"
- ceilometer-agent charm is on latest version
- virsh/libvirtd is on 5.0.0

A ceilometer-agent-compute service restart fixed the issue and enabled instance metric gathering. It may be beneficial to put a check to ensure ceilometer-agent-compute service is not only running but functioning as expected.

description: updated
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Please could you include the bundle (sanitized as needed) and the juju log files (or a crashdump).

Changed in charm-ceilometer-agent:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack ceilometer-agent charm because there has been no activity for 60 days.]

Changed in charm-ceilometer-agent:
status: Incomplete → Expired
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.