Commit Graph

20 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov e164cd56d8 Add quorum queues support for service
This change implements and enables by default quorum support
for rabbitmq as well as providing default variables to globally tune
it's behaviour.

In order to ensure upgrade path and ability to switch back to HA queues
we change vhost names with removing leading `/`, as enabling quorum
requires to remove exchange which is tricky thing to do with running
services.

Change-Id: I2e3f464534bffe9edd9d969c8d6a24adce06c02c
2023-10-20 14:17:25 +02:00
Dmitriy Rabotyagov dddc665165 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Change-Id: Ice967ef99da11e6bd5a7dffc0a5e3d377f8598f4
2023-07-14 21:30:29 +02:00
Dmitriy Rabotyagov 330b91efec Ensure service is restarted on unit file changes
At the moment we don't restart services if systemd unit file is changed.

We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now  we ensure that role handlers will also listen for systemd
unit changes.

Change-Id: I53545ede7b2f129bbbf3518ab517f6f37d78598e
2023-05-19 09:05:51 +00:00
Dmitriy Rabotyagov 51e347dcb9 Install kata containers from source
At the moment there are no repositories exists for Ubuntu/Debian
to install kata from. The only options are snap or source installation.

To avoid using snap, we're fetching kata release from github and
proceeding with source installation.

With that we also update docker version to existing in the repos,
as otherwise it get's 23.0.0 installed, which fails to startup
due to removal of standalone mode support.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/883194
Change-Id: I3ee976062d9288536270f9b1d80750749174af22
2023-05-19 09:01:00 +00:00
Andrew Bonney 2a05044f74 kata: fix link to now removed mirror location
This is a temporary workaround and in the long term the kata
support either needs removing or refactoring to use a more recent
deployment method or installation from source.

Change-Id: I60c8de5d7ee0944bab361768c712aad06393a536
2022-02-01 07:58:40 +00:00
Damian Dabrowski 996dce8a8c Enable recursion in combine() filter
Ansible's combine() filter needs recursive=True parameter in order to recursively merge nested hashes.

https: //docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries

Change-Id: Ie081e4e9bdf84e0f3c1f0116fcd6c76e47573895
2022-01-11 19:18:58 +01:00
Andrew Bonney eb78628c36 kata: disable installation on debian bullseye
Kata packages for debian 11 are not currently available without
involving Snap or source builds. As Kata is not essential to run
Zun, installation is disabled, but deployments could install it
themselves before switching 'zun_kata_enabled' back to True.

Bullseye CI is disabled temporarily as kernel panics are
encountered during tempest tests. This wastes a significant
amount of CI time.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_cinder/+/819304

Change-Id: I90fc8304dc7c398fdfccba31173c86f0cbf0ea7e
2021-11-30 17:07:03 +00:00
Jonathan Rosser 599e30daaa Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ie427a6343fd888c9a1dd5c37a6285d33cd008b3e
2021-05-05 11:57:35 +01:00
Jonathan Rosser 83694d6750 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: I59e808ff2dc75e36890d271db0ba7f40f9c108ed
2021-03-10 12:16:40 +00:00
Andrew Bonney fb440ce3d0 Add support for kata container runtime
This adds support for kata containers by installing and configuring
the relevant runtime.

The default remains as 'runc' but can be adjusted using the
variable added to the defaults.

Change-Id: Iea07012d092333c656b397f97b541a2f0a5f0e44
2021-01-12 08:30:57 +00:00
Andrew Bonney 6d6a4beb28 Update zun role to match current requirements
Brings together a set of existing patches and attempts to address
permissions issues with the kuryr-libnetwork plugin.

Defaults are chosen to match the requirements of the tempest tests

Change-Id: Ie674947ba6673a92e53f85de2cc8acdae5788f8f
Depends-On: https://review.opendev.org/767469
2020-12-17 08:44:37 +00:00
root 649f8f0368 Add centos-8 support
Renaming redhat-7.yml to redhat.yml for centos-8 support.

Depends-On: https://review.opendev.org/742166
Change-Id: I05f91dbcd64c8b3f113a920b32ce603bdd58a0d0
2020-08-04 14:14:45 +00:00
Dmitriy Rabotyagov bc39aac81b Start using uWSGI role
Move service to use uWSGI role instead of internal python daemon.
This aims to unify deployments by using uwsgi for all services
api which support using them as wsgi applications.

Depends-On: https://review.opendev.org/693528
Change-Id: I69044a13106f16bbbef8ae83e79a08aa127a7d2a
2019-11-08 16:36:56 +02:00
Dmitriy Rabotyagov 0839ec0935 Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files
to journald. We also disable uwsgi logging, since it dublicates
requests that are logged by service itself.

Change-Id: Id466ac20d9d18fa86a4615a73433a51720bafc8e
2019-07-17 20:32:48 +03:00
Dmitriy Rabotjagov 373e2d3042 Convert dynamic includes to static imports
When task/role files are included using include_tasks, tags are not
passed to the included tasks. As a result, tags like neutron-config
do not have the intended effect. This patch changes include_tasks
to import_tasks for all cases where dynamic vars or loops are not used
so that tags are properly handled.

Reference -
https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse.html
https://bugs.launchpad.net/openstack-ansible/+bug/1815043

Change-Id: I7c4c7e6887cc756998ce028355402705a45e18ed
2019-06-24 19:26:20 +00:00
Guilherme Steinmüller 98701abb97 debian: add support
This patch updates the meta to reflect it's support
of Debian accordingly as well as rename ubuntu vars
file to debian.

We also add in vars/debian the correspondent docker-ce
uri and gpg_uri.

Change-Id: Icf91eee6e369d9a6a95dd0c8772c2760eaff5bd2
2019-04-11 00:37:05 +00:00
Dmitriy Rabotjagov 0684afa2c5 Update role for new source build process
The variables zun_developer_mode and zun_venv_download
no longer carry any meaning. This review changes zun 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.

As part of commit xenial testing was removed. Instead centos 7
and opensuse 15 functional tests were added.

Change-Id: Ic8fc09372cf7397df6757c115b2c05dbb5db68f1
2019-03-29 12:43:52 +02:00
Jesse Pretorius 80591c56b5 Rename SUSE vars file to cater for any version
To make the transition between versions easier,
we rename the vars file. This also resolves
issues when meta-dependent role inclusions do
not pick up the correct file when using the
include_vars task with multiple search paths.

Change-Id: I4aaab0cb8a039b752c41a9e5de52d5dadd630dbd
2018-09-15 18:40:06 -06:00
Jesse Pretorius 32ca606479 Use generic vars file for ubuntu
These vars work for both Xenial and Bionic

Change-Id: I62b6cfefea64880f4c8bbd86f4667c73d3e93f52
2018-08-01 11:39:20 +01:00
Kevin Carter daf9f9d60a
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-05 15:36:33 -05:00