Commit Graph

633 Commits

Author SHA1 Message Date
Takashi Kajinami b7b040c4e2 Stop hard-coding config file for db sync
The gnocchi-upgrade command by default loads /etc/gnocchi/gnocchi.conf.
Removing the override allows us to use additional paths such as
gnocchi.conf.d in the future.

Change-Id: Ibe0c1138eebeb17fb6d06a7e648eab563f47fe1f
2024-03-05 12:25:45 +09:00
Takashi Kajinami 3bf5d9ed3c 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: Ib89091baaf9aba0809c2e9405389545168b755ec
2024-03-01 12:23:19 +09:00
Zuul eaa7e93aec Merge "healthcheck: Expose ignore_proxied_requests parameter" 2024-02-26 02:56:16 +00:00
Takashi Kajinami 7ddb186ec5 healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: Ibdc5ac824241d1638fcf6066d2f51601792fcd6b
2024-02-26 01:26:24 +09:00
OpenStack Release Bot 94b811c650 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I3f7514b645502a6ebfd34c938e0772ea10eff43a
2024-02-21 16:45:08 +00:00
Takashi Kajinami ac20db89d0 healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: I671ab529cee053f59e611e119af93d7123756e2a
2024-01-17 02:58:27 +09:00
Zuul 07d050b653 Merge "Remove unused base provider class" 2023-11-23 15:27:28 +00:00
Takashi Kajinami 95141e1806 Remove unused base provider class
The Puppet::Provider::Gnocchi class has never been used.

