Ceilometer-agent-compute could be started on compute nodes before libvirt populated the corresponding directories under /var/run/libvirt which will cause ceilometer to fail to collect virt mertrics. I observe this behavior on a recent OSP16.2 deployment where ceilometer fails to collect virt metrics for instances. Error that I see in ceilometer compute log file: 2022-05-29 16:59:40.289 15 DEBUG ceilometer.compute.virt.libvirt.utils [-] Connecting to libvirt: qemu:///system new_libvirt_connection /usr/lib/python3.6/site-packages/ceilometer/compute/virt/libvirt/utils.py:87 2022-05-29 16:59:40.290 15 DEBUG ceilometer.polling.manager [-] Skip loading extension for perf.cache.misses: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': Permission denied _catch_extension_load_error /usr/lib/python3.6/sit Restarting ceilometer_agent_compute container solves the problem. python3-ceilometer-13.1.3-2.20210802103828.20756c9.el8ost.noarch openstack-ceilometer-common-13.1.3-2.20210802103828.20756c9.el8ost.noarch openstack-ceilometer-polling-13.1.3-2.20210802103828.20756c9.el8ost.noarch openstack-ceilometer-compute-13.1.3-2.20210802103828.20756c9.el8ost.noarch
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/845160 https://review.opendev.org/c/openstack/tripleo-ansible/+/839295
[Unit] Description=ceilometer_agent_compute container After=paunch-container-shutdown.service Wants=tripleo_nova_libvirt.service After=tripleo_nova_libvirt.service No permission denied errors.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.4), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8794