Commit Graph

40 Commits

Author SHA1 Message Date
Marc Gariepy 2acd385d30 remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.

Depends-On: https://review.opendev.org/734676/
Change-Id: Ibdbfab5d3ab2eb301a583db469f7a96b8785bf7d
2020-06-11 15:59:16 -04:00
Dmitriy Rabotyagov 69d744dc80 Cleanup after repo_build and pip_install retirement
Change-Id: I1f2dd31d326692ec410c56971e087ed5376f563b
2020-05-13 11:55:59 +01:00
melissaml c53e631763 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I73a8bb8682d3daf027bc3b532912c852121afbae
2019-07-11 06:04:51 +08:00
Jimmy McCrory 79c252fb26 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: I42d691a2f01918932006984f9f68af9df1c7e41f
2018-10-21 00:27:36 +00:00
Zuul a22a3236a5 Merge "Trivial: Fix the pep8 warning" 2018-08-17 05:21:40 +00:00
caoyuan bf14a3a9c4 Use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

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

Change-Id: I14b2330a665d58851c25587ce323cf1c36e7142b
2018-08-17 09:38:55 +08:00
wangqi 906737af24 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: If069f25885b24d323e20f690aa67440a2045491e
2018-08-06 07:52:32 +00:00
Jesse Pretorius c4e6c8ce30 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'rally_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable 'rally_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Ifb89e35e3acaef33ce4ce24b3f5affc6c4e8e494
2018-06-28 19:50:37 +00:00
Jesse Pretorius 321fb7e69a Implement pypi-based install and package pinning for non u-c packages
Rally does not adhere to the global requirements process, so its
requirements extend beyond those managed by upper-constraints, and
sometimes are incompatible with upper constraints.

We have no need to track their development from git commit to git
commit, and can rather rely on stable releases which we verify are
working with the upper constraints whenever we do a pinning bump.

This keeps things simpler for us, and also allows the repo build
process in the integrated build to do a constrained venv build
instead of doing it unconstrained and breaking stable branch builds
down the line.

Depends-On: https://review.openstack.org/570906
Change-Id: If3d0120cf6f6f78463cf7805bc046382c3b6d44e
2018-05-29 16:16:20 +00:00
Jean-Philippe Evrard db7cbd9b04 Do not log passwords
This prevents data to be leaked into the callback plugin.

Change-Id: I32b43617f2529094b3ca9f6b5f95047d4a26df82
2018-04-11 13:47:13 +02:00
Jesse Pretorius ba81cc9050 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: Ia392beb51cdbcfc802fd803effeb990276456de5
2018-03-28 10:15:59 +01:00
Zuul 0c65cba7f8 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:18:59 +00:00
Jesse Pretorius 1641c3506a 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: Id8a40b88455429b350cb498300afbcd8f8998a9d
2018-03-25 16:21:08 +01:00
Jesse Pretorius 437e90f481 ansible-role-requirements: 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.

Change-Id: Ib4b3dfedbccd26287475562432aa25c6bde122ca
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:21:20 +00:00
Jesse Pretorius 6f1efe8d27 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: Ic314ff76c23cc7f2e56aec4414a950c99756109f
2018-03-13 16:51:49 +00:00
OpenStack Proposal Bot 59fe99fbbf Updated from OpenStack Ansible Tests
Change-Id: Ief9b0d9a4ccaec0aef7c694ae905beb6ebfdd2fc
2018-02-14 20:07:01 +00:00
Jean-Philippe Evrard 6fd0163fda Constraint ansible installation
Rally installs ansible, in an unconstrained way.

To pass linters, we skip the lint job on the test
shell command.

Change-Id: Ic830cf81b3cc691aafb7a97819e0ce68e48dd809
2017-11-22 20:21:15 +00:00
Jesse Pretorius 22b34fbf86 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: I3103b032d8847eeb044d87e0ed7950c9078e18a1
2017-10-17 20:52:06 +00:00
OpenStack Proposal Bot 3a016ab97b Updated from OpenStack Ansible Tests
Change-Id: I397fe8ba216254ba814869fbfa3834fc3c884310
2017-10-12 20:44:59 +00:00
OpenStack Proposal Bot df7dfdc2b3 Updated from OpenStack Ansible Tests
Change-Id: I17c7e76c3e67c4775aa41903060ec273696a6ac9
2017-06-22 15:19:58 +00:00
Jesse Pretorius cab2a12c46 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: Ia14642622b7dab5eecff0bca7c8cff8763c16d92
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:53:00 +01:00
Jesse Pretorius c61017d758 Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: I530293245724949dc172dfa95a820db32b6a665c
2017-05-02 13:13:29 +01:00
Kevin Carter 60a1889001 Remove deprecated ansible_ssh_host variable
This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host'
variable has been deprecated as noted here: [0].

