Commit Graph

436 Commits

Author SHA1 Message Date
Takashi Kajinami 953143d0b7 Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: I1ff921226e2b5b2da6f556b7e7ead7bdbfcebaa0
2024-03-14 09:25:42 +09:00
Zuul 6966c7de68 Merge "Add support for image_cache_driver option" 2024-03-07 18:03:40 +00:00
Zuul 8e4ccdfe04 Merge "Refactor resource dependencies" 2024-03-05 03:50:52 +00:00
Takashi Kajinami e12c8754d2 Add support for image_cache_driver option
... so that users can select non-default drivers such as centralized_db
driver.

Change-Id: I8d9d9161b46c47d09c31baff2f732a532640f208
2024-03-05 11:24:37 +09:00
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 ff0dae837e healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: Ia7d4a2ff0d229b3c6c5107e0fff22ef20977bc37
2024-02-26 01:25:04 +09:00
Takashi Kajinami 9d3a285e19 Add support for oslo.reports options
Depends-on: https://review.opendev.org/804804
Change-Id: I11a2d23fb6f28ec619501e19ef6e7579d6659036
2024-01-30 00:39:04 +09:00
Zuul 23d579d515 Merge "healthcheck: Expose allowed_source_ranges" 2024-01-17 16:13:21 +00:00
Takashi Kajinami 00c8714ccd healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: I1c02af63f31696be7cd9fbd859c81f9f0a919416
2024-01-17 02:56:42 +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
Takashi Kajinami 5818316d39 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: I5830f13c2081033076bb0ed8a2854e2fc32a6725
2023-09-15 10:20:53 +09:00
Takashi Kajinami b1aaafa39b Add [DEFAULT] lock_path to glance-cache.conf
This option is required to access image data when cinder backend is
used.

Related-Bug: #2034893
Change-Id: Ic5e1d1c55fe31d48b8c9605beaabbc12446682dd
2023-09-11 10:44:08 +09:00
Takashi Kajinami 10d7bbdeef Add all store options to glance-cache.conf
The glance-cache.conf is used by the glance-cache-prefetcher command
which requires access to backend store. Thus all store options should
be added to the glance-cache.conf file so that backend store can be
loaded properly.

Closes-Bug: #2034893
Change-Id: I8f0b2be8b138d267364f20ff81876902b225d29e
2023-09-08 18:56:20 +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 2912393664 Remove redundant handling of empty flavor
Setting an empty string('') to [paste_deploy] flavor results in
the exactly same behavior as removing the [paste_deploy] flavor option.

Thus we don't really need the special treatment for an empty string.

Change-Id: Ib50da09ac6fd2499fc922d5d0e1115cd600ecb69
2023-06-19 18:33:52 +09:00
Takashi Kajinami 945280277f replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Note that this change removes the pattern validation about [DEFAULT]
pipeline. The existing pattern check is incomplete, because of
the following two reasons.
 - the pattern does not guarantee that the requested pipeline is
   really supported or not
 - the pattern accepts a+b+c but the existing pipelines in glance
   does not have any entries with this pattern

Change-Id: I156d9a3a30ba6c523a0b16a14bf8a1839b61fb78
2023-06-19 18:33:38 +09:00
Takashi Kajinami 2f23343e4f Use static name for package resource
... instead of using the actual package name. This helps users to
identify the resource name more easily.

Change-Id: Icc6a27685f3b3747b4e0562eb8066aa3cce5516c
2023-03-20 00:47:47 +09:00
Takashi Kajinami bb44895619 Allow customizing status of cron job
... so that users can even remove the job. This follows what was added
to puppet-nova by [1].

[1] https://review.opendev.org/c/openstack/puppet-nova/+/877096

Change-Id: I1f6ff0d39998695d2c69fd0cfc0bcf08e2cafe4a
2023-03-13 23:00:44 +09:00
Takashi Kajinami 293c3d20de Expose executor_thread_pool_size
This option has been supported by puppet-oslo but has not been
configurable.

Change-Id: Ifb38f1275721387ba5166feb351c27e4c3ae2999
2023-03-06 13:54:04 +09:00
Takashi Kajinami 43735fb127 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iebdb33dd18a8f8d18840ff3e5f4608f021a78bfa
2023-03-02 10:54:36 +09:00
Tobias Urdin cad31f4a21 Set bind_port in glance::api to $::os_service_default
Change-Id: I9e606a77f47ecceb22ca1a57adfa3e9d2be441f7
2023-02-23 15:09:21 +00:00
Takashi Kajinami e0b31190c2 Expose policy_default_rule
The option has been managed by the underlying puppet-oslo module but
has not been configurable. This introduces the parameter to customize
the option.

