Commit Graph

19 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 5f76a510ac Deprecate os-panko role
Since upstream Panko project has retired, we deprecating role for it.

Since we might want to get some patches in for stable branches, we're
deprecating role instead of retiring it.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/799802
Change-Id: I35e008bcc9b35373dc6db2672ee1cabb328e7f9b
2021-07-07 15:44:31 +03:00
melissaml 3be2306707 Cleanup after repo_build and pip_install retirement
Change-Id: I7c350e86d7ae5f7eab4265e90b8e73fdac59eb7c
2020-05-13 16:39:31 +08:00
Dmitriy Rabotyagov 2cb6ab1815 Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.

Change-Id: Ied62269392fa8d7b0ddfe6e29f52c34ddbbbce20
2019-09-06 00:45:45 +03:00
tonybrad b1d22bf306 Change tests source to opendev
Change-Id: I352d0d3a91a3ef67d61e1c45d5b97d4f3a84972c
2019-05-21 08:52:28 +00:00
Zuul 94ab4d0e32 Merge "Trivial: Fix the pep8 warning" 2019-04-25 00:35:42 +00:00
Dmitriy Rabotjagov a3b0443be5 Update role for new source build process
The variables panko_developer_mode and panko_venv_download
no longer carry any meaning. This review changes panko to
do the equivalent of what developer_mode was all the time,
meaning that it always builds the venv and never requires
the repo server, but it will use a repo server when available.

As part of this, we move the installation out of its own file
because it's now a single task to include the venv build role.
This is just to make it easier to follow the code.

We also change include_tasks to import_tasks and include_role
to import_role so that the tags in the python_venv_build role
will work.

Change-Id: I82f9eceb171befc1a47d18134fcc6c1482f14eef
2019-03-28 09:40:38 +02:00
melissaml ec3431bacb Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ic532de92e4e89ca6d544f6821989ebd0a2d7c7e2
2018-11-08 19:54:48 +08:00
Jesse Pretorius 1a81b54fa3 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: I8f1a221536363a5ed5154cfb72bfae710c018429
2018-10-22 12:54:19 +01:00
caoyuan bcba7cf1eb use include_tasks instead of include
Change-Id: Ida8caa3c714767d785a45e2efc039e97be878778
2018-08-15 04:53:18 +00:00
Jesse Pretorius c7dfd59acf 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.

Change-Id: I4279311e1022d8625503b41e69573e680fbb742a
2018-07-14 14:41:40 +01:00
Jesse Pretorius e5b8094b74 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 'panko_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 'panko_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Ib31b94433183bb12209fe824ea5c8ee67aaa8276
2018-06-28 17:49:30 +00:00
Jesse Pretorius 5e16eb234e 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: I66f2e411cf39cf0ad5e68f56f66fa4332b45db8a
2018-03-28 09:30:24 +00:00
Zuul 2a47bcdede Merge "ansible-role-requirements: Add common python_venv_build role" 2018-03-25 20:38:38 +00:00
Jesse Pretorius 448a2c48dc 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: Ie8f7c57b9aac629ae2dbdccec3e554633a768ce6
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-25 18:07:38 +01:00
Jesse Pretorius 8064897a0b 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: I51b84d4d3a30ef4ccea9f3cd2705c9abda7e7609
2018-03-25 18:06:29 +01:00
Jesse Pretorius 7455c7ea04 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: I0ed581415491a08f8854c370d932c315bc2928a6
2018-03-13 17:35:41 +00:00
Jesse Pretorius 0e01d050c4 Update branch for master, and add scaffolding for openstack-infra
The content in master came from the stable/pike branch, so we change
all the branch references to work with master instead.

We also add various scaffolding and update various files so that
it matches the right content for master and will be able to build
docs/releasenotes when imported into openstack-infra.
2018-02-21 11:41:27 +00:00
gokhan.isik 0e71f81ba4 panko role is created 2018-01-09 13:59:36 +03:00
gokhan.isik 0afd4d81e4 Openstack Ansible panko service role created 2018-01-05 14:59:49 +03:00