libvirt: fix formatting of the log_outputs parameter
Change 3f2e063c78
updated format of
the log_outputs parameter unpexpectedly, and because of that change
libvirt no longer generate its log file by default.
This change fixes the parameter format so that libvirt records logs
as expected.
Closes-Bug: #1929264
Change-Id: Ic92584431e0bf38bf4ae2a2479aa7999b343ae33
This commit is contained in:
parent
fe2373225f
commit
65ddeed5f4
|
@ -32,6 +32,11 @@ outputs:
|
||||||
description: Extra hieradata needed to log to files in the host.
|
description: Extra hieradata needed to log to files in the host.
|
||||||
value:
|
value:
|
||||||
nova::compute::libvirt::log_outputs:
|
nova::compute::libvirt::log_outputs:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
'LEVEL:file:/var/log/libvirt/libvirtd.log'
|
||||||
|
params:
|
||||||
|
LEVEL:
|
||||||
if:
|
if:
|
||||||
- or:
|
- or:
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
|
@ -39,6 +44,11 @@ outputs:
|
||||||
- 1
|
- 1
|
||||||
- {get_param: LibvirtLogLevel}
|
- {get_param: LibvirtLogLevel}
|
||||||
nova::compute::libvirt::virtlogd::log_outputs:
|
nova::compute::libvirt::virtlogd::log_outputs:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
'LEVEL:file:/var/log/libvirt/virtlogd.log'
|
||||||
|
params:
|
||||||
|
LEVEL:
|
||||||
if:
|
if:
|
||||||
- or:
|
- or:
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
|
|
|
@ -32,6 +32,11 @@ outputs:
|
||||||
description: Extra hieradata needed to log to stdout.
|
description: Extra hieradata needed to log to stdout.
|
||||||
value:
|
value:
|
||||||
nova::compute::libvirt::log_outputs:
|
nova::compute::libvirt::log_outputs:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
'LEVEL:stderr'
|
||||||
|
params:
|
||||||
|
LEVEL:
|
||||||
if:
|
if:
|
||||||
- or:
|
- or:
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
|
@ -39,6 +44,11 @@ outputs:
|
||||||
- 1
|
- 1
|
||||||
- {get_param: LibvirtLogLevel}
|
- {get_param: LibvirtLogLevel}
|
||||||
nova::compute::libvirt::virtlogd::log_outputs:
|
nova::compute::libvirt::virtlogd::log_outputs:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
'LEVEL:stderr'
|
||||||
|
params:
|
||||||
|
LEVEL:
|
||||||
if:
|
if:
|
||||||
- or:
|
- or:
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
|
|
Loading…
Reference in New Issue