199 Commits

Author SHA1 Message Date
Takashi Kajinami
26b04ed44f 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: I960e6e19da4f05cfb07d261f294411bcb4618f68
(cherry picked from commit 6cd026faf68cbc4768caa707d0019732d376074e)
2021-06-03 06:15:42 +00:00
Takashi Kajinami
e11edd487c Add support for oslo_policy/enforce_new_defaults
Depends-on: https://review.opendev.org/781428
Change-Id: I64511ee42f7b88e1721bb4b6b963f6ea198dcbd7
2021-03-24 12:23:15 +09:00
Takashi Kajinami
92f80ee955 Add support for the oslo_policy/enforce_scope parameter
Depends-on: https://review.opendev.org/#/c/759008/
Change-Id: I30d4f1e2069cd9fffc1e37c15c1a5e7a98c322a8
2021-03-16 12:36:07 +09:00
Zuul
a46d70dd6f Merge "Add support for healthcheck middleware options" 2021-02-23 19:29:20 +00:00
Takashi Kajinami
6b7ebd575e Add support for healthcheck middleware options
Depends-on: https://review.opendev.org/772202
Change-Id: Ica23eec98af9cd199a1c34270befdc3120a98b35
2021-02-01 08:11:40 +09:00
Takashi Kajinami
e05af2b3f1 Use consistent names for service_credentials options
This change renames aodh::auth and its parameters to be consistent
with the section name and the parameter names in aodh service. This
allows operators more easily guess how the class and its parameters
correspond to the options in aodh.

Change-Id: I7ddc4af25f89317da6a794beba312841d2f1bc25
2021-01-31 22:19:46 +09:00
Takashi Kajinami
77691c4c31 Remove the deprecated parameters of aodh::auth
Change-Id: I876d02605d346f4680672f9f4832bfbed91c4235
2021-01-28 09:47:14 +09:00
Zuul
94555d4872 Merge "Ensure coordination_url is unset by default" 2021-01-25 16:27:22 +00:00
Zuul
c47a4089f2 Merge "Add support for workers option" 2021-01-25 16:27:18 +00:00
Takashi Kajinami
bc846d7f15 Ensure coordination_url is unset by default
This change ensures that the coordination_url option is not unmanaged
but unset, to make sure that the default value defined in aodh itself
is used.

Change-Id: If82dc6054483893433634ca81f446e6959dcd038
2021-01-18 12:57:36 +09:00
Takashi Kajinami
ae9b91107d Add support for workers option
This change introduces support for workers option of aodh services
(evaluator, listener, notifier) so that operators can define number
of processes used in each service.

Change-Id: Id64fc407d19aa546512078f67df3a727fd9f5525
2021-01-18 12:57:33 +09:00
Takashi Kajinami
4861f81824 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: I6f2a6a611487ca015eccf8cb91c1346647b8e52b
2021-01-07 23:11:31 +00:00
ZhongShengping
75ff328e89 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: Ia14ad6a2ca9c200867ee5760ca4d72d747d27ad5
Closes-Bug: #1904962
2020-11-23 09:38:25 +08:00
ZhongShengping
30c554c232 Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

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

Change-Id: I57196481309220ff96b8f5b1063f8fac22fc4bbc
Closes-Bug: #1902158
2020-11-02 15:23:04 +08:00
Zuul
49fc8b39ce Merge "Use a 'params' hash for authtoken parameters" 2020-10-13 17:15:38 +00:00
Zuul
2d21489f55 Merge "Add support for the keystone_authtoken/service_type parameter" 2020-10-12 15:28:12 +00:00
Takashi Kajinami
d919628ed1 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: I9a3a1ae0059afc44f71c322c2452776f293a2089
2020-10-12 05:01:03 +00:00
Takashi Kajinami
8d0b2fb637 Add support for the keystone_authtoken/service_type parameter
Change-Id: Ie4a829b7463697809e7b7d553bd269af9cae59bd
2020-10-12 05:00:41 +00:00
ZhongShengping
b3b03d6190 Include deps class in unit test for postgresql
Change-Id: I4a06842755a25592148f5bdab75e03b50bcd66fa
2020-10-10 09:31:12 +08:00
ZhongShengping
aa154e63cc Include deps class in unit test for mysql
Change-Id: I8d1035ceb9b1710a29ac2241bac6726033478b90
2020-10-09 09:59:55 +08:00
Takashi Kajinami
007d3a82f6 Manage aodh-expirer package by aodh::expirer class
Since aodh-expirer command is included in a different package, we need
to manage that package as well in the corresponding class.

