Add the Octavia log offload parameters

This patch add the following new parameters for Octavia:

1. OctaviaAdminLogTargets
2. OctaviaAdminLogFacility
3. OctaviaForwardAllLogs
4. OctaviaTenantLogTargets
5. OctaviaTenantLogFacility
6. OctaviaUserLogFormat
7. OctaviaDisableLocalLogStorage

The default values mirror the Octavia service default values.

Depends-On: https://review.opendev.org/#/c/695065/
Change-Id: I46709b5e6cadab0137eafccb5896d5e55919f845
(cherry picked from commit 7d756756d6)
This commit is contained in:
Michael Johnson 2019-09-20 14:09:51 -07:00 committed by Carlos Goncalves
parent 3b27df286d
commit 8df489a799
2 changed files with 51 additions and 0 deletions

View File

@ -147,6 +147,47 @@ parameters:
default: 300
description: Seconds to wait for a port to detach from an amphora.
type: number
OctaviaAdminLogTargets:
default: []
description: List of syslog endpoints, host:port comma separated list,
to receive administrative log messages.
type: comma_delimited_list
OctaviaAdminLogFacility:
default: 1
description: The syslog "LOG_LOCAL" facility to use for the administrative
log messages.
type: number
constraints:
- range: { min: 0, max: 7 }
description: Facility must be between 0 and 7.
OctaviaForwardAllLogs:
default: false
description: When true, all log messages from the amphora will be forwarded
to the administrative log endponts, including non-load
balancing related logs.
type: boolean
OctaviaTenantLogTargets:
default: []
description: List of syslog endpoints, host:port comma separated list,
to receive tenant traffic flow log messages.
type: comma_delimited_list
OctaviaTenantLogFacility:
default: 1
description: The syslog "LOG_LOCAL" facility to use for the tenant
traffic flow log messages.
type: number
constraints:
- range: { min: 0, max: 7 }
description: Facility must be between 0 and 7.
OctaviaUserLogFormat:
default: "{{ '{{' }} project_id {{ '}}' }} {{ '{{' }} lb_id {{ '}}' }} %f %ci %cp %t %{+Q}r %ST %B %U %[ssl_c_verify] %{+Q}[ssl_c_s_dn] %b %s %Tt %tsc"
description: The tenant traffic flow log format string.
type: string
OctaviaDisableLocalLogStorage:
default: false
description: When true, logs will not be stored on the amphora filesystem.
This includes all kernel, system, and security logs.
type: boolean
conditions:
service_debug_unset: {equals : [{get_param: OctaviaDebug}, '']}
@ -203,6 +244,13 @@ outputs:
octavia::controller::connection_logging: {get_param: OctaviaConnectionLogging}
octavia::controller::build_active_retries: {get_param: OctaviaBuildActiveRetries}
octavia::controller::port_detach_timeout: {get_param: OctaviaPortDetachTimeout}
octavia::controller::admin_log_targets: {get_param: OctaviaAdminLogTargets}
octavia::controller::administrative_log_facility: {get_param: OctaviaAdminLogFacility}
octavia::controller::forward_all_logs: {get_param: OctaviaForwardAllLogs}
octavia::controller::tenant_log_targets: {get_param: OctaviaTenantLogTargets}
octavia::controller::user_log_facility: {get_param: OctaviaTenantLogFacility}
octavia::controller::user_log_format: {get_param: OctaviaUserLogFormat}
octavia::controller::disable_local_log_storage: {get_param: OctaviaDisableLocalLogStorage}
-
if:
- octavia_topology_unset

View File

@ -0,0 +1,3 @@
---
features:
- Added the Octavia log offload parameters.