Add support for log offloading over TCP

Add new OctaviaLogOffloadProtocol setting that allows to select either
UDP (default) or TCP as protocol for log offloading.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/847584
Depends-On: https://review.opendev.org/c/openstack/python-tripleoclient/+/847844
Change-Id: I6713af2b8fc8bee93a3de2f33280efb6fe963db9
This commit is contained in:
Tom Weininger 2022-06-24 17:28:41 +02:00
parent 8857188bd6
commit f6ceb0bfa0
3 changed files with 19 additions and 1 deletions

View File

@ -178,6 +178,12 @@ parameters:
to the administrative log endponts and will be stored with
the controller logs.
type: boolean
OctaviaLogOffloadProtocol:
default: 'udp'
description: The protocol to use for the RSyslog log offloading feature.
type: string
constraints:
- allowed_values: ['udp', 'tcp']
OctaviaFlavorId:
default: '65'
description: Nova flavor ID to be used when creating the nova flavor for
@ -256,6 +262,7 @@ outputs:
octavia_group_vars_dir: "{{playbook_dir}}/octavia-ansible/group_vars"
container_cli: { get_param: ContainerCli }
enable_log_offloading: { get_param: OctaviaLogOffload }
log_offload_protocol: { get_param: OctaviaLogOffloadProtocol }
octavia_flavor_id: { get_param: OctaviaFlavorId }
octavia_flavor_properties: { get_param: OctaviaFlavorProperties }
octavia_manage_nova_flavor: { get_param: OctaviaManageNovaFlavor }

View File

@ -62,6 +62,12 @@ parameters:
to the administrative log endponts and will be stored with
the controller logs.
type: boolean
OctaviaLogOffloadProtocol:
default: 'udp'
description: The protocol to use for the RSyslog log offloading feature.
type: string
constraints:
- allowed_values: ['udp', 'tcp']
resources:
ContainersCommon:
@ -106,7 +112,7 @@ outputs:
dport: 5555
iniface: {get_param: OctaviaMgmtPortDevName}
'210 octavia lb-mgmt-net offload rsyslog':
proto: udp
proto: {get_param: OctaviaLogOffloadProtocol}
dport: 514
iniface: {get_param: OctaviaMgmtPortDevName}
monitoring_subscription: {get_param: MonitoringSubscriptionOctaviaHealthManager}

View File

@ -0,0 +1,5 @@
---
features:
- |
Added new OctaviaLogOffloadProtocol setting that allows to select either
UDP (default) or TCP as protocol for log offloading.