[0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups

Change-Id: Icd0874e88d7d2d8c14d568256e6fd59951b95858
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:43:09 +00:00
Deepak 927bcaf586 Update test-vars.yml for repositories
Renamed in os_rally role repo
Changed test-vars.yml to os_rally-overrides.yml
Removed test-vars.yml

Change-Id: I73c0a045496f7c36bd00748cb2096d20b5aa7b7b
Partial-Bug: #1629284
2016-10-05 22:01:48 +05:30
Jesse Pretorius 0e3fe0b5fa Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Ib1ed37c6994688775f44ca11df36e8222b0ce05d
2016-09-28 11:34:10 +01:00
Jesse Pretorius d721255ef3 Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: I6029769c2fe0847a2d8fcbd62cdc41168fc89a60
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 15:36:42 +01:00
Travis Truman 54555e0b06 Remove duplicate container prep from role test
test-setup-host already takes care of container prep
so the test playbook should not also include the container
prep play

Change-Id: Ic93eeca534486fc678a3960cde2eeea970c8326e
2016-09-14 11:15:30 -04:00
Travis Truman 9f281faa84 Ansible 2.1.x role testing
Change-Id: I2c4ee100870f10b132d392ced5bb8783fd878863
2016-09-12 14:54:15 -04:00
Jesse Pretorius bf15d504ef Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: I85fe0d5f4235c5d71ff1e8fc4066a9d1e0932684
2016-08-30 19:58:46 +01:00
Travis Truman c0698d207b Remove rally_host_group variable
It was duplicating the meaning/purpose of the role
variable `rally_role_project_group`

Also ensure that additional tasks are limited to only
a single host in the host group.

Change-Id: I3d5cc822cc0d3c2b0b3ba7b05a9fe1b6b9e3a839
2016-08-23 14:45:16 -04:00
Travis Truman da91e5b015 Functional testing for os_rally role
The role gate will now actually run simple
Rally scenario against Keystone to validate that
the install and configuration is correct.

Change-Id: Ie5d52636700e8c276b0e793e815ae513d25415bb
2016-08-18 11:21:32 -04:00
Jimmy McCrory f7968fee28 Remove openstack_hosts from test requirements
The openstack_hosts role is not used in any of the test playbooks
or required by dependent roles and can be removed from the test
role requirements.

Change-Id: Id9395e745249c723c5d8135ae4c9661dcb0f7221
2016-07-20 18:47:02 -07:00
Jimmy McCrory 717c085f63 Remove pip_lock_down dependency
The pip_install and pip_lock_down roles have been merged.

Remove pip_lock_down from the role's meta dependencies and test
requirements.

Change-Id: Idf70fd3e14254ae7b633ca2731388dec307597da
2016-06-20 12:26:09 -07:00
Jesse Pretorius b2587e2a38 Clean up container cache prep in tests
This patch cleans up the container cache preparation in the tests
due to the following patches:

- https://review.openstack.org/307856 (new image build process)
- https://review.openstack.org/315114 (new apt config process)
- https://review.openstack.org/322188 (new resolver config process)

Change-Id: Idc20aa8c21816d4d53ac374e0f99553cd8a5d0b2
2016-06-17 19:33:46 +01:00
Jenkins 25114ed587 Merge "Updating os_rally to use the Multi-Distro framework" 2016-05-31 19:09:26 +00:00
Travis Truman 6f9765682a Updating os_rally to use the Multi-Distro framework
Debian-specific vars and logic have been moved to tasks
that will execute only on those distributions.

Change-Id: I6a9d04382b1f1badebf12483ce7d1d02b43f8903
Implements: blueprint multi-platform-host
2016-05-27 10:04:51 -04:00
Jesse Pretorius 4b125868a9 Remove py_from_git role
The py_from_git role is removed as it is no longer required.

Change-Id: I193a3a19580a462a7561efb813be0f6480260374
2016-05-04 09:19:00 +01:00
Travis Truman 692094c67c Configure the Rally deployment using environment variables 2016-03-28 14:16:44 -04:00
Travis Truman 329318acfa Adding testing 2016-03-25 11:28:16 -04:00
Travis Truman 1e6d9b3a46 Inital commit 2016-03-24 17:13:47 -04:00