Change-Id: I5ab5759bd920d7b0160ece2b0d19b51e34207435
2023-11-21 23:12:55 +09:00
Takashi Kajinami cc301d3225 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: I9569769f1bc16ae01e026449988ebd3f2b128904
2023-11-18 18:09:25 +09:00
OpenStack Release Bot 0243f0eebf 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: I37259cf05373afe419563d1ebf16872f05853b7c
2023-10-16 15:16:23 +00:00
Takashi Kajinami 73955e07e3 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='...
```

[1] 316d95923c

Change-Id: I2d6fc892cb0d3784430223d903f0f48f32aab1bc
2023-10-11 11:59:55 +09:00
Zuul 2300751814 Merge "Prepare 2023.2 release" 2023-10-03 17:15:51 +00:00
Takashi Kajinami 04b7d82529 Prepare 2023.2 release
Change-Id: Ib7ef80669ffce288c3087f724a9736bf630ff299
2023-10-03 17:03:00 +09:00
Takashi Kajinami 3bb989a53d 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: I78d6fa4b2f96cad3f45995bd56e9f9bfa370be44
2023-10-03 13:11:08 +09:00
Takashi Kajinami ee6e80eef0 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: I990a24499bba2ad06aac20e5786c4acca4a2392e
2023-09-11 12:36:58 +09:00
Zuul df47555a7a Merge "Remove redundant usage of integration_enable" 2023-08-24 14:28:19 +00:00
Takashi Kajinami f36eb38cd2 Remove redundant usage of integration_enable
The parameter can be easily replaced by the backend parameter.

Change-Id: I6aa92f859fd07963d4a821fbf5983406a9210054
2023-08-22 10:58:31 +09:00
Takashi Kajinami 4683039f57 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: Icdace8f0ba9b9683416bae92ff057ee85eb05bf5
2023-08-11 17:51:01 +09:00
Takashi Kajinami 0dca124538 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: I11452bb9cbed4868e1a947133a684ff4bfb898ba
2023-08-11 00:43:56 +09:00
Takashi Kajinami de085305c4 Refactor db class using oslo::db
This replaces the existing logic in the gnocchi::db class by the common
logic in oslo::db, to use the single logic to manage backend packages.

Depends-on: https://review.opendev.org/889374
Change-Id: Icd916df0b3463128df5b2ed3b49c2cdbee871504
2023-07-25 13:49:17 +00:00
Takashi Kajinami 120450bec8 CentOS: Stop installing gnocchi-indexer-sqlalchemy
The package was merged into the common package a long ago[1], and we
no longer need to install it explicitly.

[1] af210a84ac

Change-Id: I845b4d99711055ed6a6feb1df2d1e287ea53a0fc
2023-07-25 16:11:24 +09:00
Zuul 14430a3b32 Merge "Ensure purge_config takes a boolean value" 2023-07-21 17:39:55 +00:00
Takashi Kajinami 4280dfe94e Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I15aa0c8ddfb4063e285206de13cbb9fc8cb8143c
2023-07-18 00:53:04 +09:00
Zuul bbec7ca8b6 Merge "Replace remaining validate_legacy" 2023-07-17 06:21:20 +00:00
Takashi Kajinami 4f5423407a Replace remaining validate_legacy
These were somehow overlooked during the previous attempt.

Change-Id: I742afd3b162cc1a6fe8975d3c83a180f6474c7b9
2023-07-13 22:05:09 +09:00
Takashi Kajinami a11551d2f5 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: I90371da9cdd1b968a691b3e342e7eec7d0390520
2023-07-12 21:57:12 +09:00
Tobias Urdin fea62d44e9 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I5b7504bc02b2576a8921d1a70bc1bd07b19c1023
2023-06-26 00:04:31 +02:00
Takashi Kajinami 74e7afdb9e replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I14ad3f5a77573b1bf82b490249ca5a8a6b220565
2023-06-19 18:08:52 +09:00
Takashi Kajinami 3f5c30de21 Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I059d3e6c4ca34c4954b88914f28c81385453fe5b
2023-05-22 12:22:22 +09:00
Takashi Kajinami 1ce14fbe7e 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: Iec7386503bfcd587eb69d4d3d1d49b17d69f8127
2023-04-14 11:48:19 +09:00
OpenStack Release Bot 3dd3e929b4 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: I961b712133d0f35a7720acff4a7b4a58289da02f
2023-04-05 15:30:11 +00:00
Takashi Kajinami 285032344c Prepare 2023.1 release
Change-Id: I4706e2359f6afe4cd705d7e62b42d2014f70f11f
2023-03-24 05:45:15 +00:00
Zuul c0d537c9bf Merge "Remove unnecessary policy conversion" 2023-03-24 05:25:01 +00:00
Zuul e8edb44500 Merge "Make sure redis urls are hidden" 2023-03-21 15:20:39 +00:00
Takashi Kajinami a8fc8c9722 Make sure redis urls are hidden
This makes sure that the parameters which accept redis url are hidden
from logs, because redis url can contain password as a URL element.

example: redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: Ief97f9e28ed7e318b56b27f03214ecc76de6798e
2023-03-20 21:10:16 +09:00
Takashi Kajinami cc2231b8fe Remove unnecessary policy conversion
The gnocchi packages available in recent releases contain the changes
for policy-in-code feature so no longer require the default policies.

Change-Id: I0f3e5a7a3abec869246a248d390d86b40a7da432
2023-03-17 12:34:26 +09:00
Takashi Kajinami 8f74b05f69 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: I5d448885136f38b442aeca3feff75e288b00cc0c
2023-03-16 13:32:57 +09:00
Takashi Kajinami 37049a867d Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ia9ab733a7fc5cbb5b23659ff7cbfd3b2b7d2fb18
2023-03-02 10:57:25 +09:00
Takashi Kajinami ecd6b5a669 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: I010ef8ed814af439621cf944eb62426d7adb5d6f
2023-01-23 14:29:25 +09:00
Takashi Kajinami fa6ef57180 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: I46de72deb389f6f0c4b0af2f9f17416334f5f891
2023-01-15 22:21:05 +09:00
OpenStack Release Bot aaceae30fb Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I6560799a99aaa901b2fcbe2f4006236fdbb96e6f
2022-10-20 11:04:19 +00:00
Takashi Kajinami 4d7e30ee69 Prepare Zed RC1
Change-Id: I0476d89e062c5a07611b02374fe416e5b950e9a8
2022-10-05 18:32:55 +09:00
Takashi Kajinami 86fc061b4c Replace deprecated [oslo_middleware] enable_proxy_headers_parsing
Gnocchi replaced usage of http_proxy_to_wsgi middleware from
the oslo.middleware library by its own implementation since Gnocchi
4.4[1]. Because now both Ubuntu and CentOS uses Gnocchi 4.4.z, this
replaces the deprecated [oslo_middleware] parameter by the new [api]
parameter.

[1] bcd9a8cdd7

Change-Id: I52ba953c481bb66dd8a5af35b74c11dac6278e45
2022-09-06 17:17:03 +09:00
Takashi Kajinami b607c46cef Enable memcached and redis in acceptance tests
... because these are required as cache/coordination backend.

Change-Id: I16594b5e046fcc6639c134bc8ce566f8ffbc3f43
2022-08-31 00:50:51 +09:00
Takashi Kajinami 8ba78b6b37 Use standard parameter description format for wsgi::apache
Currently parameter description of the <module>::wsgi::apache classes
are formatted differently in individual modules, and this is making
the maintenance effort quite difficult.

This change updates the description format following the standard one
we are globally using in our modules to reduce undesired differences
between modules.

Change-Id: Id99d044171b1fafefd310fafff2ce2f4de1e9fa8
2022-08-27 22:23:00 +09:00
Takashi Kajinami 990298ddd5 Add Apache WSGI logging parameters for pipe/syslog
Add parameters for advanced logging configurations in Apache to
support piped logging and support for syslog (via mod_syslog
available in Apache >= 2.5.0)

Co-Authored-By: Andy Botting <andy@andybotting.com>
Change-Id: Ifa33b2e84284d8032c4e4f54acb26c30fc285cb5
2022-08-26 17:41:09 +09:00
Takashi Kajinami 8001209a81 Remove gnocchi::metricd::cleanup_delay
... because the parameter was deprecated during Yoga cycle[1] in favor
of the new metric_cleanup_delay parameter.

[1] 04f29cb088

Change-Id: I8efe9f153ca112dafb621edc4ee3b3d090083d91
2022-08-16 18:54:42 +09:00
Zuul 1774c83c7d Merge "Adapt to new type validation in puppetlabs-apache" 2022-08-08 19:35:37 +00:00
Takashi Kajinami 6da581fa02 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: Ie6310a022e9715336832865741318369bc3fa188
2022-08-02 16:51:56 +09:00
Zuul f9bdbbbdc4 Merge "Expose headers option of apache::vhost" 2022-07-30 17:53:10 +00:00