masakari-introspectiveinstancemonitor: the code ofmethod checkGuests could not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari-monitors |
New
|
Undecided
|
Unassigned |
Bug Description
In the masakari-
WARNING masakarimonitor
As a result,it can not to detect the vm state,so i modify the file masakari-
def checkGuests(self):
Condition: VM under intrusive monitoring must have QEMU agent client
configured, installed and qemu "guest-
"""
try:
# conn = libvirt.open(None) # LIBVIRT_DEFAULT_URI
conn = libvirt.
ids = conn.listDomain
for domainID in ids:
if domain:
except Exception as e:
pass
After testing with the code , it works well .
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?