]> xenbits.xensource.com Git - libvirt.git/commit
Don't log an internal error when the guest hasn't updated balloon stats
authorJán Tomko <jtomko@redhat.com>
Wed, 14 May 2014 07:35:18 +0000 (09:35 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 22 May 2014 12:41:10 +0000 (14:41 +0200)
commit268101ea90f6d46117c83ef879182b74ff881e59
tree7632e31c8a0ed9355460d181cdf7377d097f107b
parent4dae1edddee29f90881f9b86ec1a1d26b3138910
Don't log an internal error when the guest hasn't updated balloon stats

If virDomainMemoryStats is called too soon after domain startup,
QEMU returns:
"error":{"class":"GenericError","desc":"guest hasn't updated any stats yet"}
when we try to query balloon stats.

Check for this reply and log it as OPERATION_INVALID instead of
INTERNAL_ERROR. This means the daemon only logs it at the debug level,
without polluting system logs.

Reported by Laszlo Pal:
https://www.redhat.com/archives/libvirt-users/2014-May/msg00023.html
src/qemu/qemu_monitor_json.c