Commit Graph

899 Commits

Author SHA1 Message Date
Tobias Urdin 20d3cfe089 Stop hardcoding defaults in cinder::backup::ceph
... because they are the default values.

Change-Id: Ib635bad5d4a6a18cc8f2be6f4df7e0101b23d4c7
2024-04-09 13:16:39 +00:00
Takashi Kajinami edca342afb PowerFlex: Support new API timeout options
Depends-on: https://review.opendev.org/909563
Change-Id: I0187a178bbfb663b5369552b15f0a7cdfeb8f493
2024-04-04 11:17:03 +09:00
Takashi Kajinami b18358aaae PowerMax: Support new API timeout options
Depends-on: https://review.opendev.org/907768
Change-Id: I4feb7f4ff1dd874e5e288a475db9dea2743bdac8
2024-04-04 11:17:03 +09:00
Takashi Kajinami dbc6ec9ed6 rbd: More strictly validate rbd_ceph_conf
The rbd_ceph_conf parameter accepts a valid path for *.conf file,
because of the internal logic to detect the cluster name.

Change-Id: Ia42f5db1ff701b5ba90dbdb7e80c7b906b406222
2024-03-29 09:03:47 +09:00
Takashi Kajinami bdc045dba6 rbd: Simplify handling of rbd_cluster_name
We can accept config change unless we backport the change, because
services need to be restarted anyway during upgrade.

Change-Id: Ibb49c49f85f0c5bee8545e240fe3c6aac7e3d13b
2024-03-28 15:17:07 +09:00
Takashi Kajinami a17d67766d rbd: Purge rbd_cluster_name by default
... to avoid leaving old value.

Change-Id: I4b8d9ee5330ceca602b4c090d687faff35a5b5db
2024-03-28 15:16:11 +09:00
Takashi Kajinami 08052b3852 lvm driver: Support lvm_type option
Change-Id: Iba6abb43a6e72f1cb5c44ff1fba5c1fcc95d3509
2024-03-17 16:36:49 +09:00
Takashi Kajinami 777dcf40c7 Add max_over_subscription_ratio parameter
... to each driver configurations, so that users can customize this
option in individual driver sections.

Note that this option works only when the driver supports thin
provisioning.

Change-Id: I3da6dd142c2ae5967da09787f01cd39052f14f42
2024-03-17 16:36:49 +09:00
Takashi Kajinami 634b6152c1 nvmeof: Add reserved_percentage
This defined resource type was overlooked when the reserved_percentage
option was added[1].

[1] 5451b7135b

Change-Id: I602f47cb06eff1c41b47abe36853bc418a122332
2024-03-17 16:19:26 +09:00
Zuul 503140c4a8 Merge "Expose rabbit_transient_quorum_queue" 2024-03-14 18:31:57 +00:00
Takashi Kajinami 23634ccf25 Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Ifad53c99bf84d7109ca7bf8ad3dc0e331fbb923e
2024-03-14 09:19:14 +09:00
Takashi Kajinami a5fb242e23 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: I3953eea75f00c44363870c318f960b7299c65e7c
2024-03-04 09:43:14 +09:00
Zuul 24988ff24b Merge "rbd: Stop overriding CEPH_ARGS environment" 2024-02-26 16:54:28 +00:00
Takashi Kajinami 94a7b021fb rbd: Stop overriding CEPH_ARGS environment
This configuration is not actually needed because the rbd driver has
the specific rbd_user option to pick up the appropriate user.

Change-Id: Ie9e517845c115a2f0a45c8682c68c611c151d231
2024-02-26 09:57:30 +09:00
Takashi Kajinami 9f5d79a6c4 healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: Ife337058a5e397184305793000e49f762a9117b3
2024-02-26 01:15:40 +09:00
Zuul 1cb3aa59c0 Merge "Add support for oslo.reports options" 2024-01-31 04:11:43 +00:00
Takashi Kajinami 93046343f8 Add support for oslo.reports options
Depends-on: https://review.opendev.org/804804
Change-Id: Id2e06c51defc715bc9a308a80615b06ab1a4bb7f
2024-01-30 00:36:20 +09:00
Zuul 14f630e986 Merge "Drop redundant default of send_service_user_token" 2024-01-23 15:15:46 +00:00
Takashi Kajinami ffdc85e1de Drop redundant default of send_service_user_token
The option defaults to False, so we don't need the explicit default and
can replace it by os_service_default fact.

