Common testing content for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zuul 92ec4590c7 Merge "Use copy-links when collecting logs" 2 days ago
ansible-lint Fix usage of "|" for tests 10 months ago
common-tasks Add LXC COPR cache 8 months ago
doc Replace git.openstack.org with opendev.org 1 week ago
releasenotes Replace git.openstack.org with opendev.org 1 week ago
sync/tasks Replace git.openstack.org with opendev.org 1 week ago
tests Replace git.openstack.org with opendev.org 1 week ago
zuul.d OpenDev Migration Patch 1 month ago
.gitignore Add vscode to the gitignore file 7 months ago
.gitreview OpenDev Migration Patch 1 month ago
LICENSE Introduced all the scaffolding for test repo 2 years ago
README.rst Replace git.openstack.org with opendev.org 1 week ago
Vagrantfile Replace git.openstack.org with opendev.org 1 week ago
bindep.txt Replace git.openstack.org with opendev.org 1 week ago
create-grant-db.yml Do not log passwords 1 year ago
destroy_containers.yml Use 'become' for destroy container playbook. 10 months ago
gen-projects-list.sh Replace git.openstack.org with opendev.org 1 week ago
get-ansible-role-requirements.yml Fix clone list for opendev changes 2 weeks ago
iptables-clear.sh Setup iptables-clear.sh 3 years ago
listening-port-report.yml Gather different port status on different hosts 3 months ago
manual-test.rc Update README description of how to use the tests repo 2 years ago
run_tests.sh Replace git.openstack.org with opendev.org 1 week ago
run_tests_common.sh add Gentoo jobs as non-voting 2 months ago
setting-nodepool-variables.yml Simplify nodepool variable gathering 1 year ago
setup.cfg Update mailinglist from dev to discuss 5 months ago
setup.py Updated from global requirements 2 years ago
sync-test-repos.sh Replace git.openstack.org with opendev.org 1 week ago
test-ansible-deps.txt Add pyOpenSSL as an ansible dependancy in role tests 2 months ago
test-ansible-env-prep.sh Ensure that TESTING_BRANCH is exported 1 week ago
test-ansible-functional.sh Remove dependency on EPEL 11 months ago
test-ansible-lint.sh Only execute lint unit tests for the tests repo 1 year ago
test-ansible-role-requirements.yml Replace git.openstack.org with opendev.org 1 week ago
test-ansible-syntax.sh Improve lint test flexibility 1 year ago
test-ansible.cfg Use the config_template module from the dedicated repo 3 months ago
test-bashate.sh Fix bashate xargs run 2 months ago
test-distro_install-vars.yml Merge "Add mistral_install_method for distro installations" 3 months ago
test-install-cinder.yml Remove all MQ vhost/user creation tasks/vars 9 months ago
test-install-etcd.yml Ensure remote_user and become are consistently implemented 10 months ago
test-install-galera.yml Ensure remote_user and become are consistently implemented 10 months ago
test-install-glance.yml Merge "Ensure remote_user and become are consistently implemented" 10 months ago
test-install-gnocchi.yml Ensure remote_user and become are consistently implemented 10 months ago
test-install-haproxy.yml Use local connection and become for localhost plays 10 months ago
test-install-heat.yml Remove all MQ vhost/user creation tasks/vars 9 months ago
test-install-horizon.yml Use local connection and become for localhost plays 10 months ago
test-install-infra.yml use include_tasks instead of include 8 months ago
test-install-ironic.yml Remove all MQ vhost/user creation tasks/vars 9 months ago
test-install-keystone.yml use include_tasks instead of include 8 months ago
test-install-memcached.yml Ensure remote_user and become are consistently implemented 10 months ago
test-install-neutron.yml use include_tasks instead of include 8 months ago
test-install-nova.yml use include_tasks instead of include 8 months ago
test-install-openstack-hosts.yml Remove redundant apt cache update task 10 months ago
test-install-rabbitmq.yml Ensure remote_user and become are consistently implemented 10 months ago
test-install-swift.yml use include_tasks instead of include 8 months ago
test-install-tempest.yml Remove use of 'private' for include_role for ansible 2.8 3 days ago
test-log-collect.sh Use copy-links when collecting logs 3 days ago
test-pep8.sh Implement centralised Ansible test scripts 2 years ago
test-prepare-containers.yml use include_tasks instead of include 8 months ago
test-prepare-host.yml Remove use of 'private' for include_role for ansible 2.8 3 days ago
test-prepare-keys.yml Use local connection and become for localhost plays 10 months ago
test-repo-setup.yml Replace git.openstack.org with opendev.org 1 week ago
test-requirements.txt Update ansible to latest stable 2.6.x 6 months ago
test-setup-cinder-localhost.yml Use local connection and become for localhost plays 10 months ago
test-setup-host.yml use include_tasks instead of include 8 months ago
test-setup-swifthosts.yml Fix usage of "|" for tests 10 months ago
test-vars.yml Clean up placement test vars 6 days ago
tox.ini Replace git.openstack.org with opendev.org 1 week ago

README.rst

Team and repository tags

image

OpenStack-Ansible testing

This is the openstack-ansible-tests repository, providing a framework and consolidation of testing configuration and playbooks. This can be used to integrate new projects, and ensure that code duplication is minimized whilst allowing the addition of new testing scenarios with greater ease.

Role Integration

To enable the openstack-ansible-tests repository, ensure that the tox.ini configuration in the role repository matches the galera_client repository tox.ini with the exception of the value for ROLE_NAME. A more advanced configuration which implements multiple functional test scenarios is available in the neutron role tox.ini.

To override variables you can create a ${rolename}-overrides.yml file inside the role's tests folder. This variable file can be includes in the functional tox target configuration in tox.ini as demonstrated in the following extract:

In your repositories tests/test.yml file, you can call any of the included playbooks, for example:

Network Settings

The networking can be configured and setup using the bridges variable.

The base option, when only 1 interface is required is to specify just a single base - this is only for backwards compatibility with existing test setup and will default to br-mgmt with an IP of 10.1.0.1.

To allow a more complicated network setup we can specify ip_addr: The IP address on the interface. netmask: Netmask of the interface (defaults to 255.255.255.0) name: Name of the interface veth_peer: Set up a veth peer for the interface alias: Add an alias IP address

For example, a Nova setup may look like this:

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-tests/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-tests/

The project home is at:

https://launchpad.net/openstack-ansible

The project bug tracker is located at:

https://bugs.launchpad.net/openstack-ansible