Commit Graph

766 Commits

Author SHA1 Message Date
Zuul b4024431ee Merge "guestagent: Support volume operation options" 2024-03-26 12:08:20 +00:00
Zuul 62c7ac0159 Merge "Prepare to rename trove::api::service_credentials" 2024-03-25 16:22:13 +00:00
Takashi Kajinami 22ef63f8f9 Prepare to rename trove::api::service_credentials
This class is used by all services but is still kept under the api
directory.

Change-Id: I4016752d94da35ea257f9c76079a33797151640b
2024-03-25 14:10:57 +09:00
Takashi Kajinami 99c035e720 Deprecate broken trove::single_tenant_mode
Closes-Bug: #2058861
Change-Id: Ia275e45483cb5238c6440cb2abd2c96c3036306d
2024-03-25 12:31:16 +09:00
Takashi Kajinami 5108129ad0 guestagent: Support volume operation options
Closes-Bug: #1485485
Change-Id: I9c5e44d4a8bd73e85efa1a8f254a228ad312d677
2024-03-25 10:40:12 +09:00
Zuul 225592993c Merge "Expose rabbit_transient_quorum_queue" 2024-03-14 18:09:44 +00:00
Zuul 3b27aa511e Merge "Refactor handling of ssl options" 2024-03-14 18:04:39 +00:00
Zuul b98b91f729 Merge "cache: Support new redis options" 2024-03-14 18:04:38 +00:00
Zuul d7ffee80e2 Merge "Refactor resource dependencies" 2024-03-14 17:51:51 +00:00
Takashi Kajinami 14ef013ded Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Iea72a6726e05d43be5ba4ee8762457381bfa183c
2024-03-14 11:16:18 +09:00
Takashi Kajinami e6afe1f62f Refactor handling of ssl options
Change-Id: I95d518e6ea9440736fc1a63135850c6a2d990a61
2024-03-13 10:55:57 +09:00
Takashi Kajinami 27d43512f9 cache: Support new redis options
The oslo.cache 3.7.0 release introduced some options for redis backend
and redis sentinel backend. This introduces for these parameters.

Depneds-on: https://review.opendev.org/910629
Change-Id: I6e017f7349096fd298fd1b6f63de57046f0067d0
2024-03-13 01:30:38 +09:00
Takashi Kajinami 6b93ecf0e1 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.

Also, guestagent.conf is not used by trove services but the overall
file is loaded each time when trove launches an instance, so we don't
have to restart trove services when guesagent.conf is updated.

Change-Id: If3eb7e4d2e572735af67eb59f81f67af99527a92
2024-03-12 15:32:06 +00:00
Takashi Kajinami b816669b3e cache: Support options for SASL mechanism in memcached
Note:
The trove::cache class was added during this cycle so we skip adding
a release note file.

Depends-on: https://review.opendev.org/910122
Change-Id: I697f956af1ee8f2fa058e2bb4a577f2c9ab11dee
2024-03-05 13:27:44 +09:00
Takashi Kajinami 06b384e84d Support healthcheck middleware options
Trove introduced the healthcheck middleware during this cycle. This
introduces the new class to support the middleware options.

Depends-on: https://review.opendev.org/c/openstack/trove/+/910117
Change-Id: I5baf1e07078cb904d0c1ca17874c2639620e5e4f
2024-02-28 11:12:11 +09:00
OpenStack Release Bot 8252b9f4a8 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ic663a7f60fc3dfc5139c151b438a07a07b11a170
2024-02-21 16:52:49 +00:00
Zuul 1ceca6c229 Merge "quota: Stop overriding defaults" 2024-02-05 22:18:56 +00:00
Takashi Kajinami 65214a004a Add support for caching options
Trove supports caching using the oslo.cache library. This add support
for customizing caching options.

Change-Id: Ic4f8b9dc285efb4cd983cc6ba8a9eeaedd188456
2024-02-04 01:37:31 +09:00
Takashi Kajinami 2db61dcc98 quota: Stop overriding defaults
... and use the service defaults instead. Current values are based on
the old default values in trove but these were changed in trove some
time ago[1].

[1] 9e3860d54cc0fea59e80b1705c02c78cca8e1953

Change-Id: If6ba170457ca11cbd0531ff8ea1e87346b43dcc2
2024-02-03 16:44:56 +09:00
Takashi Kajinami 0a832b7a06 Add support for volume options
This introduces a few new parameters to customize volume creation for
database instances.

Depends-on: https://review.opendev.org/c/openstack/trove/+/823164
Change-Id: Ie5b862422567083802a86fabeee11d5c80b8f396
2023-12-27 10:44:15 +09:00
Zuul 4c87eadbd3 Merge "Use new openstackclient tag" 2023-11-20 18:21:36 +00:00
Takashi Kajinami fd985c46f5 Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

Also, the troveclient package is required by trove so updating it
should restart the services.

Depends-on: https://review.opendev.org/899594
Change-Id: I52bf30c3ce857509ff1463abb7a493eb8dd48b97
2023-11-20 01:18:17 +09:00
Takashi Kajinami 8b6d70051c Bump supported Debian version to 12 (Bookworm)
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.

Change-Id: I9852a17cf3dd8ae6d8ce16c5957f7dcec55e1174
2023-11-18 09:25:57 +00:00
Zuul d4233a6360 Merge "Use :commands interface for trove-manage" 2023-11-17 18:16:07 +00:00
Zuul 3a7c5a4faf Merge "Deprecate usage of authtoken parameters in providers" 2023-11-17 18:16:06 +00:00
Takashi Kajinami d1d0a1ebc5 Use :commands interface for trove-manage
The trove_manage function is quite redundant because it requires
the full argument even including the trove-manage command itself.

