setting ANSIBLE_PYTHON_INTERPRETER to auto will use the value from the
ansible/config/base.yml
debian gets a /usr/bin/python3 for now and need to revisit once we have
ansible 2.10.
Change-Id: I503c1b71c0d01eea668500c0125c752c0584a7ef
Co-Authored-By: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
As CentOS 8 is not compatible with old ara, we installing new one isnted
Also providing py3 as default python for CentOS 8
Change-Id: I264e6f8bfa507668dada7b629af52a8a13001a45
Since [1] is merged, we don't need defining this variable for containers
[1] https://review.opendev.org/665244/
This reverts commit 1084ff6d5a.
Change-Id: I41c504823277b8c5ee1b14540cdfbb693fc25a8c
Since sudo was laucnhed after setting DEBIAN_FRONTEND variable,
noninteractive wasn't working correctly during bindep installation.
Also patch includes temporary fix which is generally adressed in [1]
This is implemented to resolve cross-dependency and will be rolled
back once general fix will land.
[1] https://review.opendev.org/665244/
Change-Id: I44c6aa7a0266285ca67edca70cdc4450c64671d9
The test network setup was using the legacy interface configs and
providing an inconsistent experience. These changes will pull it in plce
with the intergrated repo for all of our distros giving us a very
consistent experience.
Change-Id: I637b048b8c8a3fb44f91e4227a02787eacd32b57
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.
Change-Id: I7a9343d29f853eba9b377855149d07a3d2865143
This commit contains updates to introduced oslo.messaging
service in place of rabbitmq server.
This patch:
* Add ensure oslo.messaging vhost and user for backend
* Update service role installs
* Add oslo.messaging settings to test-vars
Change-Id: Ie69d522ee2df4282ce4fc69c2b3f81f4df1da77d
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.
Change-Id: If5c26242b8f5d059630da40b37477703c9ed0d7e
Depends-On: https://review.openstack.org/557176
In order to ensure that the updated role is used for tests,
we adjust the a-r-r file to pull from the correct repo.
Change-Id: I24a680c8a3a7fd145a6590d83489a47f276eb648
In order to allow tests to work as the use of the common
role is implemented in the various roles, we pre-implement
the addition of the role into the a-r-r file and into the
pre-caching implemented by zuul in OpenStack CI.
Change-Id: Idfab511b2a79afab4f97df0241bbeaec67ba14b6
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
In order to allow tests to work with https://review.openstack.org/551028
merged, add the role to the a-r-r file.
Change-Id: I9be72f6285bdf5820371e9593d5fde3f787377dc
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.
Change-Id: Iafe9f3622037d7ba71f9ba8b73217f9e2070f246
In order to be able to simultaneously work with the
differing implementations of zuul-cloner in zuul v2
and zuul v3 we implement a detection routine to
behave appropriately for each version.
This is very much a band-aid just to help us transition
because once the transition to zuul v3 is complete we
should be able to ditch this whole playbook for
something built into zuul v3, and use something very
simple for executing tests when not using zuul.
Change-Id: Ic824e7ca7c564d5de7a27c77a79014ad274afade
In test environments outside of OpenStack-CI, it is
preferred that a file is not created and deleted in
the user home directory, especially if it is not
used.
Change-Id: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.
Change-Id: Idce7abebf32f24c356a27e099fbca954d917402b
In Ansible 2.3, 'ansible_user' seems to be undefined unless set within
the inventory for a host. 'ansible_user_id' contains the current user
running Ansible, but is only set after facts are gathered.
Change-Id: Id5b76a87809f03951c954fc3d752419a673403f7
The old tempest execution method was deprecated in
Newton. We need to shift over to using the new method
which is more reliable and easier to configure.
Change-Id: Ie51422bc1bb39d555f9fbdea9d7820da7dc905f1
This patch implements test scripts intended for use by all
OpenStack-Ansible role tests.
The intent is to simplify the role tox.ini configuration
and ensure that as many changes to role testing configuration
can be managed from the centralised tests repo instead of
individually in each repository.
The common tests repo target location when cloned is changed
from 'tests/playbooks' to 'tests/common' to better reflect
the content and purpose.
Change-Id: I1a93329ada24670c87588ce5a07f92c9bce4e50b
We moved the openstack_hosts setup into a separate task file so that the
openstack_hosts role could be tested individually, to avoid having to
call this specifically, we should include it in the
test-prepare-host.yml play as well.
This is required for Neutron OVS to work appropriately, and correctly
import the openvswitch module.
Change-Id: I521e80c00070f4338b84de3d61d9739645e00e12
Replacing usage of ansible_ssh_host, ansible_ssh_user,
ansible_ssh_port with ansible_host, ansible_user and ansible_port
Depends-On: I35371879a87c115f219cd181245fe59f6d7d3f77
Change-Id: I97c3958c406b44b271d361860516d0b903438a83
For now we'll setup the keystone tests only, but in future we may extend
this to match the projects that are tested in this repository.
To make this more generic:
* Use a conditional on the "tempest_service_available_*" variables,
based on the precense of the specific service.
* Change the tempest_main_group to "utility_all"
* Remove the second keystone container, this is redundant for the
central testing repository
Change-Id: Icb10524004c7b93889d45f9f54773782fb84b36e
We specify memcached_server twice in the ansible-role-requirements.yml
for testing.
This PR removes one entry.
Change-Id: I67c36becb7d8724478fdd13ad9d5ee130739d97e
Add interface drop for CentOS (Will need to be extended to allow
multiple interfaces)
Add network config files based on ansible_os_family.
Add nodepool tasks for CentOS
Add a default network file for both CentOS and Ubuntu
Change-Id: Ideb84f153fbd9f8f83ff39042f139b25719b39d8
For test repo we should build out keystone + infra services, as they are
the most commonly used roles/tasks.
We still need to add some funcitonal tests but this should give a good
base. The test repo will consume it's own test plays in the same way as
other repositories would. We use a "git clone ." to avoid a situation
where we clone the old repo containing the errors we are trying to fix.
Additional fix, we don't need a "when" clause on the rabbit/db creation
tasks - since these are already delegated and a "run_once" will suffice.
This fix is required for the tests to pass.
Change-Id: I482500872f9e29a71e1576f67a0ad390be2a3ece