Add logging.conf to tempest

Add a configurable logging.conf to the tempest chart.
Sets the default level to WARN as it currently its on INFO and
that results into the log being full of rest_client calls, which
makes it difficult to read the log and the actual tests running

Change-Id: I9deb016a4feee482c01e79a4209c001968b8ea12
This commit is contained in:
Itxaka 2019-04-16 12:11:01 +02:00
parent 9318e0a057
commit 10289c5566
No known key found for this signature in database
GPG Key ID: 0FFB0E56C3539E24
3 changed files with 28 additions and 0 deletions

View File

@ -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 }}

View File

@ -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

View File

@ -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