Commit Graph

10 Commits

Author SHA1 Message Date
Takashi Kajinami da507fc631 Refactor resource dependencies
This refactors resource dependencies to improve the following points.

 - Avoid unnecessary dependencies across services. For example aodh
   service does not require cinder db.

 - Restart only api service when config files like paste.ini, which
   are used only be api service is changed.

Change-Id: If2cbbc392bd54d906c7a4f51f1c7cfca69463aaf
2024-03-01 13:12:01 +09:00
Takashi Kajinami 9c02c056bc Do not restart services after policy file changes
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.

Change-Id: Ib4e93bcf7f25f31c0675c0aad584ae4c59f59c73
2023-09-11 12:27:05 +09:00
Tobias Urdin 133dd8b13d Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: Ie848a4ead3c493f01bf941e57741616d4c4cda47
2023-06-26 00:04:00 +02:00
Zuul b1e2e61cc9 Merge "Install coordination backend packages before starting services" 2021-12-08 02:15:29 +00:00
Zuul 17e730bbb3 Merge "Add missing dependency of designate_api_paste_ini" 2021-12-08 02:15:27 +00:00
Takashi Kajinami 3bba831dac Install coordination backend packages before starting services
Change-Id: I50464950c7fc6026aa9eccb24ec08142b57285cb
2021-11-29 10:20:20 +09:00
Takashi Kajinami a371c5297f Fix dependencies related to openstacklib::policy
Since [1] was merged, not only openstacklib::poliy::base but also
openstacklib::policy::default is included to manage the policy file.
This change ensure openstacklib::policy::default is executed after
the packages are installed.

[1] 069148d9ce

Change-Id: Ib272a2ac5a3943d25996cc994b54bbaed9fce39f
2021-11-29 09:32:56 +09:00
Takashi Kajinami 6fc44c6dc2 Add missing dependency of designate_api_paste_ini
Closes-Bug: #1952009
Change-Id: Ia8b654ca6936cb3db00a4081bcbfa752ce6e72b7
2021-11-24 09:40:33 +09:00
Thomas Goirand 4c72eefcaf Add support for designate_api_uwsgi_config in Debian
This patch is adding the configuration of the number of workers,
threads, and the size of the listen queue in Debian, which uses
uwsgi to run Designate API. Therefore, this patch adds a new
designate_api_uwsgi_config provider as well as a new
designate::wsgi::uwsgi class.

Change-Id: Ie007ebb4f1c861d9ac719b0d2909dbe1eb0fac16
2021-04-13 00:05:19 +02:00
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00