359 Commits

Author SHA1 Message Date
ZhongShengping
a1ae65f323 Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I2feecb96c4b859584ead37155269cb33d742e9d2
Closes-Bug: #1943212
2021-09-14 16:02:09 +08:00
Zuul
93bc3cf679 Merge "Do not test authtoken parameters directly" 2021-09-03 07:57:35 +00:00
Zuul
71c8a85409 Merge "Use a 'params' hash for authtoken parameters" 2021-09-02 18:13:51 +00:00
Takashi Kajinami
849af0e11f Do not test authtoken parameters directly
The authtoken parameters are not managed directly but managed by
the keystone::resource::authtoken class. Thus we should avoid testing
parameters directly otherwise any change in the resource type can
cause test failures.

Change-Id: I293c28cc9e7decc2149b44b8f9154f088ebf09db
2021-08-27 06:33:35 +09:00
Takashi Kajinami
79ee6b5c8f Use a 'params' hash for authtoken parameters
This change adds the 'params' hash in authtoken class, to implement
the same functionality as the one recently introduced into
puppet-nova[1].

[1] 5c38281e1b698f157f03bf1815733277c541c30b

Change-Id: I62c36a4521ca9b3c5062d88fe9a7ee55c748fbd3
2021-08-26 22:15:34 +09:00
Zuul
c46813b1e2 Merge "Migrate max_stacks_per_tenant to heat::engine" 2021-08-24 09:46:26 +00:00
Takashi Kajinami
b362f4e026 Do not test details of oslo::cache
... but test interface of oslo::cache, to make these test cases robust
for any change in oslo::cache.

Change-Id: Ic84202156f487e1b4605b665d02a1ebbecc509aa
2021-08-23 14:36:47 +09:00
Takashi Kajinami
e79e74cd08 Migrate max_stacks_per_tenant to heat::engine
... because the max_stacks_per_tenant parameter is used by heat-engine,
and the very similar max_resources_per_stack parameter is implemented
in heat::engine.

Change-Id: I57a8e8b9643d999c8ed379895f998ee1d09fb1a8
2021-08-07 00:20:17 +09:00
Zuul
4185722bf7 Merge "Add support for MultiStrOpt" 2021-06-28 12:08:27 +00:00
Zuul
26b8900da7 Merge "Set fixture paths for unit tests" 2021-06-03 00:11:48 +00:00
Takashi Kajinami
bd7d486b52 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.

Closes-Bug: #1930403
Change-Id: Ifd966b0f62cd5f682d5ba70927597d6923f3fa47
2021-06-02 13:59:58 +09:00
Thomas Goirand
131476ca2b Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: Ie5052433ff584d75fcf58c0058f16a05dc97eeaa
2021-05-21 11:22:52 +02:00
Takashi Kajinami
aadfcfc087 Do not test detail of oslo::cors
This change makes unit test cases for heat::cors, so that these tests
do not test behavir of oslo::cors but how oslo::cors resource type is
called by heat::cors.

Change-Id: Ic1bdb8f8d9b397b17db8c1d7a64a2e2d88e94b62
2021-05-12 00:24:37 +09:00
Takashi Kajinami
97bce7569d Add support for MultiStrOpt
This replaces the provider implementation of heat_config type so that
MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
is handled correctly.

Change-Id: Ifb3a302e1e15b496761112936c847217ec2116cc
2021-05-05 10:48:51 +09:00
Thomas Goirand
274e458478 Add support for heat_api_{cfn_,}uwsgi_config in Debian
This patch is adding the configuration of the number of workers,
threads, and the size of the listen queue in Debian, which uses
uwsgi to run Heat API and api-metadata. Therefore, this patch adds
two new heat_api_uwsgi_config and heat_api_cfn_uwsgi_config
providers as well as two new heat::wsgi::uwsgi_api and
heat::wsgi::uwsgi_api_cfn classes.

Change-Id: I0e226046f6e2d69c89681948cee8e8830c186489
2021-04-10 22:44:24 +02:00
Thomas Goirand
37bd354401 Allow to configure policy_dirs
This patch makes it possible to override the current service default,
which is /etc/<service>/policy.d .

