From beb1e8f67a098c7ed3912edbb6db4353abee675f Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Wed, 14 Aug 2019 14:05:30 +0200 Subject: [PATCH] Adds LibvirtLogFilters to define a libvirtd filter LibvirtLogFilters to select a different logging level for a given category log outputs, as specified in https://libvirt.org/logging.html . Default: '1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 3:object 1:util' Conflicts: deployment/nova/nova-libvirt-container-puppet.yaml Removed the conflict, as this file is not present in Rocky release and corresponding changes are done in puppet/services/nova-libvirt.yaml file. Depends-On: Ic48afe856ae60654d6cebf627b12509881933c59 Change-Id: I85b09ddeb61b2f3563f81eb423e8f05b18fe984a Closes-Bug: 1840140 (cherry picked from commit 71516f2816aa9705bbe74533957557269094fd32) (cherry picked from commit 78d16ded1e06b872b1ebda1c0f67ceebf53b665a) --- puppet/services/nova-libvirt.yaml | 7 +++++++ .../notes/nova_libvirtd_log_filters-63e9e6501d779dd9.yaml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 releasenotes/notes/nova_libvirtd_log_filters-63e9e6501d779dd9.yaml diff --git a/puppet/services/nova-libvirt.yaml b/puppet/services/nova-libvirt.yaml index 45f3bac60a..a9c26ee880 100644 --- a/puppet/services/nova-libvirt.yaml +++ b/puppet/services/nova-libvirt.yaml @@ -130,6 +130,12 @@ parameters: description: The password for the libvirt service when TLS is enabled type: string hidden: true + LibvirtLogFilters: + description: Defines a filter to select a different logging level + for a given category log outputs, as specified in + https://libvirt.org/logging.html . + type: string + default: '1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 3:object 1:util' conditions: @@ -218,6 +224,7 @@ outputs: "%{hiera('$NETWORK')}" params: $NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]} + nova::compute::libvirt::log_filters: {get_param: LibvirtLogFilters} rbd_persistent_storage: {get_param: CinderEnableRbdBackend} tripleo.nova_libvirt.firewall_rules: '200 nova_libvirt': diff --git a/releasenotes/notes/nova_libvirtd_log_filters-63e9e6501d779dd9.yaml b/releasenotes/notes/nova_libvirtd_log_filters-63e9e6501d779dd9.yaml new file mode 100644 index 0000000000..27452a3b9d --- /dev/null +++ b/releasenotes/notes/nova_libvirtd_log_filters-63e9e6501d779dd9.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Adds LibvirtLogFilters parameter to define a filter to select + a different logging level for a given category log outputs, as + specified in https://libvirt.org/logging.html . + Default: + '1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 3:object 1:util'