468 Commits

Author SHA1 Message Date
Takashi Kajinami
60576906e6 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: Ia29f285622db27d9f4d29cfb8f335cc99216ca87
2024-03-28 06:05:35 +00:00
Zuul
ffdd2fba06 Merge "Stop hard-coding config file for db sync" 2024-03-08 14:35:51 +00:00
Takashi Kajinami
219e204237 cache: Support options for SASL mechanism in memcached
Depends-on: https://review.opendev.org/910122
Change-Id: Id5f7ee9ec1cc00c4fe94d96030cac7330ae89384
2024-03-05 13:31:15 +09:00
Takashi Kajinami
844e163656 Stop hard-coding config file for db sync
The watcher-db-manage command by default loads
/etc/watcher/watcher.conf. Removing the override allows us to use
additional paths such as watcher.conf.d in the future.

Change-Id: Ide53b1659e336f461bb5108621c31299cb211c3f
2024-03-05 12:32:55 +09:00
113df6ecc3 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ie21bbe9ac31941160ebffa2a6b6cee0659d6f859
2024-02-21 16:53:41 +00:00
Zuul
143d0d3bd0 Merge "Add support for oslo.reports options" 2024-01-31 09:18:10 +00:00
Takashi Kajinami
a918bf9ea7 Add support for oslo.reports options
Depends-on: https://review.opendev.org/804804
Change-Id: I438e50759f176f0a85772ceb2701493b3abf3550
2024-01-30 00:51:22 +09:00
Takashi Kajinami
a4724a1880 Support [cache] memcache_pool_flush_on_reconnect
Depends-on: https://review.opendev.org/902861
Change-Id: I87f015a678ba950064a54b8b8f6e7a21d836f2ef
2023-12-14 18:00:15 +09:00
Takashi Kajinami
899ae2350c 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: Iac30d2a47278277b7931ee044e153c63241b70aa
2023-11-18 09:26:18 +00:00
4cb65c80c7 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: I62e6f688ebf9f0cdb8d1390e4499e6b6bd78fa09
2023-10-16 15:21:11 +00:00
Takashi Kajinami
1c52d9b959 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: If34a187f1b54beeae2f4ac69e1df33be30f4b014
23.0.0
2023-10-11 12:11:13 +09:00
Zuul
4ceba2ce2a Merge "Prepare 2023.2 release" 2023-10-03 17:27:02 +00:00
Takashi Kajinami
060336ffa2 Prepare 2023.2 release
Change-Id: Ib372f1c1556f593454c36907dcb396ed046c0197
2023-10-03 17:16:43 +09:00
Takashi Kajinami
d36c77cceb 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: Ie602d410c368a695b8a3545764883adff41c749a
2023-10-03 13:31:05 +09:00
Zuul
4fc2588194 Merge "Do not test details of oslo::messaging::* types" 2023-09-18 14:40:31 +00:00
Takashi Kajinami
8d4b71c85a Do not test details of oslo::messaging::* types
... but ensures the defined resource types are used with the expected
input. This helps us avoid direct unit test failure caused by change
in puppet-oslo.

Change-Id: I44cadb0953343162fb4ae93dd6024b7974171936
2023-09-17 13:58:56 +00:00
Takashi Kajinami
f5198a662d 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: Ib83054cac36ea323b63981793b222bce4fad5087
2023-09-11 12:35:19 +09:00
Takashi Kajinami
0361625e8d Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: Ie07ce7f5b1638c77dce01862247a5e0d6ffde70b
2023-08-11 18:02:07 +09:00
Takashi Kajinami
6ab903b68a 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: Ie9a6706e1977efafcaad799ac6a68a966c9bb693
2023-08-11 00:54:30 +09:00
Zuul
6ddecf55e6 Merge "Add strict validation about boolean parameters" 2023-07-24 15:14:21 +00:00
Takashi Kajinami
513071c1cb Deprecate ineffective use_ssl parameter
This parameter has never been used.

Change-Id: I29a314933017596337617f1dfa745ddc22689a7c
2023-07-23 00:03:47 +09:00
Takashi Kajinami
2875dba27c 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: Ic59d8374bb062063518ff8088f50c11045163322
2023-07-22 23:59:40 +09:00
Takashi Kajinami
2ab021d060 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I975452d2e0dfc65bbb2811181a2a1407d33286b9
2023-07-22 23:53:18 +09:00
Takashi Kajinami
0a9e188d30 decision_engine: Accept string/array values for weights
Change-Id: I14c325d116a7a062fe049064946ce61f16b703b4
2023-07-14 02:15:03 +00:00
Zuul
6c560ed913 Merge "replace validate_legacy with proper data types" 2023-06-29 05:30:36 +00:00
Zuul
52633247c3 Merge "Remove logic dependent on the removed parameter" 2023-06-27 03:09:14 +00:00
Tobias Urdin
df8733d486 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I9c4804116384465fbefa419c1158a87ab8b2c872
2023-06-26 00:06:47 +02:00
Takashi Kajinami
d8efb69c3d replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I5fa76ea9c27c51d98f07274c071563251f5c0e4e
2023-06-23 10:19:11 +09:00
Takashi Kajinami
854d79fddb Remove logic dependent on the removed parameter
The watcher::api::watcher_client_password parameter was removed a few
cycles ago. Actually the logic was just useless because the parameter
was not really used in the logic within the authtoken class.

