Commit Graph

19 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 54813d6be4 Enabled memcached usage for token caching
As of today blazar warns out on startup that using the in-process token
cache is deprecated for quite a while. In order to get rid of this warning
we add memcached configuration for keystone token.

Change-Id: Ibd80231bdb1dfe2e66e69c4538a2129c7f84c92f
2024-01-05 23:06:54 +01:00
Dmitriy Rabotyagov 21f304634e Add variable to define list of manager plugins
In order to be more flexible regarding required plugins, we implement a
new variable that will allow to set a list of enabled filters for blazar.

With that we also enable floatingip plugin that has been added to Blazar
a while ago.

Change-Id: Iaff9284eec3a57a6470afb5e912cad17970baa2f
2024-01-05 22:53:16 +01:00
Dmitriy Rabotyagov 06291ec0e6 Create required freepool aggregate
For normal functioning of Blazar reservation it expects a nova agregate exist
to be used for host reservation.

Thus, to make deployment more convenient for deployer we add fuctionality
of creating such aggregate.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/904786
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/878794
Change-Id: I7f56b8c8f2394d5fae1476441c8e2e2a5f07467c
2024-01-05 21:30:49 +00:00
Dmitriy Rabotyagov 676846b6a2 Fix Blazar authentication and endpoints definition
Closes-Bug: #2048048
Co-Authored-By: Alexey Rusetsky <fenuks@fenuks.ru>
Change-Id: I0dc54f1de1992b24cac7fcdc88d04daa2901cbc4
2024-01-05 21:13:07 +00:00
Dmitriy Rabotyagov 856b4401a1 Add quorum 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.

Change-Id: If9a9ee764dd41767aaa1285903eb3c21cc0da40c
2023-09-28 14:29:25 +00:00
Dmitriy Rabotyagov 8242307cf7 Use proper galera port in configuration
While <service>_galera_port is defined and used for db_setup
role, it's not in fact used in a connection string for oslo.db.

Change-Id: I753c328569e1ee6d69a0ad2168b6493a3c7438f9
2023-08-07 07:03:11 +00:00
Dmitriy Rabotyagov 711160baea Support service tokens
Implement support for service_tokens. For that we convert
role_name to be a list along with renaming corresponding variable.

Additionally service_type is defined now for keystone_authtoken which
enables to validate tokens with restricted access rules

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/845690
Change-Id: I3a1c2d87a39eaf342411f3b607bc909f924944cb
2022-06-15 17:43:49 +02:00
Damian Dabrowski 7e7b7347f7 Database connection pooling improvements
- Implemented new variable ``connection_recycle_time`` responsible for SQLAlchemy's connection recycling
- Set new default values for db pooling variables which are inherited from the global ones.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819424
Change-Id: Ib4a0581c5bbe2b14abcd80f97ac2e36ec0dbf4b1
2021-12-03 11:40:31 +01:00
Dmitriy Rabotyagov 956c84d1a4 Refactor galera_use_ssl behaviour
With PKI role in place in most cases you don't need to explicitly
provide path to the CA file because PKI role ensures that CA is trusted
by the system overall. In the meanwhile in PyMySQL [1] you must either
provide CA file or cert/key or enable verify.

Since current behaviour is to provide path to the custom CA we expect
certificate being trusted overall. Thus we enable cert verification when
galera_use_ssl is True.

[1] 78f0cf99e5/pymysql/connections.py (L267)

Change-Id: I7042118a17d533c472f09bb2098bbc3c01195477
2021-09-21 11:14:02 +00:00
Jonathan Rosser 30c2316e6c Add variables for rabbitmq ssl configuration
Change-Id: I4ca1b85b67a6f6fd4f951c1cb3c256ec959e7ee4
2021-05-17 07:56:03 +00:00
Kevin Carter 3439e7826d Correct notification driver
The notification driver setup was resulting in the driver and connection string
on the same line. This is caused by the case statement and how jinja formats
the template when a case statement is present. This change modifies how the
driver string is created using a ternary, which will eliminate the case
statement and render the value of the diver correctly.

Change-Id: I9614af2d8a7e908327d2c8ee64f75070dbccfb08
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-04-24 20:28:44 +00:00
ZhijunWei 6703cf06dd Update messaging notification configuration
This patch add the conditional inclusion of the notification
section of the service configuration. This ensures that oslo.messaging
notifications use the correct transport for deployments that have
separate rpc and notify messaging backends. For example, if the
transport_url is not provided in the notification section of the
service configuration, the transport_url specified in the default
section will be used instead.

This patch conditionally selects the notifier driver. The noop
driver will be selected when notification publishing is disabled.
The messagingv2 driver is selected when notification publishing is
enabled.

Change-Id: I2b4c4a119fa300fb5b64eaaf947e3c688bdb6e84
Closes-Bug: #1794320
2018-09-27 02:17:07 +00: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
Kevin Carter ed9e0d5399
Convert role to use a common systemd service role
This removes the systemd service templates and tasks from this role and
leverages a common systemd service role instead. This change removes a
lot of code duplication across all roles all without sacrificing features
or functionality. The intention of this change is to ensure uniformity and
reduce the maintenance burden on the community when sweeping changes are
needed.

Change-Id: Ife802766cefa8862f2b0e42f06c100b30d65edf8
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-07-31 14:56:47 -05:00
Taseer Ahmed ba78873d38 Update the service settings 2018-02-17 18:47:01 +05:00
Taseer Ahmed d17b8161aa update to the latest 2018-02-17 17:53:22 +05:00
Taseer Ahmed da359ee810 address comments 2018-02-16 16:08:10 +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