Commit Graph

635 Commits

Author SHA1 Message Date
Takashi Kajinami 0791fbb26c validate maxdelay for cron job
The parameter descriptions says the value should be a positive integer
(or 0). Validate the given value to reject invalid values such as
strings or even negative values.

Change-Id: I63719129644e3723b86d0b63b78c36e151724473
2024-04-08 16:44:42 +09:00
Zuul 58bb9cac0b Merge "Expose rabbit_transient_quorum_queue" 2024-03-14 18:07:50 +00:00
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
Takashi Kajinami fb29ff5f38 Deprecate support for VMWare Datastore store driver
... because the driver was deprecated during this cycle.

Depends-on: https://review.opendev.org/c/openstack/glance_store/+/893696
Change-Id: If99070067380a1711fb2cef4bcb090540c1ee456
2024-03-08 14:52:02 +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 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
Zuul f554f00d12 Merge "Deprecate support for delayed_delete option" 2024-02-29 09:36:06 +00:00
Takashi Kajinami 6b44259135 Deprecate support for delayed_delete option
... because this option was deprecated as part of deprecation of
glance-scrubber.

Depends-on: https://review.opendev.org/910042
Change-Id: I9862d999025dd63dcbac4f33faeaad4fa6c1ada9
2024-02-27 09:05:50 +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
Zuul 0dcda53bb3 Merge "Deprecate support for [DEFAULT] location_strategy" 2024-02-17 01:05:17 +00: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
Takashi Kajinami c9e79c84cb Deprecate support for [DEFAULT] location_strategy
... because the option was deprecated in glance.

Depneds-on: https://review.opendev.org/c/openstack/glance/+/906317
Change-Id: I44a7ecf52972c88f1ca6b41236f4757e0fcff3f8
2024-01-23 17:24:28 +09:00
Zuul be0ca56798 Merge "rbd: Update description of rados_connect_timeout" 2024-01-22 17:08:09 +00:00
Takashi Kajinami 47690b57c2 rbd: Update description of rados_connect_timeout
Glance treats rados_connect_timeout=-1 differently now. Let's remove
the description about its old behavior and avoid documenting details
in the module parameter descriptions to reduce our future maintenance
effort.

Depends-on: https://review.opendev.org/894514
Change-Id: If4c711ca7b8c9a5167ee48e902811e8353a1fba0
2024-01-20 00:02:50 +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 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
Zuul b15e90fad8 Merge "Add [DEFAULT] lock_path to glance-cache.conf" 2023-09-11 18:28:13 +00: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 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
Takashi Kajinami 357e761bf7 Fix legacy backend class usage with multi_store=false
Using legacy backend class (eg glance::backend::file) with multi_store
set to false(default) has been broken, because of duplicate declaration
of [glance_store] default_store option.

This fixes that problem.

Change-Id: Ibb12bdb8333fc91e2dc95c2c2cc4de79f2c82cc1
2023-09-08 15:30:24 +09:00
Zuul a72267adf2 Merge "Revert "Deprecate unused options of reserved store"" 2023-08-22 15:00:08 +00:00
Takashi Kajinami f4848f57cd Revert "Deprecate unused options of reserved store"
This reverts commit 51f4256e79.

Reason for revert:
Glance does call the add api of the filesystem store which uses these
options.

examples:
https://github.com/openstack/glance/blob/93e14113a/glance/api/v2/image_data.py#L372
https://github.com/openstack/glance/blob/93e14113a/glance/async_/flows/base_import.py#L159

Change-Id: I41387f67b647db7a96f975224b33112f3fa83ddd
2023-08-22 12:21:29 +09: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
Takashi Kajinami c37af7627c Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I68260f896eb4b94661685a2ebf76500b0cf409a6
2023-07-18 00:52:27 +09:00
Takashi Kajinami 6b846d600a authtoken: Make password required
The password parameter is not really optional. This makes it
a required parameter to give more sensible validation error.

Change-Id: I4fc9a34db162b6c85a5f4bcf50c3fb77b1b6640d
2023-07-12 21:57:51 +09:00
Zuul d308b77467 Merge "Fix undefined variable" 2023-06-30 08:14:05 +00:00
Takashi Kajinami 6e4402417a Fix undefined variable
The default_store_real variable is not defined in some code paths and
that is causing the following error when Puppet 8 is used.

```
Evaluation Error: Unknown variable: 'default_store_real'.
```

Change-Id: I8220b646de922e44e08db49817b473789e2742f8
2023-06-26 22:05:22 +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 951936517b Merge "Deprecate unused options of reserved store" 2023-03-17 09:19:05 +00:00
Takashi Kajinami 2cdc2b2176 Add strict validation about boolean parameters
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.

Change-Id: Ie3fce5786d44be38fad176442a0a0f9b24faab77
2023-03-17 02:23:27 +00:00
Takashi Kajinami 51f4256e79 Deprecate unused options of reserved store
When I implemented support for reserved store options[1], I somehow
overlooked the fact that some of the registered options are not really
used. This is mainly because glance does not use 'add' API of
the filesystem store but just write data directly into the store
directory.

This deprecates the ineffective options so that we can remove these
in a future release.

[1] d82df7aedd

Change-Id: Ifde7f70f4cf6a04e22e092a819e0c598079682ee
2023-03-15 11:59:06 +09:00
Zuul af18992760 Merge "cinder store: Support cinder_do_extend_attached" 2023-03-14 15:07:43 +00:00
Zuul 0042b9e67f Merge "Allow customizing status of cron job" 2023-03-14 03:34:31 +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 8b0f7ea16d Remove deprecated cache_prefetcher_interval
This parameter was deprecated during the previous cycle[1] and has had
no effect since then.

[1] 89857141d1

Change-Id: I21e59483cef2847b02783a13072745a9f434a318
2023-03-10 18:30:45 +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