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

Kashyap Chamarthy kchamart at redhat.com
Wed Feb 4 13:48:18 UTC 2015


On Wed, Feb 04, 2015 at 10:27:34AM +0000, Daniel P. Berrange wrote:
> 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

Thanks for this detail.

> 
> >     log_outputs="1:file:/var/tmp/libvirtd.log"
> 
> Use  /var/log/libvirt/libvirtd.log instead of /var/tmp

Ah, yeah, it was an incorrect copy/paste.

-- 
/kashyap



More information about the OpenStack-dev mailing list