Change-Id: I1425802e4047f1bb79c90a1567bd512696dc5a2d
2024-01-23 14:40:05 +09:00
Zuul 3103c6c52d Merge "healthcheck: Expose allowed_source_ranges" 2024-01-17 16:32:20 +00:00
Takashi Kajinami 46e05c4a2b healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: I70429bf90889b3dd8ecf88a140539b073e35e6a9
2024-01-17 02:50:11 +09:00
Zuul bc8624f9da Merge "rbd: Support rbd_concurrent_flatten_operations option" 2024-01-16 16:07:59 +00:00
Zuul cc5d571995 Merge "rbd: Support options for deferred deletion" 2024-01-16 16:05:16 +00:00
Takashi Kajinami 03f100c350 rbd: Support rbd_concurrent_flatten_operations option
... which was added during this cycle.

Depends-on: https://review.opendev.org/c/openstack/cinder/+/835384
Change-Id: I93b6b81aa5e96ba1ffc98837ae6b6e72ca5e8970
2024-01-16 12:03:17 +09:00
Takashi Kajinami bfa6540457 rbd: Support options for deferred deletion
This introduces support for the options used by the deferred deletion
feature[1].

[1] c6580b2ab4ba10fefddf790a9282d1201df782f1

Change-Id: Ia385f88f1a9cdf79ca912844ff773fbc3e3fd688
2024-01-16 12:03:17 +09:00
Takashi Kajinami 5aa9db2636 pure: Remove redundant default of use_chap_auth
The use_chap_auth option defaults to false in cinder, so we don't have
to explicitly define the same default.

Change-Id: I978749f078f7bd69e611f8b18546deb248435298
2024-01-03 10:57:32 +09:00
Zuul 0db5333328 Merge "Support image volume cache options" 2024-01-02 16:58:22 +00:00
Zuul 376325ddc1 Merge "gpfs: Support volume_backend_name option" 2024-01-02 16:58:21 +00:00
Zuul 5dcee763a5 Merge "Fix wrong source to define volume_backend_name" 2024-01-02 16:46:26 +00:00
Takashi Kajinami faf117f9f8 Support image volume cache options
This introduces support for the options to customize the image volume
cache feature. This feature is added to the default class as well as
the defined resource type for each volume driver, so that users can
configure the global options as well as the backend specific options.

Note that rbd driver and vmware driver are intentionally excluded,
because for these drivers the specific image store drivers are more
popular method to use in-storage copy when creating a volume from
an image.

Change-Id: I09480346f3a2f05b5ab0aad7033f1b37a31648db
2023-12-26 18:17:30 +09:00
Takashi Kajinami 125db0de15 gpfs: Support volume_backend_name option
... to make the parameter interface consistent with the other defined
resource types.

Change-Id: Ic8418acc52c4ce21134f1dc056eb30eab4830bbb
2023-12-26 13:07:45 +09:00
Takashi Kajinami ae990b2451 Fix wrong source to define volume_backend_name
The volume_backend_name property in volume types should be set
according to the volume_backend_name option, instead of the backend
config section name.

This change ensures the option value is used consistently among all
defined resource types to manage volume backend options.

Change-Id: I29c5bcdb0e79f6f98d272995de6a86a0062cea48
2023-12-26 13:06:20 +09:00
Takashi Kajinami 0f500ef7da cinder_type: Fix regex for properties to accept short value
This fixes the regex to validate the properties property so that value
strings shorter than 3 characters are accepted.

This also removes the heading spaces because these are not stripped but
added to the keys, which likely results in an unexpected result.

Change-Id: I8d703a48060abb61834ecec9c72bb6295eff2b81
2023-12-25 12:58:37 +09:00
Zuul 8273a44172 Merge "Use new openstackclient tag" 2023-11-20 18:34:12 +00:00
Takashi Kajinami a3f52d40e6 Fix wrong anchor in quota_set
We have to ensure cinder services are up before the quota command is
executed, because the command needs access to cinder API.

