Hi!
Recently I had a situation where single node oVirt setup was without network connection to
shared storage.
After shared storage got reconnected, everything got up as it was supposed to, but I
can't get information from guest agents shown in ovirt Dashboard.
I tried restarting ovirt-engine and then 2 vm-s started sending info from guest-agent, but
rest of them not. Guest agent is running on those vm-s. I also tried restarting those
vm-s.
Hosted engine is up and healty, and ovirt-engine service is running and it looks ok also.
I have this error in vdsm.log
2022-08-25 10:41:39,913+0200 INFO (periodic/1) [vdsm.api] FINISH repoStats
return={'dff59a93-4dca-40cd-9c44-c0a74ebaa656': {'code': 0,
'lastCheck': '2.2', 'delay': '0.000840686',
'valid': True, 'version': 5, 'acquired': True, 'actual':
True}, '30c0c9e4-b634-4a05-b921-7a30b69f6dd2': {'code': 0,
'lastCheck': '3.9', 'delay': '0.000830941',
'valid': True, 'version': 5, 'acquired': True, 'actual':
True}, '6cb12d96-3a0a-4902-acb0-deb907ef945c': {'code': 0,
'lastCheck': '5.5', 'delay': '0.000857244',
'valid': True, 'version': 5, 'acquired': True, 'actual':
True}, '559569b9-c33e-4fb0-be6a-51a178a228a9': {'code': 0,
'lastCheck': '5.3', 'delay': '0.000463871',
'valid': True, 'version': 5, 'acquired': True, 'actual':
True}} from=internal, task_id=8c638713-f010-4692-ba0b-1ac94052fe7c (api:54)
2022-08-25 10:41:40,778+0200 ERROR (qgapoller/2) [virt.periodic.Operation] <bound
method QemuGuestAgentPoller._poller of <vdsm.virt.qemuguestagent.QemuGuestAgentPoller
object at 0x7f9efc08e6d8>> operation failed (periodic:204)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/vdsm/virt/periodic.py", line 202, in
__call__
self._func()
File "/usr/lib/python3.6/site-packages/vdsm/virt/qemuguestagent.py", line 493,
in _poller
vm_id, self._qga_call_get_vcpus(vm_obj))
File "/usr/lib/python3.6/site-packages/vdsm/virt/qemuguestagent.py", line 814,
in _qga_call_get_vcpus
if 'online' in vcpus:
TypeError: argument of type 'NoneType' is not iterable
2022-08-25 10:41:41,551+0200 INFO (jsonrpc/2) [api.virt] START getStats() from=::1,50396,
vmId=a6e745c4-2e4e-4672-8625-08b787832020 (api:48)
Show replies by date
One more test I did..
I tried to connect to oVirt node and i ran this command:
qemu-agent-command testvm
'{"execute":"guest-network-get-interfaces"}'
and I got this back:
{"return":[{"name":"Ethernet Instance
0","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.110.110","prefix":24}],"statistics":{"tx-packets":341700,"tx-errs":0,"rx-bytes":91548867,"rx-dropped":0,"rx-packets":363311,"rx-errs":0,"tx-bytes":661674577,"tx-dropped":0},"hardware-address":"56:6f:75:52:00:06"},{"name":"Loopback
Pseudo-Interface
1","ip-addresses":[{"ip-address-type":"ipv6","ip-address":"::1","prefix":128},{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":8}],"statistics":{"tx-packets":0,"tx-errs":0,"rx-bytes":0,"rx-dropped":0,"rx-packets":0,"rx-errs":0,"tx-bytes":0,"tx-dropped":0}}]}
So I guess node can successfully get status from agent?
Also, I tried restarting vdsmd and ovirt-engine one more time, 2vms are now showing info
from guest agent on Dashboard, but others no.. Also HostedEngine stopped showing info now
also.