From b89454af62faf39cd662c8b7fabc524093b16935 Mon Sep 17 00:00:00 2001
From: Michael Johnson <johnsomor@gmail.com>
Date: Fri, 20 Sep 2019 13:30:35 -0700
Subject: [PATCH] Added the connection_logging parameter for Octavia

This patch adds the "connection_logging" configuration parameter
for the Octavia service. It defaults to true as it does in the
octavia service configuration defaults.

Depends-On: https://review.opendev.org/#/c/683713/
Change-Id: I72981f276064c1edbc2228f51a1ddeec2e3afce5
---
 deployment/octavia/octavia-base.yaml                         | 5 +++++
 .../add-connection-logging-parameter-e51f59175c8da204.yaml   | 3 +++
 2 files changed, 8 insertions(+)
 create mode 100644 releasenotes/notes/add-connection-logging-parameter-e51f59175c8da204.yaml

diff --git a/deployment/octavia/octavia-base.yaml b/deployment/octavia/octavia-base.yaml
index b93a776631..afa1d7feaa 100644
--- a/deployment/octavia/octavia-base.yaml
+++ b/deployment/octavia/octavia-base.yaml
@@ -135,6 +135,10 @@ parameters:
     default: 120
     description: Retry threshold for connecting to amphorae.
     type: number
+  OctaviaConnectionLogging:
+    default: true
+    description: When false, tenant connection flows will not be logged.
+    type: boolean
   OctaviaBuildActiveRetries:
     default: 120
     description: Retry threshold for waiting for a build slot for an amphorae.
@@ -196,6 +200,7 @@ outputs:
             octavia::controller::timeout_member_data: {get_param: OctaviaTimeoutMemberData}
             octavia::controller::timeout_tcp_inspect: {get_param: OctaviaTimeoutTcpInspect}
             octavia::controller::connection_max_retries: {get_param: OctaviaConnectionMaxRetries}
+            octavia::controller::connection_logging: {get_param: OctaviaConnectionLogging}
             octavia::controller::build_active_retries: {get_param: OctaviaBuildActiveRetries}
             octavia::controller::port_detach_timeout: {get_param: OctaviaPortDetachTimeout}
           -
diff --git a/releasenotes/notes/add-connection-logging-parameter-e51f59175c8da204.yaml b/releasenotes/notes/add-connection-logging-parameter-e51f59175c8da204.yaml
new file mode 100644
index 0000000000..5e2052c3c2
--- /dev/null
+++ b/releasenotes/notes/add-connection-logging-parameter-e51f59175c8da204.yaml
@@ -0,0 +1,3 @@
+---
+features:
+  - Added the "connection_logging" parameter for the Octavia service.