Commit Graph

10 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov f72de305b8 Retire openstack-ansible-repo_build role
As repo_build role has been succesfully replaced with
python_venv_build role, we have no need in it's futher maintaining and
releasing.

Depends-On: https://review.opendev.org/717715
Change-Id: Iaf1d6da8192afbbd18c64e2b58d54fa5804fe43c
2020-04-06 14:30:36 +03:00
ZhijunWei ead5ec8589 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: I5b9e7be4c7212e3c483d2c65746629416cd309f2
2018-08-19 12:17:12 -04:00
Jesse Pretorius a858e8d032 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: I32e796d6166b27ea2df897d4a6f13183ea482e97
2016-09-28 12:00:16 +01:00
Travis Truman 294b4a0c76 Ansible 2.1.1 role testing
Change-Id: I8ddf65a83d7e3a7a6b7e108eda67f48b816cda74
2016-09-14 11:57:00 -04:00
Jesse Pretorius a392ee801f Allow the use of a pre-staged git cache
This patch provides the ability for the repo server to take advantage
of a pre-staged git cache on the deployment host, such as that provided
on OpenStack-CI's nodes.

This reduces the execution time of the build process by:

- only executing a repo clone for invalid or missing repositories
- only updating the clone if the existing clone doesn't already have
  the version required

Due to the way OpenStack-CI stages the cache (from a file based origin
which is not accessible) it is also necessary to adjust the origin
remote instead of creating a new remote as was done previously,
otherwise the 'git fetch' execution would fail.

The patch includes changes to the tests to pre-stage two repositories
and mangle them intentionally to test the resilience of the clone
process.

Change-Id: Ibe70ba27b9a716e9385a5db46cd745bc0d538d63
2016-07-26 12:39:12 +00:00
Jimmy McCrory bceaaae011 Reorganize test playbooks
The following changes have been made to reorganize the structure of this
role's test playbooks, bringing them into line with other
OpenStack-Ansible roles:
  - move each playbook to an individual file
  - rename playbooks descriptively
  - define hosts and groups directly in the inventory file
  - include group and test vars required by containers
  - create a separate bridge, br-mgmt, for the management network
    interface of containers
  - enable verbose logging for functional test output

Change-Id: Idfdae98a423e19a1ed0eb05ab3d0f497b9fbeaaf
2016-06-18 09:15:52 -07:00
Kevin Carter 9e6b78a9b4
Add the galera_client dependency to the repo build
This change is required because without it the client libraries
used to build the MySQL-Python packages will depend on the base
system and they will be wrong.

This is an example of the issue:
  http://paste.openstack.org/show/492788/

This will cause multi node production issues when building a
standalong repository outside of the the OpenStack gate.

Closes-Bug: #1565128
Change-Id: I6536993523f02ba49da741b9ea21535eb33fe402
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-01 18:17:59 -05:00
Kevin Carter 7348e023ac
Updated repo_build process to be faster
The repo_build process is slow and can do with some improvement.
To achieve better speed of execution some several slow tasks,
as profiled by the integrated gate have been moved into executable
scripts using jobs. These scripts are generated from the playbooks
and the Jinja2 variables created during the repo_build run time and
make it possible to perform multiple actions in parallel. In test
the results were significantly faster[0].

The test case has been updated to build all of the packages known
to exist and be required for a real OpenStack environment.

[0] - http://paste.openstack.org/show/491537/

Change-Id: I3a1872741a17dee25054a340859333b96203ca15
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-03-24 14:50:06 -05:00
Travis Truman 533c36b48d Enable role convergence testing against a repo_server
Test uses a single container repo_server and then runs
the repo_build

Closes-Bug: 1553992
Change-Id: I38d8c22d9e7f9dc5ee73e7eb9aa898d98bf554eb
2016-03-08 13:16:27 -05:00
Kevin Carter 119d87a456
Implement base configuration for independent repository
The review updates the base repo for IRR functional testing.
The current test structure is a simple pass until actual tests
are created. This change also pulls in the updates from review
https://review.openstack.org/#/c/284896/11 This role will not
function without these changes.

Change-Id: I05809190c38b113bab1ac14616d3a2d51a58e22f
Implements: blueprint independent-role-repositories
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-03-01 15:02:10 -06:00