2d8966ab43f5ead55a75719626aa4bee26e86b0f
Commit Graph

140 Commits

Author SHA1 Message Date
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
Takashi Kajinami
8e04fa6153 Remove leftover of MongoDB support
We already removed support for MongoDB a while ago[1]. This removes
the leftover in Oslo::DBConn type so that we use the single consistent
pattern.
[1] 2ad73a71c0
Change-Id: I341286bbf834e9ec90de3d79b95cb64c1ca8b847
2023年06月19日 17:03:38 +09:00
Benedikt Trefzer
471514fa53 add spec test for type Oslo::Dbconn
Change-Id: I8ad8f5246f7e7cf3d1e6104ac2e3ade69ce9735d
2023年06月13日 08:29:40 +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
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
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
Takashi Kajinami
c47f5dbc4f Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit fe04834873.
Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).
Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.
Depends-on: https://review.opendev.org/850705
Change-Id: I8d150db9974cde13ea00c8e831bd30c380efe390
2022年08月31日 06:02:30 +09: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
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
Takashi Kajinami
95544711d4 cache: Add inet6 prefix for only memcached backends
The inet6 prefix is required only by backends dependent on
python-memcached and SHOULD NOT be added when the other backends like
pymemcache backend are used.
Closes-Bug: #1965318
Change-Id: I351bd1f291b9e948cb73592a5a742d051a048d00
2022年03月18日 00:37:51 +09:00
Takashi Kajinami
fe04834873 CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.
Change-Id: I81ed92c6027778cf374a210d383cce8a62fec8c3
2022年02月23日 23:03:27 +09:00
Takashi Kajinami
9038a5badd privsep: Allow customizing section name
Some components uses sections not following the current name template
(privsep_${section}) to register oslo.privsep parameters. For example
nova registers the parameters to the nova_sys_admin section.
This change allows overriding the section name to deal with such cases.
Change-Id: Icaf88ebaaf72d6810d9ded119a9998538eb09869
2022年02月07日 10:42:33 +00:00
Hervé Beraud
34e1446f44 Add pymemcache's HashClient retrying options to oslo.cache
This patch specifies a set of options required to setup pymemcache's
HashClient retrying feature (dogpile.cache) cache backend.
Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/824944
Change-Id: I90d8e2b0cf231c9bd0fe97d4f363795886ccf8c7
2022年01月28日 16:07:39 +01:00
Hervé Beraud
f7dbe8aa5f Add retrying options to oslo.cache
This patch specifies a set of options required to setup the retrying wrapper
feature of pymemcache (dogpile.cache) cache backend.
Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/803747
Change-Id: If4622f85e1e7f715805b205bfc3c16cb1e53b943
2022年01月28日 11:24:04 +01:00
Zuul
19ad5b2fa1 Merge "Add socket keepalive options for the pymemcache backend" 2022年01月27日 17:39:25 +00:00
Grzegorz Grasza
60495a42c9 Add socket keepalive options for the pymemcache backend
This patch specifies a set of options required to setup the socket
keepalive feature of pymemcache (dogpile.cache) cache backend.
Depends-On: https://review.opendev.org/803716
Change-Id: I7deed1bca1ce2f715967e966d4b0cedc1f227027
2022年01月27日 20:07:32 +09:00
Takashi Kajinami
f898c0f8dd Ensure kombu_ssl_certfile and kombu_ssl_keyfile are used together
This change migrate the validation from puppet-designate/neutron to
the common place, because the requirement is valid for all components.
Change-Id: I0cbd9d22b53ae2f966f0a007231a9003dc03b36e
2022年01月21日 15:06:25 +09:00
Takashi Kajinami
f91cf63560 barbican_service_user: Accept system scope credential
This change allows usage of system scope credentials in addition to
project scope credentials, to use service user token when accessing
Barbican API.
Change-Id: I3ab30adbae3e805aee36bd32854e5490b19b0097
2022年01月08日 15:25:59 +09:00
Takashi Kajinami
937fcf0644 Accept system scope credentials for Unified Limits API
This change allows usage of system scope credentials in addition to
project scope credentials to use the Unified Limits API in Keystone.
Change-Id: If4f1633c6dd7adf4b80c0a8cc83ddd3d025d099b
2022年01月06日 22:43:04 +09:00
Takashi Kajinami
9da6c6d9fc [oslo_limit] password should be secret
Change-Id: I5b6431e93e3359cedb07192579258f9bc24b37c9
2021年11月30日 00:33:57 +09:00
Takashi Kajinami
056a1db578 Remove deprecated oslo_config
... because it was deprecated a while ago[1], and has not been used
actually.
[1] 6cd2bc408d
Change-Id: Ida5525f6d66145cbadc7ab5407b559b12b101a76
2021年11月02日 13:14:28 +09:00
Takashi Kajinami
f1ed9f4023 Add support for oslo.limit library parameters
This change introduces the new oslo::limit resource type, to manage
parameters of the oslo.limit library[1]. This library is used to
implement the unified quota feature, and is used by Glance at the time
of writing.
[1] https://opendev.org/openstack/oslo.limit
Change-Id: Ic07fe61a530982ae6ae972f52775f5aec51b3134
2021年10月07日 13:26:21 +09:00
Zuul
ff8ac7fb2e Merge "key_manager: Add service user options for Barbican key manager" 2021年09月23日 19:59:33 +00:00
Takashi Kajinami
f9414832fc Fix unit tests incompatible with puppetlab-stdlib 8.0.0
Since puppetlabs-stdlib 8.0.0, ensure_packages automatically translates
'ensure => present' to 'ensure => installed' and that translation
breaks existing assertions in unit tests.
Change-Id: Ie5e9cb8d245187fc6d363a8eb3bc1c3d899ae864
2021年09月24日 00:23:51 +09:00
Takashi Kajinami
bdf0c6f1b4 key_manager: Add service user options for Barbican key manager
This change introduces some parameters to set up the service user token
feature for Barbican key manager, which was implemented during the Xena
cycle[1].
This basically replicates the implementation in puppet-keystone class.
We should not make this dependent on puppet-keystone to avoid circular
dependency between puppet-oslo and puppet-keystone.
[1] 162039467ad0dfc5e25a16b75d9072d607690702
Change-Id: I6d94318929cf4bcfc61180494110d0e5812356c0
2021年09月23日 22:07:01 +09:00
Zuul
71d3c8cf47 Merge "cache: support etcd3gw backend" 2021年09月20日 11:13:17 +00:00
Zuul
262bfed7a6 Merge "cache: Allow customizing status of the backend package" 2021年09月20日 11:13:16 +00:00
Takashi Kajinami
c6b931c6fd cache: support etcd3gw backend
This change introduces support to use ectd3gw backend as oslo.cache
backend, and makes the required backend package installed. The same
backend is already supported for coordination and this change leverage
the existing definitions added for coordination.
Change-Id: Id0eec018a68ab4a510307f150aa2a6ee017fa651
2021年08月30日 08:01:20 +00:00
Takashi Kajinami
eb5bd8e330 cache: Allow customizing status of the backend package
This change introduces the package_ensure parameter to oslo::cache
resource type, so that users can define status of the backend package.
Change-Id: I34f10b51e1179beed327b9544b0899105cb30895
2021年08月30日 08:01:13 +00:00
Takashi Kajinami
872883d7f5 coordination: Allow disabling management of backend package
... which is already implemented in other resources like oslo::cache.
Change-Id: I459b7b752a83f75b1cb05c2104812133039a9162
2021年08月29日 14:35:01 +09:00
Zuul
b05244e2a1 Merge "[oslo.middleware] Add support for basic auth middleware options" 2021年08月24日 09:13:42 +00:00
Zuul
1e6b40e31b Merge "coordination: disable config management" 2021年08月24日 08:59:25 +00:00
Takashi Kajinami
ce716972b9 [oslo.middleware] Add support for basic auth middleware options
This change introduces support for options of basic auth middleware[1],
which was implemented during the Xena cycle.
[1] da7987ca926e9bd82ff2989a920ea9740da24f95
Change-Id: I6dc1b1bd1f49ffa6e49e5e08e2462974c89309f5
2021年08月21日 20:10:55 +09:00
Zuul
71e3c3d5e8 Merge "Cors: Accept array for ListOpts" 2021年06月28日 11:10:07 +00:00
Zuul
606b016ee3 Merge "Get rid of the $pyvers variable" 2021年06月17日 12:07:43 +00:00
Thomas Goirand
3a51feed89 Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.
Change-Id: Id2e98924bf27efa0fae98519b9b17940644e95d7
2021年06月16日 22:02:13 +09:00
Takashi Kajinami
040ef880ae Set fixture paths for unit tests
This change defines manifest_dir and module_path expicitly in unit
tests so that modules installed under fixtures directory is properly
loaded.
Change-Id: I5bf6cd967d1e0e9fe4eaac0dac242dbc7b88a771
Closes-Bug: #1930403 
2021年06月15日 19:20:19 +09:00
Takashi Kajinami
09ece82775 coordination: disable config management
It turned out that Gnocchi uses the different parameter name to
define coordination backend. This change introduces a flag to disable
managmeent of coordination parameters so that we can implement that
management in specific manifets.
Change-Id: I9eccb6b727f67d1e7b74f886e8c08562f1824aba
2021年05月21日 17:14:18 +09:00
Takashi Kajinami
475d6e8bbd Add the base implementation for coordination parameters
This change introduces the oslo::coordination resource type, which can
be used to manage paramaeters and packages used for coordination(tooz).
Change-Id: I93ee3a37137232604aaa1532f4d46bf28264b677
2021年05月18日 18:13:55 +09:00
Takashi Kajinami
769ff6dec9 Cors: Accept array for ListOpts
The following four parameters of cors middleware are ListOpt, thus
accepting array for these options allows users to define parameters
in a similar format.
 - allowed_origin
 - expose_headers
 - allow_methods
 - allow_headers
Change-Id: I4478d209c23e7468e6f36fe417acc01d7b986938
2021年05月12日 00:01:47 +09:00