Enable keystone db sync to log to stdout

This tells the db sync to use stdout instead of a specific log file
when stdout logging is enabled

bp logging-stdout-rsyslog

Depends-On: Id9e8c641a6b00725d2f5c9623b05854a1b4e2af2
Change-Id: I25d15aac6adfab1dfd11d558404930736aace977
This commit is contained in:
Juan Antonio Osorio Robles 2017-10-31 09:15:33 +00:00
parent ea2952d502
commit 543f8463e6
3 changed files with 11 additions and 2 deletions

View File

@ -150,8 +150,10 @@ outputs:
- /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
- ''
environment:
- KOLLA_BOOTSTRAP=True
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
list_concat:
- - KOLLA_BOOTSTRAP=True
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
- {get_attr: [KeystoneLogging, environment]}
command: ['/usr/bin/bootstrap_host_exec', 'keystone', '/usr/local/bin/kolla_start']
keystone:
start_order: 2

View File

@ -27,6 +27,9 @@ outputs:
user: root
command: ['/bin/bash', '-c', 'chown -R keystone:keystone /var/log/keystone']
volumes: *keystone_volumes
environment:
description: Extra environment variables needed for the service to log to files.
value: null
host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host.
value:

View File

@ -51,6 +51,10 @@ outputs:
command: ['/bin/bash', '-c', 'mkdir -p /var/log/keystone && rm -f /var/log/keystone/keystone.log && mkfifo /var/log/keystone/keystone.log && while true; do cat /var/log/keystone/keystone.log; done']
volumes:
- KeystoneLogs:/var/log/
environment:
description: Extra environment variables needed for the service to log to stdout.
value:
- EXTRA_KEYSTONE_MANAGE_ARGS=--log-dir= --log-file=
volumes:
description: The volumes needed to log to stdout or a sidecar container.
value: