Browse Source

Merge "libvirt: fix formatting of the log_outputs parameter" into stable/wallaby

changes/84/802884/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
fc9cdf4f64
  1. 34
      deployment/logging/files/nova-libvirt.yaml
  2. 34
      deployment/logging/stdout/nova-libvirt.yaml

34
deployment/logging/files/nova-libvirt.yaml

@ -32,19 +32,29 @@ outputs:
description: Extra hieradata needed to log to files in the host.
value:
nova::compute::libvirt::log_outputs:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
str_replace:
template:
'LEVEL:file:/var/log/libvirt/libvirtd.log'
params:
LEVEL:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
nova::compute::libvirt::virtlogd::log_outputs:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtVirtlogdLogLevel}
str_replace:
template:
'LEVEL:file:/var/log/libvirt/virtlogd.log'
params:
LEVEL:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtVirtlogdLogLevel}
volumes:
description: The volumes needed to log to files in the host.
value:

34
deployment/logging/stdout/nova-libvirt.yaml

@ -32,19 +32,29 @@ outputs:
description: Extra hieradata needed to log to stdout.
value:
nova::compute::libvirt::log_outputs:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
nova::compute::libvirt::virtlogd::log_outputs:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtVirtlogdLogLevel}
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL:
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtVirtlogdLogLevel}
docker_config:
description: Extra containers needed for logging to stdout or a sidecar container.
value: null

Loading…
Cancel
Save