Allow ceilometer compute agent to access /run/libvirt

Allow ceilometer to access /run/libvirt directory in order to obtain
metrics from libvirt such as the 'cpu' metric. Prior to this change
logging would return:

DEBUG ceilometer.polling.manager [-] Skip loading extension for perf.instructions: Failed to connect socket to '/var/run/libvirt/virtqemud-sock-ro': Permission denied

After this change, polling of libvirt based telemetry is now working and
the 'cpu' metric is now stored in Gnocchi.

Signed-off-by: Leif Madsen <lmadsen@redhat.com>
Change-Id: I51d01f1a61a71159752b4826ddd3510b4641cf8e
This commit is contained in:
Leif Madsen 2022-07-04 13:27:09 -04:00
parent 5fefdf6711
commit 927d08066b
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ outputs:
- {get_attr: [ContainersCommon, volumes]}
- - /var/lib/kolla/config_files/ceilometer_agent_compute.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/ceilometer:/var/lib/kolla/config_files/src:ro
- /run/libvirt:/run/libvirt:ro
- /run/libvirt:/run/libvirt:shared
- /var/log/containers/ceilometer:/var/log/ceilometer:z
environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS