Move playbook implementation to a role

* Move direct playbook implementation to a independent role so that the role
is reusable in a different playbooks.
* Add a new scenario which installs openstack allinone without running
tempest tests.

Change-Id: I6f19d2b8128fbb0f2034892a11127bce73d102f9
This commit is contained in:
Martin Kopec 2017-11-16 14:10:22 +00:00
parent 115b0edb76
commit 62ab390d49
4 changed files with 44 additions and 34 deletions

View File

@ -169,29 +169,30 @@ need to go inside those directories to run puppet-lint !
Packstack is integration tested in the OpenStack gate and provides the means to Packstack is integration tested in the OpenStack gate and provides the means to
reproduce these tests on your environment if you wish. reproduce these tests on your environment if you wish.
This is the current matrix of available tests: Scenario000 installs packstack allinone only and doesn't run any tests. This is
the current matrix of available tests:
| - | scenario001 | scenario002 | scenario003 | | - | scenario000 | scenario001 | scenario002 | scenario003 |
|:--------------:|:-----------:|:-----------:|:------------: |:--------------:|:-----------:|:-----------:|:-----------:|:------------:
| keystone | FERNET | UUID | FERNET | | keystone | FERNET | FERNET | UUID | FERNET |
| glance | file | swift | file | | glance | | file | swift | file |
| nova | X | X | X | | nova | X | X | X | X |
| neutron | X | X | X | | neutron | X | X | X | X |
| neutron plugin | ovs | ovs | ovs | | neutron plugin | ovs | ovs | ovs | ovs |
| lbaasv2 | | X | | | lbaasv2 | | | X | |
| vpnaas | | | | | vpnaas | | | | |
| cinder | X | | | | cinder | X | X | | |
| ceilometer | | | X | | ceilometer | X | | | X |
| aodh | | | X | | aodh | X | | | X |
| gnocchi | | | X | | gnocchi | X | | | X |
| panko | | | X | | panko | | | | X |
| heat | | | X | | heat | | | | X |
| swift | | X | | | swift | X | | X | |
| sahara | | X | | | sahara | | | X | |
| trove | | X | | | trove | | | X | |
| horizon | X | | | | horizon | | X | | |
| manila | X | | | | manila | | X | | |
| SSL | X | | | | SSL | | X | | |
To run these tests: To run these tests:

View File

@ -1,13 +1,3 @@
- hosts: all - hosts: all
name: packstack-integration-tempest roles:
tasks: - packstack-integration-tempest
- shell:
cmd: |
set -e
set -x
export SCENARIO='{{ scenario }}'
./run_tests.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace/packstack'
environment: '{{ zuul }}'

View File

@ -0,0 +1,10 @@
- name: packstack-integration-tempest
shell:
cmd: |
set -e
set -x
export SCENARIO='{{ scenario }}'
./run_tests.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace/packstack'
environment: '{{ zuul }}'

9
tests/scenario000.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ $(id -u) != 0 ]; then
SUDO='sudo'
fi
$SUDO packstack ${ADDITIONAL_ARGS} \
--allinone \
--debug \
--default-password="packstack" || export FAILURE=true