239 Commits

Author SHA1 Message Date
Zuul
7854ff8028 Merge "Do not test detail of keystone::resource::service_identity" 2021-09-27 11:25:26 +00:00
Takashi Kajinami
7c345186bf Do not test detail of keystone::resource::service_identity
... but test interfaces of that resource type. This helps us avoid
direct breakage caused by any change in puppet-keystone.

Change-Id: I62e146e2736f2702ca7dc82e03c8a26cd1df1a55
2021-09-27 12:10:03 +09:00
Takashi Kajinami
8f7149e0f7 [service_auth] password should be secret
Change-Id: Ibe8c1ff4519cc36d76914c633ab821835e0a1538
2021-09-23 22:42:15 +09:00
Zuul
774be3e774 Merge "Add watch_log_file option" 2021-09-15 01:49:00 +00:00
ZhongShengping
b86fe3e33e Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: Iecc618707d243f9e56acf085c71bb03737bde70c
Closes-Bug: #1943212
2021-09-14 16:02:09 +08:00
Takashi Kajinami
a6ece88f9f Remove parameters for the Spares Pool feature
... because these were deprecated during Wallaby cycle[1]. Actual
implementation was also removed from Octavia during Xena cycle[2].

[1] 46cffbd1e9229f587f3b6c703f4964aec4bab452
[2] 815a283823121d563562474eb9048673a95f6e1f

Change-Id: Ia516256b9a1acc7790bfaf58c1f17e558fe4a139
2021-09-12 22:02:02 +09:00
Zuul
4fb8e65e21 Merge "Allow purging policy files" 2021-09-10 07:05:35 +00:00
Zuul
92705cb8d3 Merge "Do not test authtoken parameters directly" 2021-09-08 01:44:27 +00:00
Zuul
b5bb64c04a Merge "Use a 'params' hash for authtoken parameters" 2021-09-08 01:44:26 +00:00
Takashi Kajinami
4bb6e9bfe8 Allow purging policy files
This change introduces the new purge_config parameter to the policy
class so that any policy rules not managed by puppet manifests can be
cleared.

Co-Authored-By: Martin Schuppert <mschuppert@redhat.com>
Depends-On: https://review.opendev.org/802305
Change-Id: I3b58daf4d70bd31a3a91a7e631ecc894fb42debe
2021-09-04 22:16:22 +09:00
Takashi Kajinami
621e5ff4c2 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: I1c0d708e710c14ca6214dafb0b15757838cfbb4d
2021-08-27 18:14:56 +09:00
Takashi Kajinami
8f5a727a80 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: I323d49030db642bc06402306250b177923e02486
2021-08-27 18:14:38 +09:00
Zuul
61e738060f Merge "Convert enabled_provider_agents to proper list format" 2021-08-24 07:59:03 +00:00
Takashi Kajinami
12d06f3636 Drop quota parameters without default_ prefix
... because these parameters were deprecated during Wallaby.

Change-Id: I097df997bbe66f274c76a29d42f49ffdba2c9575
2021-08-11 02:54:36 +00:00
Zuul
ff21d5893e Merge "Add support for MultiStrOpt" 2021-07-20 18:10:19 +00:00
Zuul
7de30ea088 Merge "octavia-controller: Convert list values for ListOpts" 2021-07-20 18:05:01 +00:00
Takashi Kajinami
54eea2b3e8 Add support for MultiStrOpt
This replaces the provider implementation of octavia_config type so
that MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
are handled correctly.

Change-Id: Ic8da2858b4c512d31ebbf78a128367d152cf7616
2021-07-19 14:39:39 +00:00
Takashi Kajinami
f62f0b0e15 octavia-controller: Convert list values for ListOpts
The following parameters in octavia-controller are defined as ListOpt
which accept comma-separated list.
This change ensures that the corresponding parameters in puppet-octavia
accepts list values and convert these values to strings in the proper
format.
 - controller_worker/amp_secgroup_list
 - controller_worker/amp_boot_network_list
 - health_manager/controller_ip_port_list
 - amphora_agent/admin_log_targets
 - amphora_agent/tenant_log_targets

