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.
 
 
Dmitriy Rabotyagov 2ebc57082c Add SERVICES_BRANCH variable for better control 3 months ago
common-tasks Clean up code from unsupported operating systems 1 year ago
doc Switch sphinx language to en 3 months ago
releasenotes Merge "Switch to newer openstackdocstheme and reno versions" 2 years ago
sync/doc Do not syncronise DB/MQ/Service setup tasks to other roles 7 months ago
tests Fix repo passing CI 1 year ago
zuul.d Add SERVICES_BRANCH variable for better control 3 months ago
.gitignore Dissuade .gitignore references to personal tools 4 years ago
.gitreview OpenDev Migration Patch 3 years ago
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2 years ago
LICENSE Introduced all the scaffolding for test repo 6 years ago
README.rst Add source code repository link for README 3 years ago
Vagrantfile Clean out unused legacy tests 9 months ago
bindep.txt Clean up code from unsupported operating systems 1 year ago
create-grant-db.yml Do not log passwords 4 years ago
destroy_containers.yml Update ansible-lint==4.3.5, flake8==3.8.3, bashate>=0.5.1 2 years ago
gen-projects-list.sh Replace git.openstack.org with opendev.org 3 years ago
get-ansible-role-requirements.yml auto-detect interpreter 2 years ago
iptables-clear.sh Setup iptables-clear.sh 6 years ago
listening-port-report.yml Update ansible-lint==4.3.5, flake8==3.8.3, bashate>=0.5.1 2 years ago
manual-test.rc Update README description of how to use the tests repo 6 years ago
run_tests.sh Update tests for Rocky Linux 5 months ago
run_tests_common.sh Fix python installation for centos 8 stream 3 months ago
setting-nodepool-variables.yml Simplify nodepool variable gathering 5 years ago
sync-test-repos.sh sync: keep doc/requirements.txt syncd across all repos 3 years ago
test-ansible-collection-requirements.yml Add ansible.utils collection requirement 5 months ago
test-ansible-deps.txt Bump ansible version to 2.12.6 3 months ago
test-ansible-env-prep.sh Add SERVICES_BRANCH variable for better control 3 months ago
test-ansible-functional.sh Remove Centos-7 support 2 years ago
test-ansible-lint.sh Fix repo passing CI 1 year ago
test-ansible-role-requirements.yml Add ansible.utils collection requirement 5 months ago
test-ansible-syntax.sh Trace execution of test-ansible-syntax.sh 2 years ago
test-ansible.cfg Use the config_template module from the dedicated repo 4 years ago
test-bashate.sh Fix bashate xargs run 3 years ago
test-distro_install-vars.yml Use ansible_facts[] instead of fact variables 1 year ago
test-install-cinder.yml Remove all MQ vhost/user creation tasks/vars 4 years ago
test-install-etcd.yml Ensure remote_user and become are consistently implemented 4 years ago
test-install-galera.yml Use galera server role to install galera client 2 years ago
test-install-glance.yml Merge "Ensure remote_user and become are consistently implemented" 4 years ago
test-install-gnocchi.yml Ensure remote_user and become are consistently implemented 4 years ago
test-install-haproxy.yml Use local connection and become for localhost plays 4 years ago
test-install-heat.yml Remove all MQ vhost/user creation tasks/vars 4 years ago
test-install-horizon.yml auto-detect interpreter 2 years ago
test-install-infra.yml use include_tasks instead of include 4 years ago
test-install-ironic.yml Remove all MQ vhost/user creation tasks/vars 4 years ago
test-install-keystone.yml Run main_pre.yml tasks as initial keystone installation step 3 months ago
test-install-memcached.yml Ensure remote_user and become are consistently implemented 4 years ago
test-install-neutron.yml Use ansible_facts[] instead of fact variables 1 year ago
test-install-nova.yml Use ansible_facts[] instead of fact variables 1 year ago
test-install-openstack-hosts.yml Remove redundant apt cache update task 4 years ago
test-install-rabbitmq.yml Ensure remote_user and become are consistently implemented 4 years ago
test-install-swift.yml use include_tasks instead of include 4 years ago
test-install-tempest.yml Remove use of 'private' for include_role for ansible 2.8 3 years ago
test-log-collect.sh Gather /etc/pki directory 8 months ago
test-pep8.sh Implement centralised Ansible test scripts 6 years ago
test-prepare-containers.yml use include_tasks instead of include 4 years ago
test-prepare-host.yml Bump ansible-lint and ansible version 1 year ago
test-prepare-keys.yml Initialise ssh and ssl certificates 4 months ago
test-repo-setup.yml Update ansible-lint==4.3.5, flake8==3.8.3, bashate>=0.5.1 2 years ago
test-requirements.txt Update ansible lint version 7 months ago
test-setup-cinder-localhost.yml Use local connection and become for localhost plays 4 years ago
test-setup-host.yml use include_tasks instead of include 4 years ago
test-setup-swifthosts.yml Use ansible_facts[] instead of fact variables 1 year ago
test-vars.yml Add SERVICES_BRANCH variable for better control 3 months ago
tox.ini Add SERVICES_BRANCH variable for better control 3 months 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:

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"
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 source code repository is located at:

https://opendev.org/openstack/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