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

Kashyap Chamarthy kchamart at redhat.com
Wed Feb 4 10:23:34 UTC 2015


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"
    log_outputs="1:file:/var/tmp/libvirtd.log"
    . . .

(2) Restart libvirtd:

    $ systemctl restart libvirtd

(3) Enable Nova debug logs in /etc/nova/nova.conf:

    . . .  
    verbose = True
    debug = True
    . . .

(4) Restart the Nova service:

    $ openstack-service restart nova

(5) Repeat the offending test.

The libvirtd.log file should have the relevant details.


Other resources
---------------

- http://wiki.libvirt.org/page/DebugLogs
- https://fedoraproject.org/wiki/How_to_debug_Virtualization_problems


-- 
/kashyap



More information about the OpenStack-dev mailing list