Change-Id: I6564e94550ea66f18fd99780a4c990fd18b4da4d
2021-07-19 23:38:13 +09:00
Takashi Kajinami
dedd259113 Add support for [cors] options
Change-Id: I8054327879deb71a759885e94dd5fb830cb62f97
2021-07-05 11:56:10 +09:00
Takashi Kajinami
c868430ae3 Convert enabled_provider_agents to proper list format
The driver_agent/enabled_provider_agents is not a MultiOpt but ListOpt
so should look like comma-seprated list. We should not pass puppet list
directly which leaves only the first element written in octavia.conf .

Change-Id: I38cb0015fc88079d26cff779b7d9b99c641a9fa1
2021-06-29 15:24:16 +09:00
Zuul
a00e903ea8 Merge "Add support for [api_settings] healthcheck_refresh_interval" 2021-06-28 09:43:16 +00:00
Zuul
9557c26ad4 Merge "Set fixture paths for unit tests" 2021-06-03 00:47:58 +00:00
Takashi Kajinami
456e7ff276 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: I1645afb89e33cfe03e25b09c446e2d47fc6b9f18
2021-06-02 14:10:10 +09:00
Thomas Goirand
0221597f1b Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I65aeab82eb4f62834be3162e9ce2bd3655bc315a
2021-05-21 12:09:49 +02:00
Takashi Kajinami
a7b46e1ef6 Do not declare service resources when manage_service is false
This change ensures that service resources are not declared when
manage_service is false, to fix rspec-puppet 2.7.1 support.

Change-Id: I86e05c5182842b73d413ddc95f797c1da5fd0ac2
2021-05-04 21:48:39 +09:00
Takashi Kajinami
1a95466c0b Add support for [api_settings] healthcheck_refresh_interval
Change-Id: I2f757b80ef45a7bd6c28814fddb8a024b591587f
2021-05-04 17:18:55 +09:00
Thomas Goirand
da8ed8acc6 Add support for octavia_api_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 Octavia API. Therefore, this patch adds a new
octavia_api_uwsgi_config provider as well as a new
octavia::wsgi::uwsgi class.

Change-Id: I89e2bb5bb127020adcaabe26e62f68123fab3990
2021-04-12 19:42:03 +02:00
Thomas Goirand
f48b463908 Allow to configure policy_dirs
This patch makes it possible to override the current service default,
which is /etc/<service>/policy.d .

Change-Id: I4a81d4666f52e0305a5ef9880b0f42023cca5f08
2021-04-01 23:21:48 +02:00
Zuul
11796ca87c Merge "Add support for [controller_worker] image_driver" 2021-03-26 05:00:16 +00:00
Zuul
fc9dd0286a Merge "Add support for [haproxy_amphora] build_rate_limit" 2021-03-26 05:00:12 +00:00
Zuul
b417b88a2a Merge "Add support for healthcheck middleware options" 2021-03-26 04:57:26 +00:00
Takashi Kajinami
ee4a3650c3 Add support for oslo_policy/enforce_new_defaults
Depends-on: https://review.opendev.org/781428
Change-Id: Iead7577d9b3b8ea4a4fe7297819099beb80c2a38
2021-03-24 17:02:31 +09:00
Zuul
91faaa9a20 Merge "Add support for volume based amphora" 2021-03-22 09:05:23 +00:00
Zuul
2fd0eafe9e Merge "Do not redefine default drivers" 2021-03-22 09:05:20 +00:00
Takashi Kajinami
6f8059fe0d Add support for the oslo_policy/enforce_scope parameter
Depends-on: https://review.opendev.org/#/c/759008/
Change-Id: If8e716e1bf9a6c6addee4ea6e487a2b273e3ba4a
2021-03-16 18:37:45 +09:00
Takashi Kajinami
9084b42458 Add support for [controller_worker] image_driver
Change-Id: I8581d6d858715d0b17266cfad529d2898e746fc2
2021-03-12 22:54:22 +09:00
Takashi Kajinami
ebf7fdc31c Add support for volume based amphora
This change introduces support for configurations to use volume based
amphora instances.