Change-Id: I55a19eb7ed16f87f51ca472e658fc845b1a86dac
2023-01-23 14:26:56 +09:00
Takashi Kajinami 7c1dc7144b Ubuntu: Make sure python3-rados is installed
The rbd backend implementation of glance_store requires not only
python3-rbd but also python3-rados. In CentOS the python3-rados package
is installed as a dependency of python3-rbd, but in Debian and Ubuntu
that dependency is not defined and we should install python3-rados
explicitly.

This fixes the missing python3-rados package in Ubuntu, by using
the meta python3-ceph package which installs all python libraries.

Closes-Bug: #2002934
Change-Id: I620c607f09e98f1ce1d7ba34d1b797dbef8402ad
2023-01-16 14:13:54 +09:00
Zuul 0176638d47 Merge "Deprecate support for [DEFAULT] cache_prefetcher_interval" 2022-09-08 14:32:26 +00:00
Takashi Kajinami 89857141d1 Deprecate support for [DEFAULT] cache_prefetcher_interval
... because the parameter was already removed from Glance.

Depends-on: https://review.opendev.org/c/openstack/glance/+/842070
Change-Id: I6a8029e9f85ef0511fe52292901fc66fc437b57b
2022-09-08 01:22:57 +09:00
Zuul 4478a256d8 Merge "Add new option for api: public_endpoint" 2022-09-05 19:30:23 +00:00
Trygve Vea 709b83b390 Add new option for api: public_endpoint
When running glance-api behind a proxy or load balancer that hides
glance behind an extended base URL, it is necessary to provide
information about the base URL to glance-api to ensure that clients
know where to pass subsequent requests.

Change-Id: I9bebee01c2580f0500a069f5ab57ac2a8c329389
2022-08-29 14:02:09 +00:00
Takashi Kajinami ab56cfb33a Remove redundant class inclusion
The apache class is already included by the openstacklib::wsgi::apache
defined types and the apache::wsgi class and the apache::ssl class is
automatically included by the apache::vhost defined type.

This removes the redundant inclusion of these classes.

Change-Id: If132d46ec1929ed56e16a9b615010ea0535282ba
2022-08-27 12:36:13 +09:00
Takashi Kajinami 3aa1e7697d Remove deprecated keymgr_* parameters
These were deprecated during Xena cycle in favor of the new separate
classes to customize key manager[1].

[1] bc7651fa5f

Change-Id: Id3395fd58cbdd7e686a08c8369cd38c3e322628b
2022-08-16 15:40:18 +00:00
Takashi Kajinami 3c24186052 Remove unused items from platform_params
Trivial-Fix

Change-Id: Id3f8a3038993095475bdde0e126fce106d54acde
2022-08-12 01:36:38 +09:00
Takashi Kajinami 23584e89be Adapt to new type validation in puppetlabs-apache
The puppetlabs-apache module is enforcing more strict data type
validation[1].

This change updates the default values to adapt to that change.

[1] f41251e336

Closes-Bug: #1983300
Depends-on: https://review.opendev.org/851652
Change-Id: I652d82c449371bf4df73d1384ddf1633a76224e9
2022-08-02 23:18:32 +09:00
Zuul 09699ef632 Merge "Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"" 2022-07-25 20:08:16 +00:00
Takashi Kajinami add08e3d57 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit ae04e3ac34.

Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).

Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.

Depends-on: https://review.opendev.org/850705
Change-Id: I6cfea1ca8dbf7633ea6b3805666237ec43533b4b
2022-07-24 00:36:47 +09:00
Takashi Kajinami 53eefc2d95 Add support for running glance-api by httpd+mod_wsgi
This change introduces a basic implementation to run glance-api as
an application managed by httpd+mod_wsgi, instead of a standalone
eventlet server.

Change-Id: I9421ec891c535503ff61ad6107a1935a32b4b263
2022-07-15 10:33:39 +09:00
Takashi Kajinami fa5fcb4ab5 Add support for [paste_deploy] config_file
... so that users can customize that option using the native interface.
In TripleO we append additional arguments(to load glance-cache.conf)
and we need to set the option explicitly to ensure the correct file
path is used.

Also, the pipeline parameter is confusing because of its naming
different from the actual parameter in Glance, so this change renames
the parameter as well.

