Merge "Set path for tobiko logs in devstack tobiko jobs"

This commit is contained in:
Zuul 2019-09-26 08:44:04 +00:00 committed by Gerrit Code Review
commit aeaa5003a6
5 changed files with 22 additions and 3 deletions

View File

@ -27,3 +27,6 @@
owner: stack
group: stack
become: yes
roles:
- setup_tobiko_logs_dir

View File

@ -0,0 +1,8 @@
Configure tobiko logs directory to be accessible for ``stack`` user.
**Role Variables**
.. zuul:rolevar:: tobiko_logsdir
:default: /opt/stack/tobiko_logs
Name of the directory where Tobiko configs will be stored.

View File

@ -0,0 +1 @@
tobiko_logsdir: "/opt/stack/tobiko_logs"

View File

@ -0,0 +1,8 @@
- name: Ensure logdir exists
become: yes
file:
path: "{{ tobiko_logsdir }}"
state: directory
owner: stack
group: "{{ ansible_user }}"
mode: 0775

View File

@ -24,6 +24,7 @@
# TOBIKO_KEYSTONE_USERNAME: tobiko
# TOBIKO_KEYSTONE_PASSWORD: secret_tobiko
# TOBIKO_KEYSTONE_PROJECT_NAME: tobiko
TOBIKO_LOG_DIR: '{{ devstack_base_dir }}/tobiko_logs'
devstack_plugins:
heat: https://opendev.org/openstack/heat.git
neutron: https://opendev.org/openstack/neutron.git
@ -66,9 +67,7 @@
instances: 20
test_results_stage_name: test_results
zuul_copy_output:
'{{ devstack_base_dir }}/tobiko/etc/tobiko.conf': logs
'{{ devstack_base_dir }}/tobiko/etc/accounts.yaml': logs
'{{ devstack_base_dir }}/tobiko/tobiko.log': logs
'{{ devstack_base_dir }}/tobiko_logs': logs
'{{ stage_dir }}/{{ test_results_stage_name }}.subunit': logs
'{{ stage_dir }}/{{ test_results_stage_name }}.html': logs
'{{ stage_dir }}/stackviz': logs