Deprecate database params in neutron::server
Lets get rid of the pick's that's been here for years now. Change-Id: I5847ced19cbe40d197ab807f008c5b4a21b8277d
This commit is contained in:
parent
3489c25a0f
commit
f9330a5025
@ -73,6 +73,7 @@ database_connection_recycle_time instead.')
|
||||
warning('The database_min_pool_size parameter is deprecated, and will be removed in a future release.')
|
||||
}
|
||||
|
||||
# TODO(tobias-urdin): Remove the database_* params in neutron::server is removed.
|
||||
# NOTE(spredzy): In order to keep backward compatibility we rely on the pick function
|
||||
# to use neutron::<myparam> if neutron::db::<myparam> isn't specified.
|
||||
$database_connection_real = pick($::neutron::server::database_connection, $database_connection)
|
||||
|
@ -59,30 +59,6 @@
|
||||
# (Optional) Whether to validate the service is working after any service refreshes
|
||||
# Defaults to false
|
||||
#
|
||||
# [*database_connection*]
|
||||
# (Optional) Connection url for the neutron database.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_max_retries*]
|
||||
# (Optional) Maximum database connection retries during startup.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_idle_timeout*]
|
||||
# (Optional) Timeout before idle database connections are reaped.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_retry_interval*]
|
||||
# (Optional) Interval between retries of opening a database connection.
|
||||
# (Defaults to 10)
|
||||
#
|
||||
# [*database_max_pool_size*]
|
||||
# (Optional) Maximum number of SQL connections to keep open in a pool.
|
||||
# Defaults to: undef.
|
||||
#
|
||||
# [*database_max_overflow*]
|
||||
# (Optional) If set, use this value for max_overflow with sqlalchemy.
|
||||
# Defaults to: undef.
|
||||
#
|
||||
# [*sync_db*]
|
||||
# (Optional) Run neutron-db-manage on api nodes after installing the package.
|
||||
# Defaults to false
|
||||
@ -261,6 +237,30 @@
|
||||
# (Optional) Minimum number of SQL connections to keep open in a pool.
|
||||
# Defaults to: undef.
|
||||
#
|
||||
# [*database_connection*]
|
||||
# (Optional) Connection url for the neutron database.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_max_retries*]
|
||||
# (Optional) Maximum database connection retries during startup.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_idle_timeout*]
|
||||
# (Optional) Timeout before idle database connections are reaped.
|
||||
# (Defaults to undef)
|
||||
#
|
||||
# [*database_retry_interval*]
|
||||
# (Optional) Interval between retries of opening a database connection.
|
||||
# (Defaults to 10)
|
||||
#
|
||||
# [*database_max_pool_size*]
|
||||
# (Optional) Maximum number of SQL connections to keep open in a pool.
|
||||
# Defaults to: undef.
|
||||
#
|
||||
# [*database_max_overflow*]
|
||||
# (Optional) If set, use this value for max_overflow with sqlalchemy.
|
||||
# Defaults to: undef.
|
||||
#
|
||||
class neutron::server (
|
||||
$package_ensure = 'present',
|
||||
$enabled = true,
|
||||
@ -272,12 +272,6 @@ class neutron::server (
|
||||
$rpc_package_name = $::neutron::params::rpc_package_name,
|
||||
$rpc_service_name = $::neutron::params::rpc_service_name,
|
||||
$validate = false,
|
||||
$database_connection = undef,
|
||||
$database_max_retries = undef,
|
||||
$database_idle_timeout = undef,
|
||||
$database_retry_interval = undef,
|
||||
$database_max_pool_size = undef,
|
||||
$database_max_overflow = undef,
|
||||
$sync_db = false,
|
||||
$api_workers = $::os_workers,
|
||||
$rpc_workers = $::os_workers,
|
||||
@ -308,6 +302,12 @@ class neutron::server (
|
||||
$igmp_snooping_enable = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
$database_min_pool_size = undef,
|
||||
$database_connection = undef,
|
||||
$database_max_retries = undef,
|
||||
$database_idle_timeout = undef,
|
||||
$database_retry_interval = undef,
|
||||
$database_max_pool_size = undef,
|
||||
$database_max_overflow = undef,
|
||||
) inherits ::neutron::params {
|
||||
|
||||
include neutron::deps
|
||||
|
12
releasenotes/notes/remove-db-from-init-494070edc306ec9f.yaml
Normal file
12
releasenotes/notes/remove-db-from-init-494070edc306ec9f.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The database_connection, database_max_retries, database_idle_timeout,
|
||||
database_retry_interval, database_max_pool_size and database_max_overflow
|
||||
parameters in neutron::server class is deprecated.
|
||||
upgrade:
|
||||
- |
|
||||
The database_connection, database_max_retries, database_idle_timeout,
|
||||
database_retry_interval, database_max_pool_size and database_max_overflow
|
||||
parameters in neutron::server class is deprecated. Please set them in the
|
||||
neutron::db class instead.
|
@ -17,12 +17,6 @@ describe 'neutron::server' do
|
||||
:package_ensure => 'present',
|
||||
:enabled => true,
|
||||
:auth_strategy => 'keystone',
|
||||
:database_connection => 'sqlite:////var/lib/neutron/ovs.sqlite',
|
||||
:database_max_retries => 10,
|
||||
:database_idle_timeout => 3600,
|
||||
:database_retry_interval => 10,
|
||||
:database_max_pool_size => 10,
|
||||
:database_max_overflow => 20,
|
||||
:sync_db => false,
|
||||
:router_scheduler_driver => 'neutron.scheduler.l3_agent_scheduler.ChanceScheduler',
|
||||
:l3_ha => false,
|
||||
|
Loading…
Reference in New Issue
Block a user