Add post step to Tempest base job

Stage three tempest conf and log files for archival using the
stage-output role.

Depends-on: Id45a50821539985710da7172a9185fd91e803603
Change-Id: Id67dbf3df5af52e848b8d378bc13aaa1c02cdd29
This commit is contained in:
Andrea Frittoli (andreaf) 2017-10-03 18:56:56 +01:00
parent 7d5445dae2
commit 74810553a0
2 changed files with 17 additions and 0 deletions

View File

@ -11,6 +11,7 @@
devstack_services:
tempest: True
run: playbooks/devstack-tempest.yaml
post-run: playbooks/post-tempest.yaml
- project:
name: openstack/tempest

View File

@ -0,0 +1,16 @@
- hosts: all
become: true
vars:
logs_root: "{{ devstack_base_dir|default('/opt/stack') }}"
stage_dir: "{{ devstack_base_dir|default('/opt/stack') }}"
roles:
- role: stage-output
zuul_copy_output:
{ '{{ logs_root }}/tempest/etc/tempest.conf': 'logs',
'{{ logs_root }}/tempest/etc/accounts.yaml': 'logs',
'{{ logs_root }}/tempest/tempest.log': 'logs' }
extensions_to_txt:
- conf
- log
- yaml
- yml