Change-Id: Ie3111d5a168e8d15f3e04d410a5a5c30b44324c2
2020-10-03 23:10:15 +09:00
Tobias Urdin
f2b581e6a7 Fix rspec-puppet 2.7.1 support
In commit [1] we enabled the usage of rspec-puppet
2.7.1 in the "latest" unit jobs. This fixes so that
it passes that latest version where strict variables
is enabled.

This testing catches all logical statements that
causes undefined variables and similar where code
is either faulty or testing does not properly set
pre_condition.

[1] https://review.openstack.org/#/c/618919/

Change-Id: I5c7dc99e683885616777ff26217cf6cd0b79a99a
2020-09-26 09:24:53 +09:00
Tobias Urdin
4e4d683373 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: Ib9b27ca2bb6b0a570b0d41ece72fd470294067ea
2020-08-31 20:35:48 +02:00
ZhongShengping
61df5de0b8 Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: I12340a02740bc70256953aaf043b567138e89899
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:55:25 +08:00
Takashi Kajinami
89da4b14fa Add support for aodh-expirer cron job
Change-Id: I8c0e806112b947fccc6b0a6e47c3e0d3722a3e84
2020-08-14 21:21:32 +09:00
Zuul
1a25a60c01 Merge "Use common class to manage apache service in beaker job" 2020-08-10 17:34:04 +00:00
Takashi Kajinami
631b4f4d4f Use common class to manage apache service in beaker job
Depends-on: https://review.opendev.org/#/c/745246/
Change-Id: I0e2097f3e5cd90ac9ae88b001ea91f275fed833b
2020-08-07 09:15:37 +09:00
Zuul
b592c1d0dd Merge "Expose vhost_custom_fragment" 2020-08-06 22:04:49 +00:00
Luke Short
40c6462da5 Expose vhost_custom_fragment
It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Aodh service.

Signed-off-by: Luke Short <ekultails@gmail.com>
Change-Id: Ic5055279770342d244ef3a4592067351981b459a
2020-08-06 00:12:40 -04:00
Takashi Kajinami
895c8b4037 Add support for quota parameters
This patch introduces the new ``aodh::quota`` class, to support
parameters which define quota amount in aodh.

Change-Id: Ice37e64bddb0e128f3fc98de7b5fe35bd08e5f36
2020-08-04 08:10:01 +09:00
Takashi Kajinami
33d690c7eb 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: I39bf94a041d7d4af31fb2653c9274ee8fbdb732e
2020-07-09 08:31:19 +09:00
Takashi Kajinami
b046aa43ea 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: I1fe4c1eed71e9b4ca977b206edefbd0c700af74d
2020-05-17 21:07:46 +09:00
Takashi Kajinami
7e5603773e Add CentOS8 to nodesets
Change-Id: I272df431b8e71a004761e6a61b3fec9a915b4560
2020-05-10 21:40:22 +09:00
Takashi Kajinami
6431321eee Use anchor to require necessary packages
... so that correct packages are required without re-defining them in
resource implementations.

Change-Id: I25f0aa5e0b8c8847627e37c396285131df6a2696
2020-05-04 01:43:28 +09:00
Takashi Kajinami
b756b9b4c8 Rename tenant to project
... because in keystone v3 we use project instead of tenant.

Change-Id: I1e916839f5737a92e62bcc0fc7e0972a66cc7048
2020-04-19 14:55:21 +00:00
Takashi Kajinami
ae4390b9ed Use domain_name instead of domain_id
... because domain name is more predictable than domain id. Also, we
generally use domain_name instead of domain_id in other puppet modules,
so it's more consistent to use domain_name.

