Comment 1 for bug 2046532

Revision history for this message
Alexey 'Fenuks' Rusetsky (fenuks-uh) wrote :

I can confirm that this code works. LIBVIRT_DEFAULT_URI is only set through /etc/profile, so not available to systemd services.

Also this code does not appear to change anything through libvirt, so should also work in readonly mode:

conn = libvirt.openReadOnly(CONF.libvirt.connection_uri)

readOnly socket is world readable on debian/ubuntu and does not require masakari user to be in libvirt group.

Think we can set https://bugs.launchpad.net/masakari-monitors/+bug/1844603 and https://bugs.launchpad.net/masakari-monitors/+bug/1844295 as duplicates of this report?