This refactors the function using the :commands definition.

Change-Id: Icce7f9a984484c64fe4fec63cfaa93b50d3b4f14
2023-11-16 16:24:20 +09:00
Takashi Kajinami f99ea85cd3 Deprecate usage of authtoken parameters in providers
When SRBAC is completely implemented according to the current spec,
each service user no longer has full admin privilege but has access
limited to the actual requirement. This means that we are no longer
able to use service users to create resources.

This change is a prep-work to get rid of usage of the service user,
currently loaded from authtoken parameters in the .conf file. Now
each providers loads clouds.yaml file placed in /etc/openstack/puppet.

Change-Id: I198e2cc089a12e1ef260d78665f274db9149f9c9
2023-11-16 15:53:54 +09:00
OpenStack Release Bot 798e4bedc2 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: Icbbb481812c68c2982341733e2f90597b6a67796
2023-10-16 15:20:38 +00:00
Takashi Kajinami 428129c2e1 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: I0d6dc19fe8c34c89cdbbde3770f99d4d1da6e9a2
2023-10-11 12:10:33 +09:00
Zuul d51ab6c243 Merge "Prepare 2023.2 release" 2023-10-03 17:17:02 +00:00
Takashi Kajinami cee0dfe1c7 Prepare 2023.2 release
Change-Id: Ia2aa93282d2d10e6ef76dc9cd3ecbea19823a52b
2023-10-03 17:15:10 +09:00
Takashi Kajinami 6700758464 Bump upper version of stdlib
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.

Change-Id: I5207ae627cb6aa66095edc0966fd26869a722e0e
2023-10-03 13:29:17 +09:00
Zuul a685511043 Merge "RabbitMQ: Add support for quorum queue options" 2023-09-15 15:54:33 +00:00
Zuul 5bc29fa8ad Merge "Fix ignored rabbit_heartbeat_in_pthread" 2023-09-15 15:54:31 +00:00
Takashi Kajinami b7f441682a RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: Ib1ec7e7e3d39c58f3645ea934080b3389484a1ea
2023-09-15 13:50:09 +09:00
Takashi Kajinami 3504c344c0 Fix ignored rabbit_heartbeat_in_pthread
... and adds support for a few more heartbeat options.

Change-Id: Id5c84897cea25de95b5382cd2b6b9719e2cc9892
2023-09-15 13:48:38 +09:00
Takashi Kajinami fde0f910f6 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: I63b97817e164cf745a7fec0b4ba77583ee4274ab
2023-09-11 12:34:29 +09:00
Takashi Kajinami 9974cdd4a2 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: If6f7711691a4f607ca41d825e8f61571bff2db8e
2023-08-11 18:00:42 +09:00
Takashi Kajinami 9a12156cc2 Add .pdkignore to exclude some files from tar ball
We've seen release job failures caused by too large tarball, which
contains irrelevant files like git history.

Let's exclude these files to reduce size of the archive.

The file is copied from the puppetlabs repositories with some files
specific to OpenStack projects added.

Change-Id: Ia67f9fb228cba8d16d9a1ed05afd61074cfda2aa
2023-08-11 00:53:20 +09:00
Takashi Kajinami 3fd257bcfc Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: If1211e7adfa541b1f915191fa3d8c73155268e08
2023-07-22 23:52:37 +09:00
Zuul 05d606ced6 Merge "authtoken: Make password required" 2023-07-17 00:07:43 +00:00
Takashi Kajinami a853f9871a Replace remaining validate_legacy
This was overlooked during the previous attempt.

Change-Id: Ibeb56fce47113cf180cb3b0f51c729355f8eba94
2023-07-13 22:01:50 +09:00
Takashi Kajinami f6af383762 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: I0de636a2ca00757ef24552a0c9a97ee95e485d19
2023-07-12 22:07:37 +09:00
Tobias Urdin 160b0b18d1 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I4733a5d445621ff1cb270fa3be3811b531b9a7b8
2023-06-26 00:06:31 +02:00
Takashi Kajinami 75feab0b22 Stop hard-coding default of service_type options
... because the values are exactly same as the service defaults.

Change-Id: Ibb1da63bccd0abaf90a81cdc0461e32747f24c6b
2023-06-21 15:26:25 +09:00
Takashi Kajinami 0c3ce23124 Add support for [DEFAULT] glance_url
Change-Id: I641f6e0c0e496d2dfd163318ca02fd12cf7767ec
2023-06-21 13:37:45 +09:00
Takashi Kajinami 80bd5e8abf Replace unnecessary usage of false
We currently accept false for some parameters, as an indicator to
purge options but this can be replaced by the os_service_default fact.

Change-Id: Ie6632c21b5723d1db73cfae9fa52b543fd91a605
2023-06-21 10:23:06 +09:00
Takashi Kajinami 1f273d3b4e replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

This also adds validations about some boolean parameters.

Change-Id: I57e0321eab18b66c00e364bb3b4346bb06591286
2023-06-21 10:22:59 +09:00
Takashi Kajinami bc209cda05 Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I2d6c7d82eb12bd38592840ccadb81b71005fb78a
2023-05-22 12:31:35 +09:00
Takashi Kajinami 7347f3d86e Bump upper version of puppetlabs-inifile
... because now we use v6.0.0 in CI jobs.

Depends-on: https://review.opendev.org/880118
Change-Id: I0542826ab30f2f1fdcc9939f2b3b0bb51d175313
2023-04-14 11:56:06 +09:00