Change-Id: I9dea409a46bd8d22388853582de8f64034cf0d03
2021-04-01 23:01:27 +02:00
Takashi Kajinami
704c10fce4 Add support for oslo_policy/enforce_new_defaults
Depends-on: https://review.opendev.org/781428
Change-Id: Ic012fdd97529baebef8840f364084e7f946b6908
2021-03-24 16:38:22 +09:00
Takashi Kajinami
e08f3cd6fe Add support for the oslo_policy/enforce_scope parameter
Depends-on: https://review.opendev.org/#/c/759008/
Change-Id: Ice8c1420a2386887965dd587e90b35d3314b0c27
2021-03-16 12:36:29 +09:00
Zuul
2563fda115 Merge "Add support for healthcheck middleware options" 2021-02-23 19:59:33 +00:00
Zuul
bea275a919 Merge "Add TLS options to oslo.cache" 2021-02-10 17:49:28 +00:00
Grzegorz Grasza
42d1e8567d Add TLS options to oslo.cache
This patch specifies a set of options required to build a TLS context.
The context built from those options can later on be passed to any of
the oslo.cache backends that supports TLS connections.

Depends-on: https://review.opendev.org/761604
Change-Id: I92552d013db98b972124db901f3f35a326110846
2021-02-10 21:00:25 +09:00
Takashi Kajinami
72d1b4d137 Add support for healthcheck middleware options
Depends-on: https://review.opendev.org/772202
Change-Id: I3a09b3dcdbece397edb19051683657bec2d411c4
2021-02-01 17:29:53 +09:00
Takashi Kajinami
b4e9a1a6e4 Use yaml instead of json for policy file
Because usage of json for policy file will be deprecated and replaced
by yaml[1].

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Depends-on: https://review.opendev.org/769647
Change-Id: Id19b8fc7ded7b3a25a7b028687780caad32deae9
2021-01-07 08:44:59 +00:00
ZhongShengping
c16009b55b Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: I9118a6d4e1553ee0715f3fda72d625ccdcdf1b0f
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
ZhongShengping
bb28a6a9a4 Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

[1]https://review.opendev.org/#/c/417629/

Change-Id: Ia08ce1ffa507572f6eff0ad24415802b0b535a13
Closes-Bug: #1902158
2020-11-02 15:25:27 +08:00
Zuul
b88fa7b204 Merge "Deprecate database options from the heat class" 2020-10-21 09:13:20 +00:00
Takashi Kajinami
6a8e1b15aa Deprecate database options from the heat class
... because these options have been implemented in the heat::db class.

Change-Id: I5724d843607d958bae9cc897899cd78dddd7cdea
2020-10-20 11:28:11 +09:00
Christopher Brown
261f4b1cf6 Add support for the keystone_authtoken/service_type parameter
Change-Id: I2c3a5d3c005963fe490310f6b81619cc85b28cc9
2020-10-18 18:23:41 +10:00
ZhongShengping
b1ba1d6376 Include deps class in unit test for sync
Change-Id: I629f6031dcf27edacb9681f86fa7b0dd1433af2e
2020-10-12 10:46:40 +08:00
ZhongShengping
e891e3604b Include deps class in unit test for postgresql
Change-Id: I9004657f9ed0da8f53029d2f07d597bd1fdb5d36
2020-10-10 09:31:12 +08:00
ZhongShengping
0e63859379 Include deps class in unit test for mysql
Change-Id: I16aa8e1d51c9c2c49d7e180a8d809460a7261d5f
2020-10-09 09:59:55 +08:00
Tobias Urdin
d544216d04 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: I2dbbe7e99180ef1da610b534f2adaa891332b620
2020-08-31 21:24:19 +02:00
ZhongShengping
9fd21cf7cf Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: I6392637052f305f6c0b9381923d8e9a69774a51a
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:55:57 +08:00
Zuul
66b976f168 Merge "Expose vhost_custom_fragment" 2020-08-19 14:41:19 +00:00
Luke Short
0e85f1c7b0 Expose vhost_custom_fragment
It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Heat CFN service.

