44a6513e5f
This patch collect the tempest.conf, accounts.yaml and the tempest.log files. In order to make it work here's what had to be changed: * General refactor of the jobs * Devstack jobs, inherited from devstack, and these files are on logs/ since it's the only place we can specify files to be according zuul documentation. You could add a tempest directory in logs but we would have to overwrite a lot of code just for it, since we are inherit the tempest run playbook from tempest project. * Packstack jobs are inherited from packstack, and they have a different way to upload logs, and they don't run tempest, so we had to implement our own upload logs and overwrite the packstack one. Basically a copy and paste, plus the generation of tempest directory in /tmp/logs and copying the files to that directory. * Instead of use the copy module from ansible, we are using the command module doing a sudo cp file because the copy module was failing with file not found, even though the file was there. A bug was opened against ansible at https://github.com/ansible/ansible/issues/42198 * Removing local py35 job since we are inherit it from upstream already Task: 22669 Story: 2002785 Change-Id: I04b0700955325fac543fb8410da5099872e9c7db
121 lines
3.7 KiB
YAML
121 lines
3.7 KiB
YAML
- project:
|
|
check:
|
|
jobs:
|
|
- python-tempestconf-tox-cover
|
|
- python-tempestconf-tempest-devstack-admin
|
|
- python-tempestconf-tempest-devstack-demo
|
|
- python-tempestconf-tempest-packstack-admin
|
|
- python-tempestconf-tempest-packstack-demo
|
|
- tripleo-ci-centos-7-containers-multinode
|
|
gate:
|
|
jobs:
|
|
- python-tempestconf-tempest-devstack-admin
|
|
- python-tempestconf-tempest-devstack-demo
|
|
- python-tempestconf-tempest-packstack-admin
|
|
- python-tempestconf-tempest-packstack-demo
|
|
- tripleo-ci-centos-7-containers-multinode
|
|
|
|
- job:
|
|
name: python-tempestconf-tox-cover
|
|
parent: openstack-tox
|
|
description: Run tox code coverage tests.
|
|
irrelevant-files:
|
|
- ^.*\.rst$
|
|
- ^doc/.*$
|
|
- ^releasenotes/.*$
|
|
vars:
|
|
tox_envlist: cover
|
|
|
|
- job:
|
|
name: python-tempestconf-devstack-base
|
|
parent: devstack
|
|
description: Base job for python-tempestconf on a devstack environment
|
|
required-projects:
|
|
- openstack/python-tempestconf
|
|
- openstack/tempest
|
|
- openstack-dev/devstack
|
|
roles:
|
|
- zuul: openstack/python-tempestconf
|
|
- zuul: openstack/tempest
|
|
- zuul: openstack-dev/devstack
|
|
vars:
|
|
zuul_copy_output:
|
|
'{{ devstack_base_dir }}/tempest/tempest.log': 'logs'
|
|
'{{ devstack_base_dir }}/tempest/etc/tempest.conf': 'logs'
|
|
'/etc/openstack/accounts.yaml': 'logs'
|
|
irrelevant-files:
|
|
- config_tempest/tests/.*$
|
|
- ^doc/.*$
|
|
- ^releasenotes/.*$
|
|
- ^.*\.rst$
|
|
|
|
- job:
|
|
name: python-tempestconf-packstack-base
|
|
parent: packstack-allinone
|
|
description: Base job for python-tempestconf on packstack environment
|
|
required-projects:
|
|
- openstack/packstack
|
|
- openstack/python-tempestconf
|
|
- openstack/tempest
|
|
- openstack-dev/devstack
|
|
post-run: playbooks/upload-logs.yaml
|
|
roles:
|
|
- zuul: openstack/packstack
|
|
- zuul: openstack/python-tempestconf
|
|
- zuul: openstack/tempest
|
|
- zuul: openstack-dev/devstack
|
|
vars:
|
|
scenario: scenario000
|
|
zuul_copy_output:
|
|
'/opt/stack/tempest/etc/tempest.conf': 'logs'
|
|
'/opt/stack/tempest/tempest.log': 'logs'
|
|
'/etc/openstack/accounts.yaml': 'logs'
|
|
irrelevant-files:
|
|
- config_tempest/tests/.*$
|
|
- ^doc/.*$
|
|
- ^releasenotes/.*$
|
|
- ^.*\.rst$
|
|
|
|
- job:
|
|
name: python-tempestconf-tempest-devstack-admin
|
|
parent: python-tempestconf-devstack-base
|
|
description: |
|
|
Tempest job for python-tempestconf on a devstack environment as the admin user.
|
|
run: playbooks/python-tempestconf-tempest-devstack.yaml
|
|
vars:
|
|
user: admin
|
|
cloud_user: devstack-admin
|
|
|
|
- job:
|
|
name: python-tempestconf-tempest-devstack-demo
|
|
parent: python-tempestconf-devstack-base
|
|
description: |
|
|
Tempest job for python-tempestconf on a devstack environment as the demo user.
|
|
run: playbooks/python-tempestconf-tempest-devstack.yaml
|
|
vars:
|
|
user: demo
|
|
cloud_user: devstack
|
|
test_demo: True
|
|
cloud_admin: devstack-admin
|
|
|
|
- job:
|
|
name: python-tempestconf-tempest-packstack-admin
|
|
parent: python-tempestconf-packstack-base
|
|
description: |
|
|
Tempest job for python-tempestconf on a packstack environment as the admin user.
|
|
run: playbooks/python-tempestconf-tempest-packstack.yaml
|
|
vars:
|
|
user: admin
|
|
|
|
- job:
|
|
name: python-tempestconf-tempest-packstack-demo
|
|
parent: python-tempestconf-packstack-base
|
|
description: |
|
|
Tempest job for python-tempestconf on a packstack environment as the demo user.
|
|
run: playbooks/python-tempestconf-tempest-packstack.yaml
|
|
vars:
|
|
user: demo
|
|
test_demo: True
|
|
cloud_admin: packstack-admin
|
|
|