Add param to configure neutron agent_down_time and report_interval

Seconds to regard the agent as down; should be at least twice
NeutronGlobalReportInterval, to be sure the agent is down for good.

Closes-Bug: #1937843
Signed-off-by: Kamil Sambor <ksambor@redhat.com>
Change-Id: Ib3f7cd9d6c050140a5e8b59adf7fd8f65b12df2f
This commit is contained in:
Kamil Sambor 2021-07-23 17:06:52 +02:00
parent 43d1583f46
commit 5ab70af5a6
3 changed files with 23 additions and 0 deletions

View File

@ -195,6 +195,13 @@ parameters:
default: 'keystone'
constraints:
- allowed_values: ['keystone', 'noauth']
NeutronAgentDownTime:
default: 600
type: number
description: |
Seconds to regard the agent as down; should be at least twice
NeutronGlobalReportInterval, to be sure the agent is down for good.
parameter_groups:
- label: deprecated
@ -302,6 +309,7 @@ outputs:
neutron::policy::policies: {get_param: NeutronApiPolicies}
neutron::keystone::authtoken::www_authenticate_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
neutron::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
neutron::server::agent_down_time: {get_param: NeutronAgentDownTime}
neutron::server::auth_strategy: {get_param: NeutronAuthStrategy}
neutron::server::allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
neutron::server::enable_proxy_headers_parsing: true

View File

@ -116,6 +116,12 @@ parameters:
default: 'keystone'
constraints:
- allowed_values: ['keystone', 'noauth']
NeutronGlobalReportInterval:
default: 300
description: >
Seconds between nodes reporting state to server; should be less than
NeutronAgentDownTime, best if it is half or less than NeutronAgentDownTime.
type: number
conditions:
dhcp_agents_set:
@ -134,6 +140,7 @@ outputs:
neutron::core_plugin: {get_param: NeutronCorePlugin}
neutron::auth_strategy: {get_param: NeutronAuthStrategy}
neutron::service_plugins: {get_param: NeutronServicePlugins}
neutron::report_interval: {get_param: NeutronGlobalReportInterval}
neutron::logging::debug:
if:
- {get_param: NeutronDebug}

View File

@ -0,0 +1,8 @@
---
features:
- |
Add param NeutronAgentDownTime to configure neutron server agent_down_time
Seconds to regard the agent as down; should be at least twice
report_interval, to be sure the agent is down for good.
agent_down_time is a config for neutron-server, set by class neutron::server
report_interval is a config for neutron agents, set by class neutron