Commit Graph

26 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 777be60987 Cleanup after repo_build and pip_install retirement
Change-Id: I7c4cd5227a76772ef391afa796c53bf5efd58326
2020-05-12 23:09:23 +03:00
melissaml e3ab210e51 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ie3f8c4f844df0d67486d47d15320c327e938f20c
2019-05-06 19:31:55 +08:00
Dmitriy Rabotjagov 2a199a9621 Update role for new source build process
The variables tacker_developer_mode and tacker_venv_download
no longer carry any meaning. This review changes tacker 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.

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.

In addition tacker init was replaced by the standard systemd_service
role. Due to this was added new variable tacker_init_config_overrides.
program_override variable has no influence now.

In config notification_driver was deprecated in favor of driver from
oslo_messaging_notifications

Change-Id: Id5629cb631b23887383fa23f472052477edbc4eb
2019-03-28 17:33:58 +00:00
Jimmy McCrory 3022704d39 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: I1a41a2953f0274953c7695246d700ad96dbaf0d3
2018-10-20 15:28:29 -07:00
caoyuan 36de37b3ab 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: Icd18450a618e35ea506c25507f08133547394b87
2018-08-15 17:16:35 +08:00
Jesse Pretorius 59e61f1390 Move MQ vhost/user creation into role
There is no record for why we implement the MQ vhost/user 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 two new variables:
- tacker_oslomsg_rpc_setup_host
- tacker_oslomsg_notify_setup_host

These are used in the role to allow delegation of the MQ vhost/user
setup for each type to any host, but they default to using the first
member of the applicable oslomsg host group.

We also adjust some of the defaults to automatically inherit existing
vars set in group_vars form the integrated build so that we do not
need to do the wiring in the integrated build's group vars. We still
default them in the role too for independent role usage.

Finally, we remove the test mq setup tasks and clean up any unused
or unnecessary variables configured in tests.

Change-Id: I481b2358bf3b93fba3057b825fc9e0f626d616ba
2018-07-27 11:21:35 +00:00
Andy Smith 96e911f446 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and are used to generate the messaging
transport_url for the service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf
* Add oslo.messaging to tests inventory and update tests
* Install extra packages for optional drivers

Change-Id: I88fa6bd04ebad08211570d46ed464409b5896123
2018-07-26 09:08:53 +00:00
Jesse Pretorius e911fcf505 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: Ia6c57495b8d6090a0b98f17554288a310388c3e2
2018-07-14 14:25:03 +00:00
Jesse Pretorius c1d339219e 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 'tacker_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 'tacker_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

The extras folder is removed given that tacker's playbooks have been
merged into the integrated repository.

Change-Id: I7c300ca89657863d58f8dc1178f6c57400bcaa80
2018-06-28 16:56:47 +01:00
fpxie 29a16a8412 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ib9ce9e1b5ac042c62e27b6c612b1794de80d2c64
2018-05-08 13:57:14 +08:00
Jesse Pretorius 5e622b95bc 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: I2bfe5bd4b5c61aaf30f77618c3364d87f7fab386
2018-03-28 10:16:28 +01:00
Zuul f94c3f1946 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:09:13 +00:00
Jesse Pretorius 6f511d06fe 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: I7213508738ae0e44a09da5d2064389375ba2effc
2018-03-25 16:21:34 +01:00
Jesse Pretorius 0783f1b9f6 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: I373651ee67b0d0d847d4f940e1e5c81466d7bbe5
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:21:54 +00:00
Jesse Pretorius d17dfab944 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: I669a892e241bea50d505687b533e8a2aaa516bc5
2018-03-13 16:52:25 +00:00
Zuul d5f5a9ddf9 Merge "Remove jinja delimiters in when" 2018-02-15 14:56:11 +00:00
Major Hayden 680247e65a
Remove jinja delimiters in when
Change-Id: I6e744e9c96936d69cda3981ba4d444c54e2ec103
2018-02-14 17:17:06 -06:00
OpenStack Proposal Bot 98925fb8e5 Updated from OpenStack Ansible Tests
Change-Id: I67e3422ba8bd39fa545a76ea04842ee084309562
2018-02-14 20:07:24 +00:00
Jesse Pretorius 176837ee2c 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.

Depends-On: I0391ec310c4eede436011a48490e3c524c8ddf4d
Change-Id: If1f638bf5e3bd1baefdce57a8a1ed44daf6b5c61
2017-10-18 17:32:42 +00:00
OpenStack Proposal Bot 55723c9c94 Updated from OpenStack Ansible Tests
Change-Id: I8838753cda62f21011d0e5d1a5bf475ea3e442fb
2017-10-12 20:45:07 +00:00
Andy McCrae f1e8533a91 Revert "Update roles & vars for stable/pike"
This was meant for stable/pike branch and has now been properly PR'd
against stable/pike:

https://review.openstack.org/#/c/499955/

This reverts commit cff34226fe.

Change-Id: Ia8e04bfa674ef3beb4910666b59568d6cd1b83e3
2017-09-01 11:17:31 +01:00
Andy McCrae cff34226fe Update roles & vars for stable/pike
Change-Id: I1483889e01b994a77e6d101cdf0f435fae457ae9
2017-08-30 15:58:21 +01:00
Manuel Buil 61db3ab8ad Bug fix: Changed the tacker server tcp port
The official tacker port is 9890 and not 8888

Change-Id: I10a6a4ce176ffb351a4a8f1fd1e944396e84cefa
Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-08-21 12:01:57 +02:00
Manuel Buil b873fcd409 Fill the tests directory
The tests directory is needed to pass the gates

Change-Id: I647d7487177a046120e5f7f43adf48e2aa821f8a
Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-08-09 10:30:28 +02:00
Jean-Philippe Evrard 27991691da Bootstrap tacker role
- Make possible to use gerrit with tacker role
- Introduced Vagrant file like the other roles
- Introduced gating files
- Introduced basic docs

Change-Id: I632010fe7de9a91614bc8088fa7321847f3aa9c1
2017-07-20 15:41:58 +02:00
root bb87b62ea4 first commit 2016-09-20 19:19:12 +00:00