Common testing content for OpenStack-Ansible
Go to file
Markos Chandras b29e4c523c test-prepare-host: SUSE: Fix escaping of double quotes
Escaping the double quotes only makes sense when the entire string
is surrounded by double quotes otherwise invalid entries are being
written to ifcfg files.

POST_UP_SCRIPT=\"compat:suse:ifup-post-veth-br-vlan-2-eth12\"

Change-Id: If97950d360a133a3f8875f29344ccfdb914d7bf5
2017-07-17 12:26:34 +01:00
ansible-lint Custom ansible playbooks checker using linter 2016-10-07 20:49:14 +00:00
common-tasks Add haproxy install playbook 2017-06-19 11:12:22 +00:00
doc Fix openstackdocstheme settings 2017-07-03 16:28:21 +08:00
network_interfaces SUSE: Remove post-up/post-down scripts from default ifcfg files 2017-05-20 10:00:00 +01:00
releasenotes Fix openstackdocstheme settings 2017-07-03 16:28:21 +08:00
tests Only create clonemap when zuul-cloner is used 2017-05-09 13:35:43 +01:00
.gitignore .gitignore: Whitespace fix 2017-06-07 09:28:52 +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 Show team and repo badges on README 2016-11-25 16:28:20 +01:00
Vagrantfile Increase Vagrant VM memory from 2048 to 4096 MB 2017-07-05 11:30:59 +02:00
ansible-role-requirements-gen.sh Use git.o.o and regen requirements file 2016-11-02 12:25:04 +11:00
ansible-role-requirements.yaml Use ansible-hardening repository 2017-05-30 09:22:49 -05:00
bindep.txt bindep.txt: Use explicit openSUSE Leap 42.2 dependencies 2017-07-06 09:07:57 +01:00
create-grant-db.yml Add options for nova cell_v2 2017-02-02 14:29:41 +00:00
destroy_containers.yml Remove connection: local usage 2017-05-02 15:39:36 +01:00
ensure-rabbitmq.yml Add convergence test for test repo. 2016-08-30 14:37:25 +00:00
gen-projects-list.sh gen-projects-list.sh: Add ability to include extra OSA projects 2017-06-26 13:41:07 +01:00
get-ansible-role-requirements.yml Enable ARA cross-repo testing 2017-05-04 18:34:50 +01: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 run_tests: If repo is tests repo, symlink 2017-05-25 12:30:38 +01:00
run_tests_common.sh run_tests_common.sh: Ensure EPEL is enabled 2017-07-06 09:07:57 +01:00
setting-nodepool-variables.yml Add Ironic vars and play to central test repo 2016-09-27 13:35:36 +00:00
setup.cfg modify the home-page info with the developer documentation 2016-09-20 16:32:22 +05:30
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 add netaddr to the test repo install process 2017-06-30 10:17:09 -05:00
test-ansible-env-prep.sh Add clone of bowling ball testing tools 2017-05-24 11:58:33 +01:00
test-ansible-functional.sh Remove verbose Ansible logging (use ARA instead) 2017-05-09 11:20:25 +01:00
test-ansible-lint.sh Custom ansible playbooks checker using linter 2016-10-07 20:49:14 +00:00
test-ansible-syntax.sh Implement centralised Ansible test scripts 2016-10-05 09:56:12 +01:00
test-ansible.cfg Implement centralised test scripts 2016-09-23 16:04:36 +01:00
test-bashate.sh Implement centralised Ansible test scripts 2016-10-05 09:56:12 +01:00
test-install-cinder.yml Remove redundant run_once task args 2017-07-06 13:21:42 +01:00
test-install-etcd.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-galera.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-glance.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-gnocchi.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-haproxy.yml Add haproxy install playbook 2017-06-19 11:12:22 +00:00
test-install-heat.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-horizon.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-infra.yml Fix test-vars and rabbit play 2016-05-23 12:00:39 +01:00
test-install-ironic.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-keystone.yml Add keystone db contract 2017-06-20 10:16:57 +00:00
test-install-memcached.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-neutron.yml Remove redundant run_once task args 2017-07-06 13:21:42 +01:00
test-install-nova.yml Remove redundant run_once task args 2017-07-06 13:21:42 +01:00
test-install-openstack-hosts.yml Remove connection: local usage 2017-05-02 15:39:36 +01:00
test-install-rabbitmq.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-sahara.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-swift.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-install-tempest.yml Add become to all plays 2017-04-23 02:17:55 +00:00
test-log-collect.sh Improve rpm/repos logging 2017-03-09 10:24:39 +00:00
test-pep8.sh Implement centralised Ansible test scripts 2016-10-05 09:56:12 +01:00
test-prepare-containers.yml Remove connection: local usage 2017-05-02 15:39:36 +01:00
test-prepare-host.yml test-prepare-host: SUSE: Fix escaping of double quotes 2017-07-17 12:26:34 +01:00
test-prepare-keys.yml test-prepare-keys: Use local connection for user's ssh key setup 2017-05-04 09:36:52 +01:00
test-repo-setup.yml Make a "test_branch" variable set to master 2017-06-16 18:04:50 +00:00
test-requirements.txt Fix openstackdocstheme settings 2017-07-03 16:28:21 +08:00
test-setup-cinder-localhost.yml Fix role gate tests for Ansible 2.3 2017-04-19 00:11:36 -07:00
test-setup-host.yml Add setup-host play 2016-05-20 14:53:54 +01:00
test-setup-swifthosts.yml test-setup-swifthosts: Explicitly set the package manager 2017-07-14 10:23:50 +01:00
test-vars.yml test-vars.yml: Always disable private devices 2017-07-07 10:01:54 +01:00
tox.ini Ensure that role tests pin pip/setuptools/wheel 2017-06-04 09:04:58 +00: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"