[openstack-dev] [nova][libvirt] Logging interactions of libvirt + QEMU in Nova

Daniel P. Berrange berrange at redhat.com
Wed Feb 4 10:27:34 UTC 2015


On Wed, Feb 04, 2015 at 11:23:34AM +0100, Kashyap Chamarthy wrote:
> Heya,
> 
> I noticed a ping (but couldn't respond in time) on #openstack-nova IRC
> about turning on logging in libvirt to capture Nova failures.
> 
> This was discussed on this list previously by Daniel Berrange, just
> spelling it out here for reference and completness' sake.
> 
> 
> (1) To see the interactions between libvirt and QEMU, in
>     /etc/libvirt/libvirtd.conf, have these two config attributes:
> 
>     . . .
>     log_filters="1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 1:util"

You really want  "3:object" in there /before/  1:util too otherwise you'll
be spammed with object ref/unref messages

>     log_outputs="1:file:/var/tmp/libvirtd.log"

Use  /var/log/libvirt/libvirtd.log instead of /var/tmp

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



More information about the OpenStack-dev mailing list