Add support for [DEFAULT] rpc_state_report_workers

Change-Id: I191cacaa0db1705a501d6a510136d9518fcba7d1
This commit is contained in:
Takashi Kajinami 2021-11-12 08:37:14 +09:00
parent 70fe4887a1
commit 4c5bf0c018
3 changed files with 12 additions and 0 deletions

View File

@ -75,6 +75,10 @@
# manages them.
# Defaults to: $::os_workers
#
# [*rpc_state_report_workers*]
# (Optional) Number of RPC worker process dedicated to state reports queue.
# Defaults to: $::os_service_default.
#
# [*rpc_response_max_timeout*]
# (Optional) Maximum seconds to wait for a response from an RPC call
# Defaults to: $::os_service_default
@ -239,6 +243,7 @@ class neutron::server (
$sync_db = false,
$api_workers = $::os_workers,
$rpc_workers = $::os_workers,
$rpc_state_report_workers = $::os_service_default,
$rpc_response_max_timeout = $::os_service_default,
$agent_down_time = $::os_service_default,
$enable_new_agents = $::os_service_default,
@ -319,6 +324,7 @@ class neutron::server (
'DEFAULT/l3_ha_net_cidr': value => $l3_ha_net_cidr;
'DEFAULT/api_workers': value => $api_workers;
'DEFAULT/rpc_workers': value => $rpc_workers;
'DEFAULT/rpc_state_report_workers': value => $rpc_state_report_workers;
'DEFAULT/rpc_response_max_timeout': value => $rpc_response_max_timeout;
'DEFAULT/agent_down_time': value => $agent_down_time;
'DEFAULT/enable_new_agents': value => $enable_new_agents;

View File

@ -0,0 +1,5 @@
---
features:
- |
The new ``neutron::server::rpc_state_report_workers`` parameter has been
added.

View File

@ -61,6 +61,7 @@ describe 'neutron::server' do
should contain_service('neutron-server').with_name('neutron-server')
should contain_neutron_config('DEFAULT/api_workers').with_value(facts[:os_workers])
should contain_neutron_config('DEFAULT/rpc_workers').with_value(facts[:os_workers])
should contain_neutron_config('DEFAULT/rpc_state_report_workers').with_value('<SERVICE DEFAULT>')
should contain_neutron_config('DEFAULT/rpc_response_max_timeout').with_value('<SERVICE DEFAULT>')
should contain_neutron_config('DEFAULT/agent_down_time').with_value('<SERVICE DEFAULT>')
should contain_neutron_config('DEFAULT/enable_new_agents').with_value('<SERVICE DEFAULT>')