Commit Graph

193 Commits

Author SHA1 Message Date
Takashi Kajinami a1a9f3348c Add support for [oslo_messaging_rabbit] rabbit_transient_quorum_queue
... which is the option added during this cycle.

Change-Id: Ic851ec1cf8cbf85fd00dacf9637f619ed1804068
2024-03-05 11:15:16 +09:00
Takashi Kajinami e21a6c603c 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.

Change-Id: I0386f2cc97346242549713e9663c48ca2b9444ac
2024-03-01 10:15:25 +09:00
Takashi Kajinami dfbc0c1283 cache: Install backend package for bmemcached/redis backend
The oslo.cache library supports the following backends which require
additional backend packages.
 - dogpile.cache.bmemcached
 - dogpile.cache.redis

This ensures that the required backend packages are installed according
to the selected backend.

Change-Id: Ifaaf9e7a4f0557218adbdd3ff967814d384b4064
2024-02-29 23:35:56 +09:00
Takashi Kajinami ca8fc7f52b cache: Support options for memcached with SASL enabled
This introduces support for oslo.cache options to use memcached with
SASL enabled.

Change-Id: I2b93a4871de5320fdfcfab8f507c4c47b351d6c2
2024-02-26 11:10:09 +09:00
Takashi Kajinami ac79ad02bb healthcheck: Add support for ignore_proxied_requests
The new ignore_proxied_requests option was added to the healthcheck
middleware which allows operators to prohibit access to healthcheck
information via load balancers. This introduces a new parameter which
corresponds to this option.

Depends-on: https://review.opendev.org/901215
Change-Id: Iaf9b40db938f998c20d6cea4b19cf09651c46bbf
2024-02-22 11:22:23 +09:00
Takashi Kajinami 9175c459e4 Add optional installation of oslo.reports package
Some services like ironic does not require oslo.reports but users have
to install the library to capture GMR. This introduces a few new
options to enable management of oslo.reports package to cover that
requirement.

Because the oslo::reports class was added during this cycle, this
change contains no release note updates.

Change-Id: I64d9e6e8135fa051db0a3a576ee8998fd00a3824
2024-01-30 01:57:18 +09:00
Takashi Kajinami 1efa397d12 Add support for oslo.reports library options
This change adds support for options of the olso.reports library, which
is used in several components to generate Guru Meditation Reports(GMR).

Change-Id: I2db5a2639ea98ed983a9d07e6cef1f493c6ae6b5
2024-01-26 23:58:26 +09:00
Takashi Kajinami 97ee84e76f Add support for [healthcheck] allowed_source_ranges
Change-Id: Iddb38da980cf01536185c6c910ca68ac35c8a436
2024-01-15 00:49:07 +09:00
Takashi Kajinami 1d34a8d183 coordination: Remove support for etcd3 driver
... because the driver has been removed.

Depends-on: https://review.opendev.org/901040
Change-Id: I502c33d2fe80f3dac3c4ebe1653f99cc91a144b0
2023-12-16 23:30:54 +09:00
Zuul 1d40ba5178 Merge "Debian/Ubuntu: Do not install python3-pysqlite2" 2023-12-15 18:32:12 +00:00
Zuul f27cf72079 Merge "coordination: Use consistent tag format for package resources" 2023-12-15 18:05:54 +00:00
Takashi Kajinami 482fae00cd Debian/Ubuntu: Do not install python3-pysqlite2
The python3-pysqlite2 package is no longer available, and the built-in
sqlite3 library is used instead.

Closes-Bug: #2046335
Change-Id: I9642ca3b6e37d3a85ae274d38a8376e9afa03042
2023-12-13 20:13:44 +09:00
Takashi Kajinami 976418c9c2 coordination: Use consistent tag format for package resources
... to avoid conflicts with the other implementations which require
same packages.

Closes-Bug: #2046317
Change-Id: I3d637b1c47ea17a565efb1d5e0b58ee701b21c8b
2023-12-13 14:10:04 +09:00
Takashi Kajinami a878ebe071 Add support for [cache] memcache_pool_flush_on_reconnect
... so that all memcache pool options are supported.

Change-Id: Idf443c2d8f2f5d5b77e3129ac6affa4d91490222
2023-12-07 12:47:10 +09:00
Takashi Kajinami 199e84fad9 Support [oslo_messaging_notifications] retry option
Change-Id: I2c948ae091ab6533022703afb7b5a05a278abcc0
2023-11-08 16:01:46 +00:00
Takashi Kajinami b400662729 RabbitMQ: Add support for quorum queue options
Change-Id: Ic95ebf1128152bac120b3a3f3732c8bc5891c27b
2023-09-13 15:46:58 +09:00
Takashi Kajinami e174113210 Deprecate support for amqp1 driver
The amqp1 driver has been deprecated in oslo.messaging because of
lack of qpid_dispatch module. This deprecates support for the driver.

