Merge "Enable debug logging of libvirt services when Debug is true"
This commit is contained in:
commit
243e8e0a43
deployment/logging
releasenotes/notes
@ -4,6 +4,14 @@ description: >
|
|||||||
OpenStack containerized Nova libvirt service
|
OpenStack containerized Nova libvirt service
|
||||||
|
|
||||||
parameters:
|
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:
|
LibvirtLogLevel:
|
||||||
default: 3
|
default: 3
|
||||||
description: Defines log level in libvirt to filter log output.
|
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.
|
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:
|
if:
|
||||||
template:
|
- or:
|
||||||
'LEVEL:file:/var/log/libvirt/libvirtd.log'
|
- {get_param: Debug }
|
||||||
params:
|
- {get_param: LibvirtDebug }
|
||||||
LEVEL: {get_param: LibvirtLogLevel}
|
- 1
|
||||||
|
- {get_param: LibvirtLogLevel}
|
||||||
nova::compute::libvirt::virtlogd::log_outputs:
|
nova::compute::libvirt::virtlogd::log_outputs:
|
||||||
str_replace:
|
if:
|
||||||
template:
|
- or:
|
||||||
'LEVEL:file:/var/log/libvirt/virtlogd.log'
|
- {get_param: Debug }
|
||||||
params:
|
- {get_param: LibvirtDebug }
|
||||||
LEVEL: {get_param: LibvirtVirtlogdLogLevel}
|
- 1
|
||||||
|
- {get_param: LibvirtVirtlogdLogLevel}
|
||||||
volumes:
|
volumes:
|
||||||
description: The volumes needed to log to files in the host.
|
description: The volumes needed to log to files in the host.
|
||||||
value:
|
value:
|
||||||
|
@ -4,6 +4,14 @@ description: >
|
|||||||
OpenStack containerized Nova libvirt service
|
OpenStack containerized Nova libvirt service
|
||||||
|
|
||||||
parameters:
|
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:
|
LibvirtLogLevel:
|
||||||
default: 3
|
default: 3
|
||||||
description: Defines log level in libvirt to filter log output.
|
description: Defines log level in libvirt to filter log output.
|
||||||
@ -24,17 +32,19 @@ 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:
|
if:
|
||||||
template:
|
- or:
|
||||||
'LEVEL:stderr'
|
- {get_param: Debug }
|
||||||
params:
|
- {get_param: LibvirtDebug }
|
||||||
LEVEL: {get_param: LibvirtLogLevel}
|
- 1
|
||||||
|
- {get_param: LibvirtLogLevel}
|
||||||
nova::compute::libvirt::virtlogd::log_outputs:
|
nova::compute::libvirt::virtlogd::log_outputs:
|
||||||
str_replace:
|
if:
|
||||||
template:
|
- or:
|
||||||
'LEVEL:stderr'
|
- {get_param: Debug }
|
||||||
params:
|
- {get_param: LibvirtDebug }
|
||||||
LEVEL: {get_param: LibvirtVirtlogdLogLevel}
|
- 1
|
||||||
|
- {get_param: LibvirtVirtlogdLogLevel}
|
||||||
docker_config:
|
docker_config:
|
||||||
description: Extra containers needed for logging to stdout or a sidecar container.
|
description: Extra containers needed for logging to stdout or a sidecar container.
|
||||||
value: null
|
value: null
|
||||||
|
9
releasenotes/notes/libvirt-debug-0bf95db421329ff6.yaml
Normal file
9
releasenotes/notes/libvirt-debug-0bf95db421329ff6.yaml
Normal 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…
x
Reference in New Issue
Block a user