and tune server side libvirt logging to the values that danpb
suggested would be useful on the openstack-dev mailing list.
Change-Id: I4b1c780d1dd4d2eecc81fabe42c07cc2a9e0e3f4
| ... | ... |
@@ -650,12 +650,11 @@ function start_nova_compute() {
|
| 650 | 650 |
|
| 651 | 651 |
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then |
| 652 | 652 |
# Enable client side traces for libvirt |
| 653 |
- export LIBVIRT_LOG_FILTERS="1:libvirt" |
|
| 654 |
- export LIBVIRT_LOG_OUTPUTS="1:file:/var/log/libvirt/libvirtd-nova.log" |
|
| 655 |
- |
|
| 653 |
+ local log_filters="1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 1:util" |
|
| 654 |
+ local log_outputs="1:file:/var/log/libvirt/libvirtd.log" |
|
| 656 | 655 |
# Enable server side traces for libvirtd |
| 657 |
- echo "log_filters=\"1:libvirt 1:qemu\"" | sudo tee -a /etc/libvirt/libvirtd.conf |
|
| 658 |
- echo "log_outputs=\"1:file:/var/log/libvirt/libvirtd.log\"" | sudo tee -a /etc/libvirt/libvirtd.conf |
|
| 656 |
+ echo "log_filters=\"$log_filters\"" | sudo tee -a /etc/libvirt/libvirtd.conf |
|
| 657 |
+ echo "log_outputs=\"$log_outputs\"" | sudo tee -a /etc/libvirt/libvirtd.conf |
|
| 659 | 658 |
|
| 660 | 659 |
# The group **$LIBVIRT_GROUP** is added to the current user in this script. |
| 661 | 660 |
# Use 'sg' to execute nova-compute as a member of the **$LIBVIRT_GROUP** group. |