Commit Graph

596 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 6295617007 Merge "Validate cache cron jobs" 2024-03-08 04:44:28 +00: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 664f39dc34 Validate cache cron jobs
Depends-on: https://review.opendev.org/911023
Change-Id: If64ffbb0fefa05629a1b78be677f5adf18f52648
2024-03-05 12:38:18 +09: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 50e67be163 Stop reading keystone_authtoken options
Using credentials in keystone_authtoken options for glance_* resources
was deprecated some cycles ago[1].

[1] 17cc71c509

Change-Id: I57a2ecc763ccac52d9122afa86871ad74bca7450
2023-11-16 15:26:30 +09:00
Takashi Kajinami 1317af56d4 Remove usage of deleted manifest_dir
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.

```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')

NoMethodError:
  undefined method `manifest_dir='...
```

This also removes explicit setting of mock module. The definition is
no longer required since we bumped puppetlabs_spec_helper to v 5.0.0.

[1] 316d95923c

Change-Id: I3077eed14d4e4e2e29cb947ec4ec1fa06abd6229
2023-10-11 11:59:09 +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 30b188b1b9 Add support for store weight option
This introduces the support for the weight option in each store which
is used to sort locations.

Depends-on: https://review.opendev.org/886811
Change-Id: Ia08ab9b396a9f7ba3ee1f41a81cb666e9a80ccde
2023-09-12 10:44:03 +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
Zuul af18992760 Merge "cinder store: Support cinder_do_extend_attached" 2023-03-14 15:07:43 +00:00
Takashi Kajinami 9cb7a5ae66 cinder store: Support cinder_do_extend_attached
This introduces support for the new cinder_do_extend_attached option
which was added in the 2023.1 release. See the dependent change to find
more details.

Depends-on: https://review.opendev.org/868742
Change-Id: I4fbb2d275cf261286390765d9cd98112ca8adf0c
2023-03-14 12:31:07 +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
Zuul b809c17123 Merge "Replace mocha by rspec-mocks" 2023-01-31 08:35:46 +00:00
Takashi Kajinami 7b9c00a1d2 Replace mocha by rspec-mocks
puppetlabs_spec_helper recommends rspec-mocks instead of mocha[1] and
it uses rspec-mocks by default instead of mocha since v 5.0.0[2]

This is the prep work to adapt to that migration.

[1] https://github.com/puppetlabs/puppetlabs_spec_helper/#mock_with
[2] 493f0cbc1c

Closes-Bug: #2004135
Change-Id: I3c6ee8bb85efcb2169a0248ce11e750991799d63
2023-01-30 13:32:08 +09: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
Takashi Kajinami 1c0d3e0181 Assert db purge cron job
This makes sure the db purge cron job is properly configured in
acceptance tests. The job was enabled in the common manifest a while
ago by the dependent change.

Depends-on: https://review.opendev.org/792743
Change-Id: Ic83d6595cd23319e286719c2e7f766ea1aa3e4da
2022-11-28 15:38:01 +09:00
Zuul 0176638d47 Merge "Deprecate support for [DEFAULT] cache_prefetcher_interval" 2022-09-08 14:32:26 +00:00
Zuul 1def180655 Merge "Stop testing image creation by openstack CLI" 2022-09-07 18:11:28 +00:00
Zuul a441e594e9 Merge "Ensure glance-api is listening the expected tcp port" 2022-09-07 18:11: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
Takashi Kajinami fafd4c8c57 Stop testing image creation by openstack CLI
The current test case is validating behavior of the openstack CLI
rather than the deployment. Because we already test image creation by
the glance_image resource type, we can remove that redundant and
out-of-scope test.

Change-Id: I30ba37e5c72c6a918f0ee1f5d8ad275322f007f9
2022-09-07 01:20:00 +09:00
Takashi Kajinami 2332b90de2 Ensure glance-api is listening the expected tcp port
This change introduces an assertion to ensure the glance-api is
listening the correct tcp port (9292). Similar assertions are already
implemented in the other modules.

Change-Id: I9fe22af47e9e12905d731f6b0e4ead2c6864ce40
2022-09-07 01:18:16 +09:00
Zuul 4478a256d8 Merge "Add new option for api: public_endpoint" 2022-09-05 19:30:23 +00:00
Zuul b192dd5253 Merge "Enable memcached in acceptance tests" 2022-09-01 09:26:00 +00:00
Takashi Kajinami d1f4dfdee9 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I985d6fb3dd798d726978acfcedf41a5327e7e9b2
2022-08-30 15:56:29 +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
Zuul aa26ba8089 Merge "Add support for running glance-api by httpd+mod_wsgi" 2022-07-25 20:08:14 +00:00