Added support for Neutron loggings service plugin configuration

Depends-On: https://review.opendev.org/c/openstack/puppet-neutron/+/813602

Conflicts:
    deployment/neutron/neutron-l3-container-puppet.yaml
    deployment/neutron/neutron-ovs-agent-container-puppet.yaml
    deployment/neutron/neutron-plugin-ml2-ovn.yaml

Related: rhbz#1990357
Change-Id: Ic045cdf0544fffeed51871d5b970fd29707fcd95
(cherry picked from commit c9f0a5af01)
This commit is contained in:
Slawek Kaplonski 2021-08-11 12:49:37 +02:00
parent c919e48bdc
commit 0da2a8a842
4 changed files with 85 additions and 1 deletions

View File

@ -130,6 +130,22 @@ parameters:
will be passed
type: string
NeutronL3AgentLoggingRateLimit:
default: 100
description: |
Maximum number of packets logging per second
type: number
NeutronL3AgentLoggingBurstLimit:
default: 25
description: |
Maximum number of packets per rate_limit
type: number
NeutronL3AgentLoggingLocalOutputLogBase:
default: ''
description: |
Output logfile path on agent side, default syslog file
type: string
conditions:
keepalived_wrapper_enabled: {equals: [{get_param: NeutronEnableKeepalivedWrapper}, true]}
haproxy_wrapper_enabled: {equals: [{get_param: NeutronEnableHaproxyDockerWrapper}, true]}
@ -139,6 +155,8 @@ conditions:
service_debug_unset: {equals : [{get_param: NeutronWrapperDebug}, false]}
az_unset: {equals: [{get_param: NeutronL3AgentAvailabilityZone}, '']}
l3_agent_extensions_empty: {equals : [{get_param: NeutronL3AgentExtensions}, "''"]}
network_log_local_output_log_base_set:
not: {equals : [{get_param: NeutronL3AgentLoggingLocalOutputLogBase}, '']}
resources:
@ -222,6 +240,12 @@ outputs:
- {}
- neutron::agents::l3::extensions: {get_param: NeutronL3AgentExtensions}
- neutron::agents::l3::radvd_user: {get_param: NeutronL3AgentRadvdUser}
- neutron::agents::l3::network_log_rate_limit: {get_param: NeutronL3AgentLoggingRateLimit}
- neutron::agents::l3::network_log_burst_limit: {get_param: NeutronL3AgentLoggingBurstLimit}
- if:
- network_log_local_output_log_base_set
- neutron::agents::l3::network_log_local_output_log_base: {get_param: NeutronL3AgentLoggingLocalOutputLogBase}
- {}
service_config_settings:
map_merge:
- get_attr: [NeutronBase, role_data, service_config_settings]

View File

@ -150,12 +150,30 @@ parameters:
tags:
- role_specific
NeutronOVSAgentLoggingRateLimit:
default: 100
description: |
Maximum number of packets logging per second
type: number
NeutronOVSAgentLoggingBurstLimit:
default: 25
description: |
Maximum number of packets per rate_limit
type: number
NeutronOVSAgentLoggingLocalOutputLogBase:
default: ''
description: |
Output logfile path on agent side, default syslog file
type: string
conditions:
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
no_firewall_driver: {equals : [{get_param: NeutronOVSFirewallDriver}, '']}
docker_puppet_mount_host: {equals: [{get_param: DockerPuppetMountHostPuppet}, true]}
neutron_dvr_unset: {equals : [{get_param: NeutronEnableDVR}, '']}
ethertypes_unset: {equals : [{get_param: NeutronPermittedEthertypes}, []]}
network_log_local_output_log_base_set:
not: {equals : [{get_param: NeutronOVSAgentLoggingLocalOutputLogBase}, '']}
resources:
@ -247,6 +265,12 @@ outputs:
- ethertypes_unset
- {}
- neutron::agents::ml2::ovs::permitted_ethertypes: {get_param: NeutronPermittedEthertypes}
- neutron::agents::ml2::ovs::network_log_rate_limit: {get_param: NeutronOVSAgentLoggingRateLimit}
- neutron::agents::ml2::ovs::network_log_burst_limit: {get_param: NeutronOVSAgentLoggingBurstLimit}
- if:
- network_log_local_output_log_base_set
- neutron::agents::ml2::ovs::network_log_local_output_log_base: {get_param: NeutronOVSAgentLoggingLocalOutputLogBase}
- {}
service_config_settings:
map_merge:

View File

@ -108,6 +108,23 @@ parameters:
tags:
- role_specific
NeutronOVNLoggingRateLimit:
default: 100
description: |
Maximum number of packets logging per second
type: number
NeutronOVNLoggingBurstLimit:
default: 25
description: |
Maximum number of packets per rate_limit
type: number
NeutronOVNLoggingLocalOutputLogBase:
default: ''
description: |
Output logfile path on agent side, default syslog file
type: string
conditions:
neutron_dvr_unset: {equals : [{get_param: NeutronEnableDVR}, '']}
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
@ -115,6 +132,8 @@ conditions:
or:
- {not: {equals: [{get_param: NeutronVhostuserSocketDir}, ""]}}
- {not: {equals: [{get_param: [RoleParameters, NeutronVhostuserSocketDir]}, ""]}}
network_log_local_output_log_base_set:
not: {equals : [{get_param: NeutronOVNLoggingLocalOutputLogBase}, '']}
resources:
@ -173,7 +192,12 @@ outputs:
- values:
NeutronVhostuserSocketDir: {get_param: NeutronVhostuserSocketDir}
- {}
- neutron::agents::ml2::ovn::network_log_rate_limit: {get_param: NeutronOVNLoggingRateLimit}
- neutron::agents::ml2::ovn::network_log_burst_limit: {get_param: NeutronOVNLoggingBurstLimit}
- if:
- network_log_local_output_log_base_set
- neutron::agents::ml2::ovn::network_log_local_output_log_base: {get_param: NeutronOVNLoggingLocalOutputLogBase}
- {}
step_config: |
include ::tripleo::profile::base::neutron::plugins::ml2
metadata_settings:

View File

@ -0,0 +1,12 @@
---
features:
- |
New config options for Neutron logging service plugin configuration were
added. There are options added for L3 Agent:
``NeutronL3AgentLoggingRateLimit``, ``NeutronL3AgentLoggingBurstLimit``,
``NeutronL3AgentLoggingLocalOutputLogBase``, for OVS agent:
``NeutronOVSAgentLoggingRateLimit``, ``NeutronOVSAgentLoggingBurstLimit``,
``NeutronOVSAgentLoggingLocalOutputLogBase`` and for ML2/OVN backend:
``NeutronOVNLoggingRateLimit``, ``NeutronOVNLoggingBurstLimit``,
``NeutronOVNLoggingLocalOutputLogBase``.