Set path for tobiko logs in devstack tobiko jobs
Tobiko should now log its output to '{{ ansible_user_dir }}' directory thus it will be fetched by Zuul after job ends and we will be able to check tobiko logs after every CI job run in Zuul. Change-Id: I2f6e0edd2878e5a7ffd9697a3eaeea61a4c03674
This commit is contained in:
parent
6a03ba5f58
commit
a47f22d608
@ -27,3 +27,6 @@
|
||||
owner: stack
|
||||
group: stack
|
||||
become: yes
|
||||
|
||||
roles:
|
||||
- setup_tobiko_logs_dir
|
||||
|
8
roles/setup_tobiko_logs_dir/README.rst
Normal file
8
roles/setup_tobiko_logs_dir/README.rst
Normal 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.
|
1
roles/setup_tobiko_logs_dir/defaults/main.yml
Normal file
1
roles/setup_tobiko_logs_dir/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
||||
tobiko_logsdir: "/opt/stack/tobiko_logs"
|
8
roles/setup_tobiko_logs_dir/tasks/main.yml
Normal file
8
roles/setup_tobiko_logs_dir/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
- name: Ensure logdir exists
|
||||
become: yes
|
||||
file:
|
||||
path: "{{ tobiko_logsdir }}"
|
||||
state: directory
|
||||
owner: stack
|
||||
group: "{{ ansible_user }}"
|
||||
mode: 0775
|
@ -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
|
||||
@ -70,9 +71,7 @@
|
||||
min_compute_nodes: "{{ groups['compute'] | default(['controller']) | length }}"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user