Change-Id: I44ae2f5628283818a7aa4e20b823808e30b559c7
2023-11-20 03:01:50 +09:00
Takashi Kajinami d78df82f85 Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

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

Depends-on: https://review.opendev.org/899594
Change-Id: Ieb7656f1f9a48086a13ebeb9c5418e800bed790f
2023-11-20 00:38:09 +09:00
Takashi Kajinami 04e3d15f1a Stop reading keystone_authtoken options
Using credentials in keystone_authtoken options for cinder_* resources
was deprecated some cycles ago[1].

[1] 596a77483b

Change-Id: I21fc46f49a143ae1282cad91732925195eda6541
2023-11-16 17:36:01 +09:00
Takashi Kajinami 5451b7135b Add support for reserved_percentage option
Some of the volume drivers support the reserved_percentage option which
determines the minimum free percentage kept. This introduces support
for this option.

Although the option is defined in the base volume driver class, it has
effect only in drivers with appropriate implementations.

Change-Id: I6060daab9fd72f96084b3d0c5cc5783da7f5c64c
2023-10-20 21:08:52 +09:00
Takashi Kajinami bec5c873e4 Validate protocols using parameter types
Parameters types is better way to enforce specific values because it's
implemented at the interface level.

This offloads some of the validations we have in manifest logics
because we already started using parameter types.

Change-Id: I93f1bdae811a999bbbc55861d9e2c7500d347c22
2023-10-18 19:52:18 +09:00
Takashi Kajinami aaadd0ec50 powermax: Support array for powermax_port_groups
The powermax_port_groups option accepts a comma-separated list with
bounds. This allows users to use an array value to define the value
used for this option. Now the logic adds bounds ([]) in case a string
value is given but the value does not contain bounds.

Change-Id: I9b747509f7e13b05a1c0e1096733f7beb477033f
2023-10-18 12:51:21 +09:00
Takashi Kajinami e4bac84648 lvm: Ensure target_ip_address is purged
... instead of leaving the option unmanaged.

This also removes the reference in default definitions from the defined
resource type to the params class, which does not work if the params
class is not explicitly included in advance.

Unit tests coverage is also improved to ensure both default parameters
and customized parameters work.

Change-Id: I0b8199a27377a7d035f882586979a678b061e5da
2023-10-12 23:18:32 +09:00
Zuul 90ac98f5de Merge "nfs: Require nfs_servers" 2023-10-12 02:50:37 +00:00
Takashi Kajinami fdf9d8f729 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: I4d44a4beb67209c7c7806400cc9b83f6d24ca442
2023-10-11 11:56:21 +09:00
Takashi Kajinami d3de750bc8 nfs: Require nfs_servers
This parameter was supposed to be required but actually it was not.
Without this parameter given, nfs driver may be configured without any
actual backend.

This updates the parameter definition to make the parameter actually
required.

Change-Id: I1c87dc4119dec56c78638afbbd5a650eeafbda3e
2023-10-07 17:01:09 +09:00
Takashi Kajinami 73271ab30c RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: I447aca06bb1e0050c01bd1e21eb6942602d2643e
2023-09-15 01:10:40 +00:00
Zuul 915a4a9c26 Merge "Add per module policy service refresh" 2023-06-26 04:55:23 +00:00
Tobias Urdin f755731f77 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I22618ef8528d0e8dafd1d3483a2d02a15b30c816
2023-06-26 00:03:40 +02:00
Takashi Kajinami 8d00e748ef Fix missing inclusion of cinder::params
This fixes the missing inclusion of cinder::params, to ensure
the subsequent reference works properly.

Change-Id: Idca647a1c149d93f3c477ac448ddc69ac5bbb2b1
2023-06-23 14:25:55 +09:00
Zuul dad08c7df5 Merge "Fix multiple backends with some drivers" 2023-03-19 18:34:54 +00:00
Zuul 10c40aadc2 Merge "nvme: Remove redundant defaults" 2023-03-19 18:34:52 +00:00