[ovirt-devel] ovirt cannot get vm's memory used info
pengyixiang
yxpengi386 at 163.com
Wed Jul 5 03:07:35 UTC 2017
hi, everyone
I create a linux vm in ovirt, and the cpu usage and network usage works well, but Memory usage is 0 all the time, I investigate it,in _onChannelRead(self)->_handleData(self, data)->
_processMessage(self, line), and in _processMessage , it will set self._agentTimestamp = time.time(). then in getGuestInfo(self), it will judge self.isResponsive()->return time.time() - self._agentTimestamp < 120, but i find self._agentTimestamp always is zero, that's may said _onChannelRead is not be called, then is about _onChannelRead :
def start(self):
self.log.info("Starting connection")
self._prepare_socket()
self._channelListener.register(
self._create,
self._connect,
self._onChannelRead,
self._onChannelTimeout)
it seems server not send data to callback _onChannelRead?
and i see it connect to "/var/lib/libvirt/qemu/channels/2508a611-5cd6-4735-a286-477c3ad75d8b.com.redhat.rhevm.vdsm", and it's succeed.
the server is libvirt? and why it's no response? soft version caused it?
there is some soft info:
root at Node:~/install_script/py/vdsm# dpkg -l | grep "libvirt"
ii libvirt-bin 1.2.9-9+deb8u3 amd64 programs for the libvirt library
ii libvirt-clients 3.0.0-4 amd64 Programs for the libvirt library
ii libvirt-daemon 3.0.0-4 amd64 Virtualization daemon
ii libvirt-daemon-system 3.0.0-4 amd64 Libvirt daemon configuration files
ii libvirt-sanlock 3.0.0-4 amd64 Sanlock plugin for virtlockd
ii libvirt0 3.0.0-4 amd64 library for interfacing with different virtualization systems
ii python-libvirt 3.0.0-2 amd64 libvirt Python bindings
vdsm: 4.20.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170705/84aab4ee/attachment.html>
More information about the Devel
mailing list