Common testing content for OpenStack-Ansible
Go to file
Jean-Philippe Evrard ed5ec313bf Do not build cryptography for tests
Depends-On: https://review.openstack.org/#/c/574181/
Change-Id: I1e43cc2d47ffc13dd5fde1dec5e68920489ec4f6
2018-07-02 12:34:13 +00:00
ansible-lint Add a rule to prevent passwords to be logged 2018-04-11 14:48:19 +00:00
common-tasks common-tasks: test-set-nodepool-vars: Populate fact for EPEL mirror 2018-06-12 21:45:39 +01:00
doc Updated from global requirements 2018-03-15 07:42:10 +00:00
network_interfaces Disable offloading in test by default 2017-11-30 13:37:13 +00:00
releasenotes Remove setting of version/release from releasenotes 2017-11-17 08:13:01 +01:00
tests Update to use oslo.messaging services for RPC and Notify 2018-04-30 16:35:22 -04:00
zuul.d Merge "common-tasks: test-set-nodepool-vars: Populate fact for EPEL mirror" 2018-06-13 09:09:55 +00:00
.gitignore Have run_tests clone the test repo 2018-03-26 18:18:05 +01:00
.gitreview Introduced all the scaffolding for test repo 2016-08-12 14:50:07 +00:00
LICENSE Introduced all the scaffolding for test repo 2016-08-12 14:50:07 +00:00
README.rst Update links in README 2018-03-03 12:25:23 +08:00
Vagrantfile Merge "Vagrantfile: Add workaround for Virtualbox bug on guest audio config" 2018-06-06 00:35:04 +00:00
bindep.txt bindep.txt: Consolidate some RPM depdendencies 2017-12-05 17:50:02 +00:00
create-grant-db.yml Do not log passwords 2018-04-11 13:49:00 +02:00
destroy_containers.yml Remove the serialization in tests 2017-12-12 17:52:01 -06:00
ensure-oslomsg.yml Update to use oslo.messaging services for RPC and Notify 2018-04-30 16:35:22 -04:00
ensure-rabbitmq.yml Do not log passwords 2018-04-11 13:58:50 +02:00
gen-projects-list.sh Add new 'ansible-role-*' roles to proposal bot sync 2018-03-28 07:44:21 +00:00
get-ansible-role-requirements.yml get-ansible-role-requiremnets: Use refspec to try Gerrit changes 2018-06-07 12:35:04 +00:00
iptables-clear.sh Setup iptables-clear.sh 2016-05-26 11:33:41 +01:00
manual-test.rc Update README description of how to use the tests repo 2016-09-28 13:23:01 +01:00
run_tests.sh Add support for testing on Gentoo. 2018-04-24 11:35:56 -05:00
run_tests_common.sh Remove dependency on EPEL 2018-06-07 13:59:05 -04:00
setting-nodepool-variables.yml Simplify nodepool variable gathering 2018-03-08 15:36:06 -06:00
setup.cfg Update URL home-page in documents according to document migration 2017-07-14 03:21:10 +00:00
setup.py Updated from global requirements 2017-03-02 11:52:36 +00:00
sync-test-repos.sh sync-test-repos.sh: Add Zuul environment support for synchronizing files 2017-06-18 13:45:30 +00:00
test-ansible-deps.txt Update ansible to 2.5.4 2018-06-02 18:58:08 -05:00
test-ansible-env-prep.sh Use upper constraints when installing ARA 2018-05-29 10:32:09 +01:00
test-ansible-functional.sh Remove dependency on EPEL 2018-06-07 13:59:05 -04:00
test-ansible-lint.sh Only execute lint unit tests for the tests repo 2018-03-12 15:08:51 +00:00
test-ansible-role-requirements.yml Add openstack_openrc role to common test requirements 2018-05-15 16:28:22 +01:00
test-ansible-syntax.sh Improve lint test flexibility 2017-11-17 15:38:43 +00:00
test-ansible.cfg Skip ansible-lint test against roles 2017-12-19 11:14:18 +00:00
test-bashate.sh Implement centralised Ansible test scripts 2016-10-05 09:56:12 +01:00
test-create-previous-venv.sh Point to Queens as previous branch 2018-02-14 17:32:51 +00:00
test-distro_install-vars.yml test-distro_install-vars: Add new var file for distro installations 2018-06-08 16:45:46 +01:00
test-install-cinder.yml Move database creation into role (cinder) 2018-06-01 14:44:03 +01:00
test-install-etcd.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-galera.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-glance.yml Only setup rabbitmq when the inventory group is present 2018-05-30 13:17:27 +01:00
test-install-gnocchi.yml Move database creation into role (gnocchi) 2018-06-01 15:02:55 +01:00
test-install-haproxy.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-heat.yml Move database creation into role (heat) 2018-06-01 15:41:15 +01:00
test-install-horizon.yml Move database creation into role (horizon) 2018-06-01 15:54:53 +01:00
test-install-infra.yml Fix test-vars and rabbit play 2016-05-23 12:00:39 +01:00
test-install-ironic.yml Move database creation into role (ironic) 2018-06-01 16:06:39 +01:00
test-install-keystone.yml Move database creation into role (keystone) 2018-06-01 17:27:18 +01:00
test-install-memcached.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-neutron.yml Move database creation into role (neutron) 2018-06-01 18:07:12 +01:00
test-install-nova.yml Move database creation into role (nova) 2018-06-01 18:49:07 +01:00
test-install-openstack-hosts.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-rabbitmq.yml Update rabbitmq install for cluster and upgrade tests 2018-02-11 17:56:27 +00:00
test-install-sahara.yml Move database creation into role (sahara) 2018-06-01 19:05:25 +01:00
test-install-swift.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-install-tempest.yml Implement any_errors_fatal for all test playbooks 2017-07-17 10:09:11 +00:00
test-log-collect.sh test-log-collect.sh: Fix log collection for host 2018-05-08 13:45:29 +01:00
test-pep8.sh Implement centralised Ansible test scripts 2016-10-05 09:56:12 +01:00
test-prepare-containers.yml Remove the serialization in tests 2017-12-12 17:52:01 -06:00
test-prepare-host.yml Implement clouds.yaml on test hosts 2018-05-13 20:48:35 +01:00
test-prepare-keys.yml Always quote the filesystem permissions 2017-11-10 04:20:17 +00:00
test-repo-setup.yml Ensure all pre-cloned git sources are found 2017-10-31 10:06:02 +00:00
test-requirements.txt Updated from global requirements 2018-03-15 07:42:10 +00:00
test-setup-cinder-localhost.yml Use package module to install lvm2 2017-11-21 11:15:24 -06:00
test-setup-host.yml Add setup-host play 2016-05-20 14:53:54 +01:00
test-setup-swifthosts.yml Fix ansible-lint test failures for ironic 2017-11-24 11:07:49 +00:00
test-vars.yml Do not build cryptography for tests 2018-07-02 12:34:13 +00:00
tox.ini Have run_tests clone the test repo 2018-03-26 18:18:05 +01:00

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:

ansible-playbook -i {toxinidir}/tests/inventory \
                 -e @{toxinidir}/tests/${rolename}-overrides.yml \
                 {toxinidir}/tests/test.yml -vvvv

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

- include: common/test-prepare-keys.yml

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.

bridges:
  - "br-mgmt"

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:

bridges:
  - name: "br-mgmt"
    ip_addr: "10.1.0.1"
  - name: "br-vxlan"
    ip_addr: "10.1.1.1"
  - name: "br-vlan"
    ip_addr: "10.1.2.200"
    veth_peer: "eth12"
    alias: "10.1.2.1"