Commit Graph

35 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 76fe426827 Fix repo passing CI
Also remove linters from regular functional template

Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798685
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798725
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798713
Change-Id: Ibfdb5185ee5da8f83858ef1f1db9ea3d332799ea
2021-06-30 08:51:06 +00:00
Marc Gariepy 0a244ca090 auto-detect interpreter
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>
2020-06-11 14:43:02 -04:00
Marc Gariepy 0b59539f55 Deploy modern ara for CentOS 8 deployments
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
2020-05-22 00:25:15 +03:00
Dmitriy Rabotyagov cabd88aae2 Retire repo_build and pip_install roles
Change-Id: Iaf8ebe677b40b5a8817eaddd1542bbac2c8d7c59
2020-04-10 12:37:45 +03:00
Dmitriy Rabotjagov 0666b18821 Revert defining tempest_install_method for tests
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
2019-06-15 01:52:39 +03:00
Dmitriy Rabotjagov 1084ff6d5a Fix non-interactive mode for apt
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
2019-06-14 20:17:50 +03:00
Dmitriy Rabotjagov 3bf45d57cb Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I8a070e0aded59dd7a4751218bd95bc23d153c6d3
2019-05-08 19:49:28 +03:00
Zuul 9c2eb33922 Merge "Trivial: Fix the pep8 warning" 2019-04-24 20:08:34 +00:00
Chandan Kumar 6223a72d18 Gather different port status on different hosts
Knowing what ports are open, it helps to debug network issues.

Change-Id: Idc777231e85d60fb794ba3905cb2fe5077b87951
2019-01-25 18:27:20 +05:30
Kevin Carter fe6c8344d1
Convert test network setup to use the networkd role
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>
2019-01-16 21:41:54 -06:00
melissaml adf7a374b6 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I0a304648474a21cd78c2f7ed3fa2e87b57f76acc
2018-11-08 19:38:06 +08:00
Jesse Pretorius 66e6b8f69a Set container_name as host_var in test inventory
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
2018-10-22 16:50:16 +01:00
ZhijunWei b2bce755e0 use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

Switch to include_tasks or import_playbook as necessary

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: I55394d053218016be20fa9b2c92cefc1473d5c64
2018-09-09 08:04:47 +00:00
Andrew Smith 7c756b1f91 Update to use oslo.messaging services for RPC and Notify
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
2018-04-30 16:35:22 -04:00
Jesse Pretorius 62221b6a40 Remove tests-repo-clone.sh
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
2018-03-28 10:58:58 +01:00
Zuul c5de8e1eb9 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:24:52 +00:00
Jesse Pretorius 3bdf8ba232 ansible-role-requirements: Use systemd_service role from openstack namespace
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
2018-03-25 16:22:28 +01:00
Jesse Pretorius 5496ec500f Add common python_venv_build role
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>
2018-03-24 23:30:19 +00:00
Jesse Pretorius 2e7a4a6a3f ansible-role-requirements: Add common systemd_service role
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
2018-03-13 16:53:26 +00:00
Jean-Philippe Evrard 591adda703 Point to Queens as previous branch
Queens is now the previous branch, not Pike.

Change-Id: If62b8a6f11700fb3bb7151f012b043bc43baf09a
2018-02-14 17:32:51 +00:00
Jesse Pretorius ac930796d6 Initial OSA zuul v3 role jobs
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
2017-10-17 13:40:52 +01:00
Jesse Pretorius b58a2c0287 Implement zuul v2/v3 role fetch shim
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
2017-10-16 18:08:05 +01:00
Jean-Philippe Evrard 4f84551eba Update upgrade branch to Pike
Upgrade in master should happen between Pike and master, not
ocata and master.

Change-Id: I59b420e88f8f2e739258dfcf8d1e42b8d5981ef5
2017-10-12 18:29:30 +00:00
Jesse Pretorius 0a793ac13a Only create clonemap when zuul-cloner is used
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
2017-05-09 13:35:43 +01:00
Jesse Pretorius ad298c4277 Use zuul-cloner for tests repo in OpenStack-CI
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
2017-05-04 11:39:44 +01:00
Jimmy McCrory b0be2e9327 Fix role gate tests for Ansible 2.3
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
2017-04-19 00:11:36 -07:00
Jesse Pretorius a533d20d9e Force the use of the new tempest testing method
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
2017-03-08 08:27:07 +00:00
Jesse Pretorius 9a09e9ff07 Implement centralised test scripts
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
2016-09-23 16:04:36 +01:00
Andy McCrae 877ad880ef Include openstack_hosts in test-prepare-host.yml
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
2016-09-21 12:10:09 +01:00
Travis Truman 1943251152 Address ansible_ssh_* var deprecation
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
2016-09-19 11:06:48 +01:00
Travis Truman 8c1fbd3bb0 Ansible 2.1.1 role testing
Change-Id: I5b42bea81f26af5e2d4e3a51645fafc3040eb490
2016-09-13 10:17:08 -04:00
Andy McCrae 0a7e26df8b Add tempest tests to test-repository
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
2016-09-08 15:42:18 +00:00
Andy McCrae e8ea408763 Remove duplicate memcached_server entry
We specify memcached_server twice in the ansible-role-requirements.yml
for testing.

This PR removes one entry.

Change-Id: I67c36becb7d8724478fdd13ad9d5ee130739d97e
2016-09-02 17:00:26 +01:00
Andy McCrae 44547e2696 Fix the central repository to work with CentOS
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
2016-09-02 15:04:43 +00:00
Andy McCrae c01f249046 Add convergence test for test repo.
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
2016-08-30 14:37:25 +00:00