Merge "Enable logging for tempest container"

This commit is contained in:
Zuul 2018-05-21 10:48:40 +00:00 committed by Gerrit Code Review
commit 51f9c5c52e

View File

@ -46,7 +46,29 @@ outputs:
# available on undercloud.
service_name: tempest
docker_config:
volumes: ''
step_2:
tempest_init_logs:
image: &tempest_image {get_param: DockerTempestImage}
privileged: false
user: root
volumes:
- /var/log/containers/tempest:/var/log/tempest
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest']
host_prep_tasks:
- name: create persistent logs directory
file:
path: "{{ item }}"
state: directory
with_items:
- /var/log/containers/tempest
- /var/log/tempest
- name: Tempest logs readme
copy:
dest: /var/log/tempest/readme.txt
content: |
Log files from tempest containers can be found under
/var/log/containers/tempest.
ignore_errors: true
puppet_config:
config_volume: ''
step_config: ''