Change-Id: I41fc37c2697fa132757bf1490c0a45d1bee82c2d
2023-06-23 10:19:08 +09:00
Takashi Kajinami
34cd75010d Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: Ia1ef842dad29384af00b7bd851933e09888becf7
2023-05-22 12:32:41 +09:00
Takashi Kajinami
37eebe3c59 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: I08bb69d7ff75c63b3e654aeb1e84c457d7973c1b
2023-04-14 11:56:42 +09:00
f524e9f3e0 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: Idb271d335efcb7a6799321ed60afb494893c3946
2023-04-05 15:37:24 +00:00
Takashi Kajinami
a1d42a4f59 Prepare 2023.1 release
Change-Id: I32fe3f2ba8efc76489dd822991136f101a77df96
22.0.0
2023-03-23 14:26:24 +00:00
Takashi Kajinami
4c56946003 Assert cron job definition
Depends-on: https://review.opendev.org/877876
Change-Id: I08b9c4927cbe104ec7dade52e3d46f91c8769e98
2023-03-22 23:59:07 +09:00
Takashi Kajinami
3f3c5dfd46 Add support for cron job to purge objects
watcher provides the CLI tool to purge delete or orphaned objects from
database[1]. This allows users to set up cron job to periodically
execute the CLI to reduce database size.

[1] https://docs.openstack.org/watcher/latest/man/watcher-db-manage.html#purge

Change-Id: I70fe945818fdd4a31ddd0d0d502df53f6eeb5b3f
2023-03-20 03:33:34 +09:00
Takashi Kajinami
f6ab996e63 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib4f33d08f9415b4a8533ec6b9b0e6d7637f4e289
2023-03-02 12:46:14 +09:00
Takashi Kajinami
a786c751e8 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: I480d1bff9c699c7157da15cab31c0db63762f55c
2023-01-23 14:43:02 +09:00
Takashi Kajinami
327d426969 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: Ic70abe53e807a7cfd284b4806fd775fb5026def9
2023-01-15 22:34:20 +09:00
Takashi Kajinami
822dd6b8bf Clean up parameters for service validation
... service validation was deprecated during Yoga cycle by [1].
The parameters were left for interface compatibility but have had no
effect since then.

[1] 3d5c217596daeafe7620273ab7a0b5dd9ee2d194

Change-Id: Ied5d81d7782f07a7cc6488a98a3a9e966fb6c6fa
2022-11-28 18:53:49 +09:00
4d99341074 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: Ie3b6c15d8320c563547ef9ec6c97874f73e12353
2022-10-20 11:14:24 +00:00
Takashi Kajinami
32683a7882 Prepare Zed RC1
Change-Id: Ifba875929f210e53ccda607057187c56d1dd85ed
21.0.0
2022-10-05 18:35:44 +09:00
Zuul
aaea9de250 Merge "Ubuntu: Re-enable watcher in acceptance tests" 2022-09-07 18:38:37 +00:00
Zuul
cdaf69080f Merge "Remove deprecated watcher::api::watcher_clients_*" 2022-09-07 18:38:35 +00:00
Takashi Kajinami
a80ac594c6 Ubuntu: Re-enable watcher in acceptance tests
The watcher service has been untested since [1] was merged but
the issue has been fixed already.

[1] eb0fb263b876927c7bcf2f16e288b254beb4d885

Change-Id: I0b7254efff0acd3c13acfcf149192613bc8f0746
2022-09-07 01:10:46 +09:00
Takashi Kajinami
cacf558e92 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I6e7caf1bf11106e3fcb29587812acb98d807964d
2022-09-07 01:04:09 +09:00
Takashi Kajinami
9667d6a166 Remove deprecated watcher::api::watcher_clients_*
... because these were deprecated during Yoga cycle[1][2][3].

[1] c507b55112d09c80f1598a28fee40c522ff26a14
[2] 3fe4b7d3a0ae0c7f76471a5c230b71caa7f242ef
[3] 16bcc44238bd018c527c87c4cd0542f5cadc5774

Change-Id: If96c5ac9016f799977218b24d9103e8efab093b7
2022-09-04 19:05:19 +09:00
Takashi Kajinami
4faa434742 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: Iaf3e13cbda1cf5fe25f8c4b9fb945f13fa4f30f3
2022-08-26 17:45:55 +09:00
Takashi Kajinami
aac84a5108 Remove deprecated watcher::api::watcher_api_* parameters
... because these were deprecated during Yoga cycle[1].

[1] 2a689b750a7842e903f7bd9834f442c11d7b9941

Change-Id: Id4916a8bde771a1d122fa78f19833d5d21c34a1e
2022-08-18 20:52:35 +09:00
Zuul
691e4943b6 Merge "Stop hard-coding default of [api] port" 2022-08-15 15:45:07 +00:00
Zuul
1b51997ee0 Merge "Stop listening at 0.0.0.0 by default" 2022-08-15 15:44:21 +00:00