Commit Graph

20 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d1d727c752 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: I78c71cb33f456cfd8d255446d708a1a957e32440
2023-10-20 14:00:32 +02:00
Dmitriy Rabotyagov 045f45c12c 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: Iaab0ad50fd65287094522f77283a0112859d7730
2023-07-14 20:58:47 +02:00
Dmitriy Rabotyagov 62977e30f6 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: I5ba33177a121d75e92a929e5bd81cfd4872ef406
2023-04-11 14:32:33 +00:00
Dmitriy Rabotyagov 0de33a0243 Use uWSGI for trove-api
This migrate trove-api to usage of the uwsgi from native service to
align with other service way of deployment and since that's how service
is tested in devstack.

Change-Id: I83ad3af282942ff9714757e863f393894ac35f45
2021-04-14 13:17:44 +03:00
Jonathan Rosser 2fc3a3ee49 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: Ibec329fa5dca39222519b99ad27d78b46c11633e
2021-03-10 12:16:40 +00:00
Dmitriy Rabotyagov 00ab880a0d Drop mod_wsgi support
As we don't provide wsgi file for mod_wsgi deployment (despite
having task to do that) and trove package don't contain wsgi application
we should drop apache mod_wsgi part of the setup as it's not functional.

Change-Id: I0a12fad27d3f994d79ead52ac90873a1e1362144
2019-09-04 14:47:05 +03:00
Dmitriy Rabotyagov ed8d692fa9 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: Ib16362a8becb6666f36e5abdb93c548de2a269da
2019-07-17 19:52:24 +03:00
Guilherme Steinmüller bbbfd6e7c3 debian: add support
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta to reflect
it's support of Debian accordingly.

Depends-On: https://review.openstack.org/652206
Change-Id: I308aab7fbd93686c36043f8a29d1f4ef9e8acfe2
2019-04-13 22:12:08 +00:00
Jesse Pretorius b7e7f7292c Rename SUSE vars file and remove mysql-python
The SUSE builds are failing due to a change in the galera_client
role causing the trove role's vars file to be found before the
galera_client vars file. We therefore rename the trove vars file
for SUSE. This also makes transitions between versions easier.

The mysql-python package is no longer maintained. We are using
pymysql instead, so this package does not need to be installed.
This resolves current build failures due to the mysql-python
package not being installable due to the new version of MariaDB
being used.

Depends-On: https://review.openstack.org/602924
Change-Id: Iaee84e8cec7c19d306924adf3743e03da6fa6b4f
2018-09-15 20:49:31 -06:00
Zuul dc438b72b2 Merge "Switch to using project-templates" 2018-08-04 22:12:48 +00:00
Jonathan Rosser 27ea37c576 Switch to using project-templates
In order to have more centralized configuration, switch the role
to use the project-template instead.

Add vars for opensuse-423

Change-Id: I2ba2aab7a7e331763fad4790c5dff1c1006a9b90
2018-07-31 11:37:54 +01:00
Jonathan Rosser fe543ebbf1 Use generic vars file for ubuntu
These vars work for both Xenial and Bionic

Change-Id: If9412b3da3f0dc777316ca06ba4de92986950f65
2018-07-31 10:21:30 +01:00
Jesse Pretorius 2afcbefe3d Reduce distro packages installed
It's not clear why all these packages are being installed.
They don't seem to relate to the service itself or the role's
requirements to run the service.

Change-Id: Icc7feffcc38174c2e35f16d2b65edae9e8d27b66
2018-06-29 14:21:10 +01:00
Aaron Mehar 2701e37f78 Adds CentOS 7 support
Fix circular python issues, same fix in Keystone and Barbican

Change-Id: I77e60ed42ab43e3f5984b8a52dc5898325df1c8e
2017-11-23 16:26:54 +00:00
Andy McCrae bfdbbf6065 Remove Trusty support from os_trove role
Change-Id: I5f9d920cc99bcc62859663434b2615c317d8fbdc
Implements: blueprint trusty-removal
2016-12-15 15:10:27 +00:00
Donovan Francesco (drifterza) e0cee746f4 Use new ansible package module to install distro packages.
From Newton onwards we're able to take advantage of
the Ansible package module, instead of conditionally
executing the apt or yum module.

Implementing this is an optimisation which we can do
in master and backport to stable/newton,
reducing the execution time.

Reference: http://docs.ansible.com/ansible/package_module.html

Change-Id: Id2f6ff7e1bd016e07f0b7a10d9ef2844070eb1c5
Related-Bug: #1642654
2016-11-25 11:20:13 +02:00
Donovan Francesco f12ecd2e83 Add scaffolding for OpenStack-CI tests
Change-Id: I768a5ece1417933248c76fe7e269b9248d0baed1
2016-08-26 16:26:42 +02:00
Donovan Francesco (IS) 88df0abd2d Updates 2016-08-25 14:59:31 +02:00
Donovan Francesco (IS) 28f3145e6b Update 2016-08-25 14:56:41 +02:00
Donovan Francesco 4b80fd260d Initial Commit 2016-08-25 14:54:34 +02:00