Because deprecating all parameters for amqp1 driver needs large changes
in multiple modules, this change introduces the logic to detect usage
of amqp1 driver and shows the warning instead.

Depends-on: https://review.opendev.org/861070/
Change-Id: Ia176b8d881eb9bd1bb5e22b437b4e60ecd6963af
2023-08-15 11:30:54 +09:00
Zuul 825b1a00c7 Merge "db: Use ensure_packages to manage backend package" 2023-08-02 13:58:29 +00:00
Takashi Kajinami a0130741b6 db: Fix unknown variable 'backend_package'
This fixes the following error caught in puppet 8 unit tests.

Evaluation Error: Error while evaluating a Resource Statement,
Evaluation Error: Unknown variable: 'backend_package'.

Change-Id: I01b1488a7907599b10e9eca94198a2e641eae8a2
2023-07-28 13:41:40 +09:00
Takashi Kajinami d0dd31ee35 db: Use ensure_packages to manage backend package
... instead of skipping the resource definition in case the same is
already defined. This allows us to detect any conflicting definitions
defined in multiple manifests.

Change-Id: Id78c6c1553973b57b4b9e7edaf8d029d833f4722
2023-07-28 13:14:52 +09:00
Zuul c3293a4953 Merge "remove legacy db connection check with proper types" 2023-07-28 03:56:22 +00:00
Benedikt Trefzer 6ca03a90c4 remove legacy db connection check with proper types
- includes new type check for slave type

Change-Id: I170e46d65abe3399e69a33dabbe59b44adc90337
2023-07-25 22:52:20 +09:00
Takashi Kajinami 2d8966ab43 db: Add option to disable config management
... so that we can reuse the logic to install the required backend
package.

Change-Id: I52cd38d9787d407f7c583996640fcef33aedb32e
2023-07-25 17:06:38 +09:00
Benedikt Trefzer fd71263284 remove validate_legacy (Booleans only)
Change-Id: I58de785f83e11d3db2393bdc8dcd240f37e15fdd
2023-06-15 22:17:35 +02:00
Takashi Kajinami a996337333 [coordination] backend_url should be secret
The backend_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[coordination]
backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: Idb7cba32fa81da698d408c27a854550b03e5abd4
2023-03-20 21:06:23 +09:00
Takashi Kajinami ee865e8859 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: I666fea269663f219500c3a3ee748393c343b3f72
2023-03-03 04:38:05 +00:00
Takashi Kajinami 548d68cf35 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib0bdb6329a438ac44886ee0494d0c52ad344a1bf
2023-03-02 12:37:35 +09:00
Zuul ebf9af865f Merge "Add common implementation to manage [os_brick] options" 2022-11-30 08:56:28 +00:00
Zuul 978b7ef3cf Merge "cache: Support array value for tls_allowed_ciphers" 2022-11-30 05:08:48 +00:00
Takashi Kajinami 7e187f637a Add common implementation to manage [os_brick] options
The os-brick library now supports its own lock_path configuration. This
adds the defined resource type to manage the option so that we can
reuse this implementation in some modules.

Depends-on: https://review.opendev.org/c/openstack/os-brick/+/849324
Change-Id: Iae1c155692fec845a8cab0ae284eeeaaf3336962
2022-11-28 09:54:20 +09:00
Takashi Kajinami 6f502efdc1 Fox wrong format of [cache] backend_argument
This option is not a ListOpt but a MultiStrOpt. So an array values
should NOT be converted to the colon-separated list format.

Closes-Bug: #1997603
Change-Id: If346affd48013f4f553a5fddc93524a8408cc605
2022-11-24 10:49:02 +09:00
Takashi Kajinami 0532649275 cache: Support array value for tls_allowed_ciphers
The [oslo_cache] tls_allowed_ciphers option takes a colon-seprated
list. This change allows usage of a native array value to set
the value so that users can more easily compose up the value without
considering the actual value format.

Change-Id: I5c295c747a0f19757e3b3c7eaf990b32d7e1af11
2022-11-24 01:41:08 +00:00
Takashi Kajinami 60afb3379b coordination: Deprecate support of the etcd3 driver
The etcd3 driver of tooz has been deprecated. This change deprecates
its support in the puppet modules so that we can remove the support in
a future release.

Depends-on: https://review.opendev.org/833107
Change-Id: I3cb9d3321957341d2110178ed7b67bfe3f265a38
2022-10-05 04:14:05 +00:00
Takashi Kajinami 5590e9b164 Remove deprecated oslo::db::use_tpool
The parameter was deprecated during Yoga cycle[1] and is no longer used
by the other modules.

