Merge "Deprecate database params in neutron::server"
This commit is contained in:
commit
1e252b0df4
|
@ -63,6 +63,7 @@ class neutron::db (
|
|||
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
|
||||
|
|
|
@ -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