Commit Graph

27 Commits

Author SHA1 Message Date
Guilherme Steinmüller c30e4a5a34 Retire openstack-ansible-os_zaqar
Change-Id: Id1b0aa720d293298ab48fae2e926e79fb7df4511
2019-04-17 23:43:21 +00:00
Jesse Pretorius d599e19610 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: I9542008be92408d9f1956810c8cfeb839c3abc1d
2018-10-22 12:58:13 +01:00
ZhijunWei b4d340c857 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: I2b89abfe09c9bd8386b83833b7f17eb388c7425f
2018-09-06 08:15:51 +08:00
Jesse Pretorius e29af51efe Remove httplib2 install from tests
httplib2 is an old ansible requirement for the uri/url
module which is no longer necessary.

Change-Id: I5b53c7b0655e7cbb1ff34a21a53ed17c38a6d17f
2018-08-19 16:38:24 +01:00
Jesse Pretorius 62dfbc77bd Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/582359
Change-Id: Ic844753c3ece4383eefa490f00be0bff441c6a7e
2018-07-13 15:36:09 +00:00
fpxie 0c9be87746 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I42e978fb46c3aac16e0840b22f1a0d1b8ab6a26e
2018-05-08 14:07:02 +08:00
Jesse Pretorius 006a47e3dd 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: Id8b45eb237e65b3752790ea5ea1f277b13ffd229
2018-03-28 10:17:02 +01:00
Zuul 6df1d679e6 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:12:46 +00:00
Jesse Pretorius 362efeeeb0 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: I29ffd6ad8e3bad7a3e0fd97e6717554126ed6074
2018-03-25 16:22:05 +01:00
Jesse Pretorius 6040066ffb 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: Ib5ba0f759a6db30664a21d3385fc03ca504c563b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:22:25 +00:00
Jesse Pretorius e7943265ca 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: Idaeaec2cb794dfc0e61f7fad43c4afbf0658195a
2018-03-13 17:36:53 +00:00
OpenStack Proposal Bot 68403e07be Updated from OpenStack Ansible Tests
Change-Id: I5bdeceae18cf5b0f585df80a2c8c4a5ccfe6a3c1
2018-02-14 20:07:47 +00:00
Jesse Pretorius 9990de8551 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: I52b289966ad7a9d2a056e79b1decc218ee65b857
2017-10-17 20:57:20 +00:00
Jesse Pretorius bad9c32845 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: I97929a66c9089363f3a89e96612d13ca1f28ab42
2017-05-16 12:38:11 +01:00
Kevin Carter d355447d75 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: I7290dd50db66234a81a40c5613bf850f23afc938
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:43:34 +00:00
Jesse Pretorius 32ab702bbf 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: I8fc46392dbbc87459e9c26e5e350e3f6bf1fd9e7
2016-09-28 11:41:06 +01:00
Jesse Pretorius 79aec1112c 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: Id26b3f254e68f0707c6d8b23b501868213b11224
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 16:33:00 +01:00
Travis Truman 8926a4008f Ansible 2.1.1 role testing
Change-Id: I8338e497b9779b137d960f486886c89b0fc7f0e0
2016-09-12 16:44:52 -04:00
Jesse Pretorius 833d62c9fe 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: Ib607e78bd3be2f50fbfe2c7098706df7e91cd780
2016-08-30 20:02:12 +01:00
Jenkins b4023f8dd5 Merge "Adding simple functional testing for the role" 2016-07-22 16:08:27 +00:00
Travis Truman 35cde17905 Adding simple functional testing for the role
Previously only role convergence was tested.

This patch paves the way to have functional testing support
the addition of Xenial support as well as adding more
thorough functional testing using the Tempest plugin
available in the zaqar source.

Change-Id: I593fe5e61df2daca0857548394e04aa2afa35499
2016-07-21 17:58:56 -04:00
Jimmy McCrory 0b0a94d8ab 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: I3b50228b8eeb077f4e7626c7b18d11dea56fd037
2016-07-20 18:47:02 -07:00
Jesse Pretorius 1ebe79c997 Clean up container cache prep in tasks
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: Ic47e775a53b3890db035bc9366c51bb5c4fb7b07
2016-06-17 19:49:55 +01:00
Jimmy McCrory 498c422263 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: I234245405f0cfc64c9ed9eb31783e49437917721
2016-06-07 23:32:58 -05:00
Travis Truman 6c79f1cde1 Adding role convergence test
Functional testing will follow in another patch
but we should have convergence testing in the meantime.

Change-Id: Ib3d596eea7f6ded233a3b1f9a06e3e893764c0e5
2016-04-11 12:09:35 -04:00
Jimmy McCrory 592eab69a8 Remove dependency on the Keystone admin auth token
Now that auth token usage is deprecated, prefer the admin
user and password for all zaqar setup tasks run against
keystone.

Default vars in keystone namespace have also been removed.

Change-Id: Ic6639d5765925ce6a50b3e9f701eafb45cd6a004
2016-03-17 16:03:26 -07:00
Jesse Pretorius 8dd77ff2c5 Implement base configuration for OpenStack-CI
This patch includes the following:

 - Base configuration for OpenStack's CI Infrastructure.
 - Base documentation build configuration.
 - A Vagrantfile for local testing.
 - A base test configuration in order to execute the standard tests.
 - An updated README, added LICENSE file and a CONTRIBUTING file.

Change-Id: I47a4b15e43fdc554d1bee203f2df34752fe786f6
2016-03-16 15:39:18 +00:00