Merge "Fix logic to honor HorizonDebug" into stable/train

This commit is contained in:
Zuul 2021-03-10 02:39:20 +00:00 committed by Gerrit Code Review
commit 4c7a7ea910
1 changed files with 14 additions and 10 deletions

View File

@ -44,7 +44,7 @@ parameters:
description: Set to True to enable debugging on all services. description: Set to True to enable debugging on all services.
type: boolean type: boolean
HorizonDebug: HorizonDebug:
default: false default: ''
description: Set to True to enable debugging Horizon service. description: Set to True to enable debugging Horizon service.
type: string type: string
constraints: constraints:
@ -136,17 +136,21 @@ parameters:
file: /var/log/containers/horizon/horizon.log file: /var/log/containers/horizon/horizon.log
conditions: conditions:
debug_unset: {equals : [{get_param: Debug}, '']} service_debug_unset: {equals : [{get_param: HorizonDebug}, '']}
websso_enabled: {equals : [{get_param: WebSSOEnable}, True]} websso_enabled: {equals : [{get_param: WebSSOEnable}, True]}
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
horizon_logger_debug: horizon_logger_debug:
or: or:
- yaql: - and:
expression: $.data.horizon_debug.matches("true|True|TRUE") - service_debug_unset
data: - get_param: Debug
horizon_debug: - and:
get_param: HorizonDebug - not: service_debug_unset
- get_param: Debug - yaql:
expression: $.data.horizon_debug.matches("true|True|TRUE")
data:
horizon_debug:
get_param: HorizonDebug
resources: resources:
@ -219,9 +223,9 @@ outputs:
- {} - {}
- -
if: if:
- debug_unset - service_debug_unset
- horizon::django_debug: { get_param: HorizonDebug }
- horizon::django_debug: { get_param: Debug } - horizon::django_debug: { get_param: Debug }
- horizon::django_debug: { get_param: HorizonDebug }
- if: - if:
- horizon_logger_debug - horizon_logger_debug
- horizon::log_level: 'DEBUG' - horizon::log_level: 'DEBUG'