Commit Graph

216 Commits

Author SHA1 Message Date
Takashi Kajinami
dedd259113 Add support for [cors] options
Change-Id: I8054327879deb71a759885e94dd5fb830cb62f97
2021-07-05 11:56:10 +09:00
Zuul
a00e903ea8 Merge "Add support for [api_settings] healthcheck_refresh_interval" 2021-06-28 09:43:16 +00: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
Zuul
9448a98907 Merge "Do not declare service resources when manage_service is false" 2021-05-17 18:56:25 +00:00
Takashi Kajinami
3c37baefdc Fix a typo in parameter description
Change-Id: I38bb6932d280433174ea2139090f770cffba6fbc
2021-05-08 23:31:08 +09: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
Zuul
81205d4162 Merge "Fix a typo in file header" 2021-04-27 09:28:47 +00:00
Takashi Kajinami
cba4a35d8b Fix a typo in file header
Change-Id: I05bff1f2c9c40dad6e5bfb5ef988f6859638378b
2021-04-21 01:09:43 +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
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
Takashi Kajinami
46cffbd1e9 Deprecate parameters for the Spares Pool feature
The Spares Pool feature of Octavia was deprecated in Octavia during V
cycle and will be removed in X cycle[1].

[1] 29a2ec7187ff5607a7fb3700a53c6524c4153396

Change-Id: I45551178adc7dbea35ffe3acde0c31f3ec3c33c9
2021-01-04 21:00:59 +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
Takashi Kajinami
d251519d6b Deprecate database options from the octavia class
... because these options have been implemented in the octavia::db
class.

Change-Id: Idbd47c051cf48b35a346fea06866ab90b6fb325c
2020-10-20 12:55:09 +09:00
Takashi Kajinami
4491d687b2 Do not validate database_connection format
Currently we validate database_connection in 2 layers, each puppet
modules and puppet-oslo, however this makes it difficult to maintain
validation pattern because we always need to fix both.
This patch removes the validation from each puppet modules so that
we need to maitain only one place, puppet-oslo to update validation
logic.

Change-Id: I5eb1051e67a56941b9684728aa4f4340ddb35aab
2020-08-31 17:53:21 +09:00
ZhongShengping
f1bf9208a6 Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: I209ce6353962f7af77f44125b14bf5436d790e57
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:56:20 +08:00
Luke Short
444cb9b583 Expose vhost_custom_fragment
It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Octavia service.

Also add Apache WSGI spec tests for default and custom parameters.

Change-Id: I1aee36aa0dee557dda1b65695233728f1a8d3ff1
Signed-off-by: Luke Short <ekultails@gmail.com>
2020-08-21 06:53:39 +00:00
Takashi Kajinami
bccc230352 Cleanup deprecated controller parameters from octavia::worker
Change-Id: I69b5068e4ca3b1a43ab3d267b8a0a47e2bb50480
2020-08-03 07:58:28 +09:00
Zuul
51c88c5e60 Merge "Switch oslo.policy over to yaml" 2020-07-17 13:48:04 +00:00
Lewis Denny
e21746f375 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: I18e2f3376fefea600a1ad5a931ce52310b44f51f
2020-07-14 21:28:52 +10:00
Tobias Urdin
80cfe119bb Change to relative include
Change-Id: I4d838802362664563468575dba8e6829b90cef7e
2020-07-13 21:22:31 +02:00
Carlos Goncalves
daa3c1269f Switch oslo.policy over to yaml
Upstream switched oslo.policy from JSON to YAML format
output in [1].

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

Closes-Bug: #1885602

Depends-On: Iec610053a9250cb78c2a17bfc2c197bf55d9df86
Change-Id: Ieb6bc60eb2750a9f3f0539c2bd0176fabfebb30e
2020-07-08 15:43:53 -02:30
Takashi Kajinami
ddc7986e18 Add support for [oslo_middleware] enable_proxy_headers_parsing
The enable_proxy_haders_parsing parameter was added into Octavia[1] so
that Octavia API can set up the request URL correctly.
This patch adds support for this parameter in octaiva::api module, so
that operators can set it according to their deployment architecture.

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

Change-Id: I985abb8e5dcd6d29e794b200982f8bce99ac316c
2020-06-18 18:56:20 +09:00
Takashi Kajinami
1a02a99fc4 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: Ie6e0bd0ef7ab3793f97361b8e61a81ca1bd92cce
2020-05-19 20:31:28 +09:00
Brent Eagles
88ff210c30 Add driver agent configuration
Add support for octavia driver agent configuration options.

Change-Id: Ica6f84256ff2068e9bac210e66a1429ea627256c
2020-04-02 11:56:55 +00:00
Zuul
17c5182534 Merge "Add Octavia OVN Provider configuration (2 of 2)" 2020-03-31 16:21:18 +00:00
Flavio Fernandes
8777b5031c Add Octavia OVN Provider configuration (2 of 2)
This patch enhances Octavia's OVN driver config, so it can connect to
OVN_Northbound DB using TLS.

Related-Bug: #1861886

Change-Id: Ic2602e7a219f3c3be7f085726ee9736975062306
2020-03-30 09:41:24 -04:00
ZhongShengping
c73e14b5f8 Deprecate min_pool_size option
min_pool_size option is not used,see:

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

Change-Id: I792d9d13257e910d6285896e77af4b80c0425a2a
Closes-Bug: #1868511
2020-03-25 14:53:41 +08:00
ZhongShengping
4103b2dc82 Remove idle_timeout option
The idle_timeout parameter has been deprecated for two releases.
We can remove it.

Change-Id: I65977cf90f0944cfceaa0c97b12a547079e18871
2020-03-23 14:45:49 +08:00
Zuul
fe79fb1a5f Merge "Add Octavia OVN Provider configuration (1 of 2)" 2020-03-20 22:59:50 +00:00
Flavio Fernandes
dce599e498 Add Octavia OVN Provider configuration (1 of 2)
This patch enhances Octavia's OVN driver config, so it can connect to
OVN_Northbound DB using TLS.

This is part 1 of 2, where octavia::api::ovn_nb_connection will move
to newly created octavia::provider::ovn::ovn_nb_connection config file.
But that has to be split into 2 parts to avoid breaking the
CI until the THT+pupple-tripleo changes merges [1].

[1]: https://review.opendev.org/#/q/topic:bug/1861886+(status:open+OR+status:merged)

Co-Authored-By: Brent Eagles <beagles@redhat.com>
Related-Bug: #1861886
Change-Id: Id74ef39ff303c9abf8118df203970cd871ed974a
2020-03-18 10:00:11 -04:00
Sam Morrison
32bb8087c6 Support amp_image_owner_id option for octavia controller
Change-Id: Ie0ee8e3b66e270a72483a7042045313d4d4511b3
2020-03-10 09:39:28 +09:00
Zuul
2afe375f78 Merge "Adds amp_active_retries and amp_active_wait_sec" 2020-03-09 17:00:14 +00:00