Commit Graph

18 Commits

Author SHA1 Message Date
Takashi Kajinami 8b3054a13f 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: I6a4c65e81b97235d0ce8a142245927c92ab6e48d
2024-03-04 09:49:06 +09:00
Takashi Kajinami d1401c48ad Support image property protections configuration
This allows users to configure the image property protections
feature[1] using this module.

[1] https://docs.openstack.org/glance/latest/admin/property-protections.html

Closes-Bug: 2036732
Change-Id: I3b985b2b280e6d2b678078f4430db02dccca657c
2024-01-03 11:05:00 +09:00
Takashi Kajinami 6c161ee7f8 Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

Also, glanceclient is not required by glance itself so the support
package tag can be removed.

Depends-on: https://review.opendev.org/899594
Change-Id: I50f0775a2f20b9b4f3aca51840cb4ab48ab14120
2023-11-20 00:38:34 +09:00
Zuul 3ac36bf615 Merge "Avoid unnecessary service restart after modifying glance-cache.conf" 2023-09-11 16:51:56 +00:00
Takashi Kajinami 29de49f662 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: I83b2e24fe124b05673372cd832b034b4d3ccc853
2023-09-11 12:27:59 +09:00
Takashi Kajinami 7e75ca5163 Avoid unnecessary service restart after modifying glance-cache.conf
The glance-cache.conf file is not used by glance-api, but it is used
by only CLI commands. So we don't have to restart the glance-api
service when this config file is modified.

Change-Id: I49d5fa3965af0faedd54b6cf21261b66516a3643
2023-09-11 02:14:53 +00:00
Takashi Kajinami 1debde296f Ensure openstackclient is installed at the right timing
This adds the order enforcement to make sure that openstackclient
package is installed before completing the service phase, so that
openstack CLI is available when neutron resources are created.

Change-Id: I190b28fe480eb659808b74f50e2eae6e499869de
2023-08-11 17:38:14 +09:00
Tobias Urdin 8d4873a3af Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I83d3ff31083dd687c5b2d76c8297b5e74a7caa1a
2023-06-26 00:04:21 +02:00
Takashi Kajinami 1473037e7f Add support for rootwrap.conf
Change-Id: Ib28c3f1a8b46c439a16874c5695f121bf63c3bb9
2022-07-11 14:22:58 +00:00
Rajesh Tailor 499a898468 Fix typos in parameter descriptions
Change-Id: Iacebc227e074da592aa0ca8ff6f8226f3e850a66
2022-06-17 16:17:30 +00:00
Takashi Kajinami 92545bb362 Fix missing dependency about policy config
Change-Id: I9b7776db95c02759fbaf4332cc0798580f3c9d30
2021-11-29 09:36:02 +09:00
Takashi Kajinami e90fd4423e Remove the unused glance-config-file tag from deps
The glance-config-file tag is no longer used in any manifests.

Change-Id: Idea3a6b640ecc64049100128f51213fbaf7388ee
2021-11-24 09:53:49 +09:00
Thomas Goirand 36e09b4bb2 Add support for glance_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 Glance API. Therefore, this patch adds a new
glance_api_uwsgi_config provider as well as a new
glance::wsgi::uwsgi class.

Change-Id: If02def38d583f2255b8a0219dc53c26f0980521c
2021-04-09 23:43:59 +02:00
Takashi Kajinami 2ae1115e42 Clean up remaining items for glance-registry
This change drops remaining items about support for glance-registry.
These were deprecated by the removal patch[1] which was merged during
the previous cycle thus we are now ready to drop them.

[1] 11599ba429

Change-Id: If2d371a372cf4d95d84e3d71fb4ce272565ac659
2021-03-17 07:41:23 +09:00
PranaliD 091c01b7b8 Enable image import conversion & image output format
Glance image conversion configuration is not enabled by
puppet-glance in glance-image-import.conf.

Adding image_import_plugins & output format parameters to enable
glance image conversion.

Change-Id: I098aa0cabf2518b8861d5b58b885d9bdef54a7f6
Closes-Bug: #1807366
2018-12-10 13:41:53 +05:30
Denis Egorenko 1123f79809 Drop Glare service from puppet-glance
Glare service is now totally dropped from Glance [1] and now should
be configured only with puppet-glare module.

[1] https://review.openstack.org/#/c/427535/

Change-Id: I695ad518285a92a80dd7a9d5bebd11e804359224
2017-09-20 20:31:08 +00:00
ZhongShengping 31ca15b037 Add oslo::db to dependency chain
All db settings should be applied and all releated packages should be
installed before dbsync starts.

Change-Id: Iae4f582d43aabeafa7fc50447addee9468d91f2a
2017-01-22 21:40:05 +08:00
Clayton O'Neill 18b010975c 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: If683fbd098e701a3c4da91941cf818b18b41b209
2016-06-17 13:17:34 +00:00