Commit Graph

23 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 18ed9c08cf Cleanup after repo_build and pip_install retirement
Change-Id: I7712cab306e2fbc74f7b8b958011e8435ad7be5e
2020-05-12 21:14:23 +03:00
tonybrad 218bfca450 Update the git to opendev
Change-Id: I42415a733d0c502e4756473d0cde3f8ccd6a7cbf
2019-05-21 08:50:25 +00:00
Mohammed Naser 4b0a53b3a3 Update role for new source build process
The variables blazar_developer_mode and blazar_venv_download
no longer carry any meaning. This review changes blazar 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 source build 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.

It looks like the project now needs authentication for the root
of the host so we'll test for that instead of 204.

Change-Id: Id1dc8d378cb57d6ab2b59da76468a4a0859466b1
2019-03-28 13:53:48 -04:00
Jesse Pretorius a8bd55beab 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: Ic3975acc1d7fa608d67b3e2171b0d862fb2b28fd
2018-10-22 12:17:15 +01:00
Taseer 3d2f1bf465 Add the MQ vhost/user creation and configuration
Change-Id: If92a53d9447c09e9a1388ca99b25380bb301b1bf
2018-09-24 12:35:47 +02:00
Taseer Ahmed 0ad0677d26 Fix functional tests for Blazar
The functional test check the responsiveness of the Blazar API. A
return of 204 code from the API verifies the success.

Rest of the changes ensure compliance with all the standards required
to make the linter and docs tests pass.

Change-Id: I640877817ad1ae312436932af87ad15094616f12
2018-09-04 18:38:34 +05:00
Zuul 017301f3ee Merge "Trivial: Fix the pep8 warning" 2018-08-17 04:45:55 +00:00
caoyuan 0dbe839d49 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: I3c341295715f974a30eed72c0a1c2f2fdcdf8bb3
2018-08-15 17:08:26 +08:00
wangqi 4677a296e0 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I08f07024a065eb66683fa6aa179ab22147f4a5b8
2018-08-06 07:17:16 +00:00
Jesse Pretorius 347d2e2da1 Remove unnecessary inventory configuration
Neither nova nor neutron are deployed in the tests,
so these inventory bits are unnecessary.

Change-Id: I31303456a680e0c38fbeeac3de7921c4ee62617a
2018-07-27 10:24:27 +01:00
Jesse Pretorius 57d0799ba7 Remove unnecessary RabbitMQ setup/vars
It would appear that blazar does not make use of rabbitmq,
so we remove the vhost/user setup and vars.

Change-Id: I3aa2a7e38fcd78212b4b88aa2b7bb28d598eaf7f
2018-07-27 09:11:59 +01:00
Jesse Pretorius c7bc980de3 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.

Change-Id: Ib41f12b837f73ea534c6a0f926a70f7a82d7a194
2018-07-17 10:34:02 +01:00
Heba Naser 8d8411196e Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Some old test cruft is also removed.

Depends-On: https://review.openstack.org/579208
Change-Id: Iee798c2660f69afe7c40cd3d2e9b801434944eff
2018-07-14 15:07:54 +01:00
Jesse Pretorius 1976e84796 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 'blazar_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 blazar_galera_address which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Id500e2b2a5b981609becc883edd3d166f70103f4
2018-06-12 20:00:15 +01:00
Jean-Philippe Evrard a9ff199983 Add blazar base jobs
This introduces the most basic jobs for blazar, and makes
sure blazar passes lint tests.

This reverts commit a5b35ebf11,
effectively re-enabling zuul jobs, and adapts the role
to our latest standards (The lint tests were failing, as
the passwords were logged while setting up Blazar server)

Functional testing starts with -nv only. However, in this
commit we added the necessary `rabbitmq_all` group to
the infra1 group, to help further functional testing.

Co-Authored-By: Taseer Ahmed <taseer94@gmail.com>
Change-Id: Ic2560b53aebf69e4784ce56db6929fe010e6b11e
2018-05-29 12:09:47 +02:00
Taseer Ahmed e620572e5c Change permissions of tests-repo-clone.sh 2018-04-11 13:58:16 +05:00
Taseer Ahmed f230746d4e fix linter errors 2018-02-19 09:31:51 +05:00
Taseer Ahmed 6e6d071927 name correction for test-repo-clone 2018-02-19 09:23:25 +05:00
Taseer Ahmed d17b8161aa update to the latest 2018-02-17 17:53:22 +05:00
Taseer Ahmed ad1142cc60 Filling in more content
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2018-01-25 12:14:58 +05:00
Taseer Ahmed a7923c8b5c Small changes 2018-01-10 12:06:28 +05:00
Taseer Ahmed 8edd924e59 Fill in the content 2018-01-10 12:05:25 +05:00
Taseer Ahmed 6d3c5fb31c Outline the structure 2017-12-24 19:17:51 +05:00