Merge "Set path for tobiko logs in devstack tobiko jobs"
This commit is contained in:
commit
aeaa5003a6
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user