[1] af6514829c

Change-Id: I9c15808bc1725be7ec6e24b37c066c089990e85e
2022-09-21 00:35:36 +09:00
Zuul f5db3abb0f Merge "privsep: Add support for the remaining parameters" 2022-09-09 11:20:11 +00:00
Takashi Kajinami 49de918c25 privsep: Add support for the remaining parameters
This change adds support for the following two parameters of
the oslo.privsep library, so that all options can be configured by
the oslo::privsep defined resource type.

 - thread_pool_size
 - logger_name

Change-Id: I88eb0a5a1d3fd795a2c29b7be4d6e5722a330c45
2022-09-01 00:08:55 +00:00
Takashi Kajinami fc72a83bcc cache: Ensure pymemcache library is installed
The pymemcache library should be installed when pymemcache backend is
used but this library is not required by the oslo.cache library or
its dependencies and should be installed additionally.

Closes-Bug: #1988205
Change-Id: I9422af416e74c53e09f6216bcbeab234337ccbae
2022-08-30 22:42:59 +00:00
Rajesh Tailor 513573850b Fix typos is parameter descriptions
Change-Id: I3134bd39892f7d1412dd267e4995aaece87523c2
2022-06-28 16:57:27 +05:30
Zuul 9fdd85639e Merge "db: Remove MongoDB backend support" 2022-05-23 17:41:50 +00:00
Zuul 32b7e86e10 Merge "db: Remove min_pool_size" 2022-05-23 17:41:48 +00:00
Zuul 8a7520dd42 Merge "db: remove idle_timeout" 2022-05-23 17:19:29 +00:00
Takashi Kajinami 2ad73a71c0 db: Remove MongoDB backend support
Support for MongoDB backend was used by puppet-ceilometer but it is
no longer used since MongoDB was replaced by Gnocchi.

Because we no longer expect any real use case, this change removes
the implementation directly with deprecation skipped.

Change-Id: I5203cefe77c6c1410842fa7c530f98761fe65ed4
2022-05-18 14:05:20 +09:00
Takashi Kajinami 0a7cc71dad db: Remove min_pool_size
... because it was deprecated during Ussuri cycle[1].

[1] 1338b26b02

Change-Id: I86ff6b35b7e2ea29799ff98d734b7e9b4b2e0f08
2022-05-18 13:40:53 +09:00
Takashi Kajinami 61b3426457 db: remove idle_timeout
... because it was deprecated during Train cycle[1] in favor of the new
connection_recycle_time parameter.

[1] 3eb0e70947

Change-Id: Iecd45f2e551eb46d3d8b839e5911898591272705
2022-05-18 13:38:53 +09:00
Takashi Kajinami 30d3b68793 Remove allow_insecure_clients
... because it was deprecated during Wallaby cycle[1].

[1] c08a99f05c

Change-Id: I4a76fb16e4fbb3711db5c86ab35000334e95c124
2022-05-18 13:31:27 +09:00
Takashi Kajinami 4fcbddc632 Fix typo in warning message
Change-Id: I53e794088bfac13785776b6265cc0f23e1c20d91
2022-04-15 11:42:13 +09:00
Takashi Kajinami d3623fe039 db: Fix deprecation warning about use_tpool
Currently the warning log is shown when the parameter is NOT set,
because of the wrong if condition.

Change-Id: I462592ca7d3d2654246cd890c6097e97bd967707
2022-04-07 11:27:48 +09:00
Zuul 19143c3932 Merge "Split oslo::service defined type" 2022-04-05 15:49:58 +00:00
Takashi Kajinami efd1146993 log: Accept array for default_log_levels
Currently the default_log_levels parameter accepts only hash or string.
This change adds support for an array value, so that users can use
an array of 'logger=LEVEL' strings.

Change-Id: I8c4358128438700430645df132882ec46a8885b9
2022-04-04 13:55:01 +09:00
Takashi Kajinami 19862b0f18 Split oslo::service defined type
The oslo::service defined type was added a long ago but has never been
used by any other modules so far. The main blocker is that the type
manages not only common service parameters but also wsgi/ssl parameters
which are specific to api services.

This change splits the defined type to smaller modules so that we can
reuse the implementation.

Because the defined type is not used by any other modules at this
moment, and we don't expect direct usage of these resource type(*1),
this change is backword-incompatible.

(*1)
Technically it can be used but cause multiple conflicts.

Change-Id: If524155bf2d0dda964c6b451d7b26f36481514f5
2022-04-04 08:47:54 +09:00