Change-Id: I3d6ce07f44ae526207a30d4b57c2fec7cd6fa3ca
2022-07-14 13:47:13 +00:00
Zuul 40f1de0127 Merge "Add support for rootwrap.conf" 2022-07-11 23:37:18 +00:00
Takashi Kajinami 1473037e7f Add support for rootwrap.conf
Change-Id: Ib28c3f1a8b46c439a16874c5695f121bf63c3bb9
2022-07-11 14:22:58 +00:00
Takashi Kajinami 1bd9dfddcb glance::api: minimize parameters passed during unit tests
In some test cases for glance::api, we set most of the parameters by
actual default values explicitly, instead of letting the class to set
these by the defaults. This is redundant and makes it hard to find out
which parameters are actually set during the tests.

This change removes the redundant "default" values and makes test cases
pass minimum set of the parameters.

Change-Id: I7cfc4a17e0e42d1929098673b654d72b11a8e86b
2022-07-02 18:03:15 +09:00
Alan Bishop 6f61ecd9c5 Configure the oslo.concurrency lock_path
A recent change in os-brick [1], which is used by cinder backends,
requires external file locks. This patch adds support for configuring
the lock path, with a default value that matches the corresponding
lock paths used by other services that use os-brick (namely cinder
and nova).

[1] I6f7f7d19540361204d4ae3ead2bd6dcddb8fcd68

Closes-Bug: #1980539
Change-Id: I5ea6766656f4227a1c514777c03bbf78d4ac59cd
2022-07-01 21:47:45 -07:00
Zuul d0899bb956 Merge "Add support for reserved backend options" 2022-06-22 11:58:20 +00:00
Takashi Kajinami d82df7aedd Add support for reserved backend options
This change introduces support for the following two reserved backends,
which were added by [1].

[1] 6dba83ba3a7c047df282f2edb7217548f43d6251

Change-Id: I9e809f5ba25516b0974015ea5259d1ab7f5bb1ca
2022-06-21 01:50:16 +09:00
Takashi Kajinami 21c95657ef Add sleep in cache cron jobs
... so that users can avoid executing the same cron command at the same
time in multiple nodes.

Technically this can be done without this change by setting a different
cron job schedule in each node but it requires complicated parameter
setting.

Change-Id: I596879d5d46f23e54fe344d5bf93a57837a6d287
2022-06-20 22:26:06 +09:00
Takashi Kajinami 5d977c750a Ensure [DEFAULT] show_multiple_locations is cleared
The parameter was already deprecated, but it is still required in
some setup (eg. to leverage in-storage copy in a deployment with Ceph
used for cinder/glance).

Considering the parameter is still valid, this change ensures it is
removed by default, so that old value is properly removed from config
file.

Change-Id: I2477d5e271b017ee12546c67f4c3f3f9be89c062
2022-04-25 18:26:29 +09:00
Takashi Kajinami 2a2f349d8a Deprecate parameters for native ssl support
Glance removed native ssl support during Ussuri cycle[1]. This change
deprecates the remaining parameters to set up the feature, so that
we can remove these ineffective parameters in a future release.

[1] 06b2465f598c014451c244d47c2ded4f1e2c6947

Closes-Bug: #1965776
Change-Id: Ie4a984a4b7136304425588856eabff2e60d1cbba
2022-03-22 17:17:00 +00:00
Takashi Kajinami 5dd2f27a7e Create a separate spec file for the base glance class
... and removes the test case for non-supported OS as that is not
globally implemented.

Change-Id: Ifa5bd8913099280b130cd7698b46914ab19ca364
2022-03-04 23:44:37 +09:00
Takashi Kajinami ae04e3ac34 CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: I3c85c7e0976ff353090cc2b7737112cf119b6f38
2022-02-16 00:22:09 +09:00
Takashi Kajinami 3162065b1d Add missing 'openstack' tag to python3-ceph package
Packages managed by Puppet OpenStack modules should have 'openstack'
tag. This change fixes one package resource without that tag.

Also, this change replaces ensure_resource by ensure_packages, so that
more specific function for package resource is used.

Change-Id: I281c7f4504f7205e7f23458364288179da89d445
2022-01-17 18:46:32 +09:00
Takashi Kajinami 24b8c76e19 barbican_service_user: Accept system scope credential
This change allows usage of system scope credentials in addition to
project scope credentials, to use service user token when accessing
Barbican API.

Depends-on: https://review.opendev.org/823883
Change-Id: I836f8ca32ed8c3352e05f6ab805b6d8f311c061d
2022-01-12 04:42:18 +00:00
Zuul da1bde38a2 Merge "api: Deprecate ineffective scrub_time" 2022-01-10 20:47:39 +00:00