Browse Source

Merge "Enable debug logging of libvirt services when Debug is true"

changes/88/782288/2
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
243e8e0a43
3 changed files with 49 additions and 20 deletions
  1. +20
    -10
      deployment/logging/files/nova-libvirt.yaml
  2. +20
    -10
      deployment/logging/stdout/nova-libvirt.yaml
  3. +9
    -0
      releasenotes/notes/libvirt-debug-0bf95db421329ff6.yaml

+ 20
- 10
deployment/logging/files/nova-libvirt.yaml View File

@ -4,6 +4,14 @@ description: >
OpenStack containerized Nova libvirt service
parameters:
Debug:
type: boolean
default: false
description: Set to True to enable debugging on all services.
LibvirtDebug:
type: boolean
default: false
description: Set to True to enable debugging libvirt services.
LibvirtLogLevel:
default: 3
description: Defines log level in libvirt to filter log output.
@ -24,17 +32,19 @@ outputs:
description: Extra hieradata needed to log to files in the host.
value:
nova::compute::libvirt::log_outputs:
str_replace:
template:
'LEVEL:file:/var/log/libvirt/libvirtd.log'
params:
LEVEL: {get_param: LibvirtLogLevel}
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
nova::compute::libvirt::virtlogd::log_outputs:
str_replace:
template:
'LEVEL:file:/var/log/libvirt/virtlogd.log'
params:
LEVEL: {get_param: LibvirtVirtlogdLogLevel}
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:


+ 20
- 10
deployment/logging/stdout/nova-libvirt.yaml View File

@ -4,6 +4,14 @@ description: >
OpenStack containerized Nova libvirt service
parameters:
Debug:
type: boolean
default: false
description: Set to True to enable debugging on all services.
LibvirtDebug:
type: boolean
default: false
description: Set to True to enable debugging libvirt services.
LibvirtLogLevel:
default: 3
description: Defines log level in libvirt to filter log output.
@ -24,17 +32,19 @@ outputs:
description: Extra hieradata needed to log to stdout.
value:
nova::compute::libvirt::log_outputs:
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL: {get_param: LibvirtLogLevel}
if:
- or:
- {get_param: Debug }
- {get_param: LibvirtDebug }
- 1
- {get_param: LibvirtLogLevel}
nova::compute::libvirt::virtlogd::log_outputs:
str_replace:
template:
'LEVEL:stderr'
params:
LEVEL: {get_param: LibvirtVirtlogdLogLevel}
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


+ 9
- 0
releasenotes/notes/libvirt-debug-0bf95db421329ff6.yaml View File

@ -0,0 +1,9 @@
---
features:
- |
The ``LibvirtDebug`` parameter has been added to enable or disable debug
logging of libvirtd and virtlogd.
- |
Now the debug logging of libvirtd and virtlogd is enabled automatically
when the Debug parameter is true.

Loading…
Cancel
Save