[libvirt] [PATCH] Don't log an internal error when the guest hasn't updated balloon stats
Nehal J Wani
nehaljw.kkd1 at gmail.com
Wed May 14 10:17:55 UTC 2014
On Wed, May 14, 2014 at 1:19 PM, Ján Tomko <jtomko at redhat.com> wrote:
> 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 | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
ACK
--
Nehal J Wani
More information about the libvir-list
mailing list