Takashi Kajinami 55b0bfed1c Set logging parameters for virtlogd
Set logging parameters for virtlogd so what we can configure logging
for it in addition to libvirtd.

Depends-on: https://review.opendev.org/#/c/685024
Depends-on: https://review.opendev.org/#/c/685349
Change-Id: If2f8ed617b7dca0d7defb819dcfdddb129c2ea1c
2020-02-25 20:29:09 +09:00

47 lines
1.4 KiB
YAML

heat_template_version: rocky
description: >
OpenStack containerized Nova libvirt service
parameters:
LibvirtLogLevel:
default: 3
description: Defines log level in libvirt to filter log output.
See https://libvirt.org/logging.html to find its detail.
type: number
constraints:
- range: { min: 1, max: 4 }
LibvirtVirtlogdLogLevel:
default: 3
description: Defines log level in virtlogd to filter log output.
See https://libvirt.org/logging.html to find its detail.
type: number
constraints:
- range: { min: 1, max: 4 }
outputs:
config_settings:
description: Extra hieradata needed to log to stdout.
value:
nova::compute::libvirt::log_outputs:
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL: {get_param: LibvirtLogLevel}
nova::compute::libvirt::virtlogd::log_outputs:
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL: {get_param: LibvirtVirtlogdLogLevel}
docker_config:
description: Extra containers needed for logging to stdout or a sidecar container.
value: null
volumes:
description: The volumes needed to log to stdout or a sidecar container.
value: null
host_prep_tasks:
description: Extra ansible tasks needed for logging to stdout or a sidecar container.
value: null