Change-Id: I9f9c53bfe95364a89deed8d342c45310f52a11b4
2021-03-12 22:53:57 +09:00
Takashi Kajinami
c0a49179c6 Do not redefine default drivers
Currently we define default values for *_driver parameters in
puppet-octavia but all of the default values are same as the defaults
defined in Octavia itself.
Let's remove the default definition and use service default, to make
it easy to keep consistency with Octavia itself.

Change-Id: I521e8fedf09b25c7a8d6a5f2c67d04f586744bcd
2021-03-12 22:23:46 +09:00
Takashi Kajinami
fed08d5bdb Add support for [haproxy_amphora] build_rate_limit
Change-Id: I4e030550963727c7b5d9c151a5cd45f975263e28
2021-03-12 22:01:13 +09:00
Takashi Kajinami
66604db840 Add support for healthcheck middleware options
Depends-on: https://review.opendev.org/772202
Change-Id: I7359d476e7006d9c02cd2722a716f515f1cf9b55
2021-03-09 20:40:08 +09:00
Christopher Brown
1217a8fc35 Add support for the api_settings/pagination_max_limit
This patch implements a new parameter named pagination_max_limit into
octaiva::api, so that operators can configure that parameter by puppet-octaiva.

Change-Id: Id8c389c136de34fd9d6d9fd762a3bf96f5d02267
2021-03-05 07:40:14 +00:00
Takashi Kajinami
be9157566e Do not expect database/idle_timeout
This cleans up remaining usage of the idle_timeout parameter which was
removed[1], to fix the failing unit test case asserting the parameter.

[1] 3eb0e709473d53bc9a26c672c10486828d84d50f

Change-Id: Iae57938166d831f4b0b4a449d64181239fe912c7
2021-03-05 15:27:54 +09:00
Takashi Kajinami
7d5b8aafc8 Use consistent parameter names for quota options
This change renames parameters of octavia::quota options, so that we
use consistent parameter names with the definitions in Octavia.

Change-Id: I63a585b34eaeb5350dbbd72936b4949ebd96e0f0
2021-01-24 17:47:35 +09:00
ZhongShengping
c64ce19371 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: Ia1ccd4583f883c3f4efe692043f134ec3991decc
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
Zuul
962c86a14d Merge "Add support for the keystone_authtoken/service_type parameter" 2020-11-06 22:52:28 +00:00
Takashi Kajinami
0fa8405def Add support for the keystone_authtoken/service_type parameter
Change-Id: Ia25c71328b4f98b5ffa57e1f8b322c4da1ab45b9
2020-11-03 17:20:06 +09:00
ZhongShengping
8a8940c87e Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

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

Change-Id: I42c519f74d6b53570a8aaf9f4423d0a41ff4f0e4
Closes-Bug: #1902158
2020-11-02 15:29:01 +08:00
ZhongShengping
1894d38f5f Include deps class in unit test for sync
Change-Id: Ic854ed47007738c1809a354a27cd0dd659593f7e
2020-10-12 10:46:40 +08:00
ZhongShengping
7407250bae Include deps class in unit test for postgresql
Change-Id: I11fed9bf793abf7da6876b375b478e69a71be53c
2020-10-10 09:31:12 +08:00
ZhongShengping
3ac3233078 Include deps class in unit test for mysql
Change-Id: Id9c9ca1cfe5ee8ac212aec998dfc04531a603dbf
2020-10-09 09:59:55 +08:00