Change-Id: If689eb5e896dba443358ac83cd7f566aacc276f1
Signed-off-by: Luke Short <ekultails@gmail.com>
2020-08-18 13:53:38 -04:00
Takashi Kajinami
312998a6e1 Use common class to manage apache service in beaker job
Depends-on: https://review.opendev.org/#/c/745246/
Change-Id: I5d82fb7cd41d2fec0c31107ac9b2f1a89c98fe19
2020-08-07 09:22:48 +09:00
Zuul
7750d9d2ed Merge "Add support for the interface parameter in authtoken middleware" 2020-07-08 16:43:25 +00:00
Takashi Kajinami
e633bc0ae5 Add support for the interface parameter in authtoken middleware
This patch adds support for [keystone_authtoken] interface parameter,
so that operators can define which endpoint should be used by authtoken
middleware.

Change-Id: I5325bdfbcec13b53b83ac669fb2b91885c370e60
2020-07-08 11:20:39 +09:00
Thomas Goirand
ac5eaeb657 Add a max_stacks_per_tenant parameter
The default of 100 is barely useable. Let's add a new parameter
max_stacks_per_tenant to allow increasing this.

Change-Id: I2bd9ce729b5e2b5ff6577951989b93390cb3a6bf
2020-07-03 02:41:56 +02:00
Takashi Kajinami
1de8cdd7a4 Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I1e0061aea6782bd61e745bb39683589794231a5f
2020-05-19 20:00:03 +09:00
Takashi Kajinami
cb148c24b6 Add CentOS8 to nodesets
Change-Id: Icaba85b9bc063c10ff27bf5330f75f9f430c3847
2020-05-10 21:45:39 +09:00
Takashi Kajinami
4e760d477c Use anchor to require necessary packages
... so that correct packages are required according without re-defining
them in resource implementations.

Change-Id: Ia8e6256af44b29b9f3e5aa2ff3c7eeb6e7835a15
2020-05-04 02:21:17 +09:00
Takashi Kajinami
7dd8afd35d Deprecate heat::engione::deferred_auth_method
... because its actual parameter in heat was already deprecated[1].

[1] 9723b0dab707bcedc846415b932b2ade5b7c1317

Change-Id: I782d6b3833f450178ccd34736de4c9f861937399
2020-04-26 22:12:11 +09:00
Zuul
d155f6cb10 Merge "Expect python3 client package in CentOS8" 2020-03-31 22:11:48 +00:00
Zuul
fad1e5af7a Merge "Add support for cache options in specific module" 2020-03-31 15:35:28 +00:00
Takashi Kajinami
ace4e65596 Expect python3 client package in CentOS8
In CentOS, we expect to have python3 client package in 8.x while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.

Change-Id: I7cbb56f310187234e753792e684ebcf7792a3b89
2020-03-31 16:34:45 +09:00
Takashi Kajinami
3cbb922235 Add support for cache options in specific module
This patch introduces several parameters in heat::cache class, so that
we can configure caching parameters for specific module.

Change-Id: I752c31825ec3f3f23df01a4d24a633b2453bff19
2020-03-29 08:59:23 +09:00
Zuul
9df2d37e69 Merge "Add server_keystone_endpoint_type param to heat::engine" 2020-03-26 23:37:56 +00:00
Tobias Urdin
093b663165 Add server_keystone_endpoint_type param to heat::engine
Adds the server_keystone_endpoint_type config option [1].

This is available all the way back from Stein and will
therefore be backported.

[1] https://github.com/openstack/heat/blob/master/heat/common/config.py#L99

Change-Id: Ia251802612e7a4cf5c6828f3b7c1a0ef63a3c069
2020-03-25 19:57:12 +01:00
ZhongShengping
1084af6e86 Deprecate min_pool_size option
min_pool_size option is not used,see:

https://review.opendev.org/#/c/565090/

Change-Id: Ibd40fed67872c502f54f12c07ebe20fa47089aa5
Closes-Bug: #1868511
2020-03-25 14:53:41 +08:00