Change-Id: I3439997795b7331eec0d0a0a0568d6afdeb5247b
2020-04-19 00:23:42 +09:00
Takashi Kajinami
f07abdbffc Fix broken unit tests because of list in notification drivers
Because the value for oslo_messaging_notifications/driver is now
a list[1], we should expect that a list is set when multiple drivers
are given.

[1] c7b0cc82fac79b47c3dd9a625cbd5a1eb192ed00

Change-Id: I74b9bdaeefee1ed3bbb836d3a45e20e5609f0a8b
2020-04-15 00:09:05 +09:00
Takashi Kajinami
d0c2da685f Make sure to distinguish Fedora and RHEL/CentOS
... because Fedora has its versioning different from RHEL/CentOS.

Change-Id: I67d81b0c994b255a376c05db353019cc7355a630
2020-04-01 07:38:33 +09:00
Takashi Kajinami
ba65e562b9 Expect python3-redis in CentOS8 and Fedora
... because these use python3 instead of python2.

Change-Id: Iee4deab3b1e71cd2cf2f2efea061db545e9ee47c
2020-04-01 07:38:33 +09:00
Zuul
5a6de5b162 Merge "Expect python3 client package in CentOS8" 2020-03-30 14:53:41 +00:00
Takashi Kajinami
c8d9f3d508 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: Ifdc8e09197f15720d585598b54ba9427f436dc3a
2020-03-30 22:01:42 +09:00
Zuul
428cb0a266 Merge "Allow wsgi script to be configurable" 2020-03-27 15:11:32 +00:00
ZhongShengping
ea60281eee Deprecate min_pool_size option
min_pool_size option is not used,see:

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

Change-Id: Iadbaa88680a15687c1e4af8a28db74a0794531ea
Closes-Bug: #1868511
2020-03-25 14:53:40 +08:00
Adrian Smith
1c7c146c91 Allow wsgi script to be configurable
Change-Id: Ie2a6fa3113c1e0a97f73e8e4d750e19003a18f06
2020-03-25 13:11:57 +11:00
Tobias Urdin
d75de30b72 Convert all class usage to relative names
Change-Id: Ib0d2c8567775e0b5aa7a0799851b340cb50b784e
2019-12-08 15:06:48 +01:00
Jake Yip
663a819831 Add executor_thread_pool_size
Change I36324bae39e05dde57b962948f832c22599c13d2 added
executor_thread_pool_size as a new param to oslo::messaging::default,
but that option was not updated in many modules like this one. This
means a user cannot set executor_thread_pool_size, as setting it
anywhere else will throw a duplicate declaration error.

This change update the oslo::messaging::default call accordingly, and
adds an option to set it, similar to Change
Id4a61c39ef6392a3d656952467c756be9e68de91

Change-Id: I92ff2d3fbf038c84a15eaa0a06283a731ec48809
2019-11-13 15:39:19 +11:00
Takashi Kajinami
f9491ff8df Add support to configure service_token_roles in authtoken middleware
Change-Id: I881058fdc53c3ff381b96438ef46dfdc852ece94
2019-09-21 10:22:19 +09:00
Zuul
0ceced22ed Merge "Introduce the new rabbit_heartbeat_in_pthread option" 2019-08-22 03:27:50 +00:00
ZhongShengping
721cea2513 Introduce the new rabbit_heartbeat_in_pthread option
oslo.messaging RabbitMQ driver have now a new option that allow user to
run the RabbitMQ heartbeat over a native python thread.

These change allow user to use this new option.

Change-Id: I20edb5b8b30821486b5cf407af7636b3cd1cc2b6
Closes-Bug: #1840868
2019-08-21 14:22:19 +08:00
Tobias Urdin
06da1da22f Remove deprecated parameters
Remove parameters that has been deprecated
for atleast one cycle.

Change-Id: I887d86893e90cebf5bc28dd539e42436f9a31c6a
2019-08-20 10:10:24 +02:00