Merge "Add logging.conf to tempest"

This commit is contained in:
Zuul 2019-04-18 06:15:09 +00:00 committed by Gerrit Code Review
commit 21668ddddf
3 changed files with 28 additions and 0 deletions

@ -45,6 +45,7 @@ metadata:
type: Opaque type: Opaque
data: data:
tempest.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.tempest | b64enc }} tempest.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.tempest | b64enc }}
logging.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.tempest_logging | b64enc }}
{{ if not (empty .Values.conf.blacklist) }} {{ if not (empty .Values.conf.blacklist) }}
test-blacklist: {{ include "tempest.utils.to_regex_file" .Values.conf.blacklist | b64enc }} test-blacklist: {{ include "tempest.utils.to_regex_file" .Values.conf.blacklist | b64enc }}
{{ end }} {{ end }}

@ -73,6 +73,10 @@ spec:
mountPath: /etc/tempest/tempest.conf mountPath: /etc/tempest/tempest.conf
subPath: tempest.conf subPath: tempest.conf
readOnly: true readOnly: true
- name: tempest-etc
mountPath: /etc/tempest/logging.conf
subPath: logging.conf
readOnly: true
{{ if not (empty .Values.conf.blacklist) }} {{ if not (empty .Values.conf.blacklist) }}
- name: tempest-etc - name: tempest-etc
mountPath: /etc/tempest/test-blacklist mountPath: /etc/tempest/test-blacklist

@ -212,6 +212,29 @@ conf:
cleanup: cleanup:
force: false force: false
enabled: true enabled: true
tempest_logging:
loggers:
keys: root, tempest
handlers:
keys: stdout
formatters:
keys: tests
logger_root:
level: DEBUG
handlers: stdout
logger_tempest:
level: WARN
propagate: 0
handlers: stdout
qualname: tempest
handler_stdout:
class: StreamHandler
level: WARN
args: (sys.stdout,)
formatter: tests
formatter_tests:
class: oslo_log.formatters.ContextFormatter
pvc: pvc:
enabled: true enabled: true