From cb775ee2229b4b38b2b785467e5bde0fa8c5833b Mon Sep 17 00:00:00 2001 From: zhanghao2 Date: Fri, 14 Jun 2019 21:26:10 -0400 Subject: [PATCH] Add fwaas_v2 log optional configuration in l3_agent.ini When configuring fwaas_v2 log, we can specify rate_limit, burst_limit and local_output_log_base options in nework_log section. Change-Id: Iba061c399599cf601c22054b3924b9a74f0f4fa0 --- doc/source/admin/config-logging.rst | 9 +++++++-- neutron/opts.py | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/source/admin/config-logging.rst b/doc/source/admin/config-logging.rst index 7e5ef297666..7d4aee002d8 100644 --- a/doc/source/admin/config-logging.rst +++ b/doc/source/admin/config-logging.rst @@ -41,6 +41,11 @@ To enable the logging service, follow the below steps. [agent] extensions = log + .. note:: + + Fwaas v2 log is currently only supported by openvswitch, the firewall + logging driver of linuxbridge is not implemented. + #. To enable logging service for ``firewall_group`` in Layer 3, add ``fwaas_v2_log`` to option ``extensions`` in section ``[AGENT]`` in ``/etc/neutron/l3_agent.ini`` for network nodes. For example: @@ -51,8 +56,8 @@ To enable the logging service, follow the below steps. extensions = fwaas_v2,fwaas_v2_log #. On compute/network nodes, add configuration for logging service to - ``[network_log]`` in ``/etc/neutron/plugins/ml2/openvswitch_agent.ini`` as - shown bellow: + ``[network_log]`` in ``/etc/neutron/plugins/ml2/openvswitch_agent.ini`` and in + ``/etc/neutron/l3_agent.ini`` as shown bellow: .. code-block:: ini diff --git a/neutron/opts.py b/neutron/opts.py index cb539276298..9d242f56496 100644 --- a/neutron/opts.py +++ b/neutron/opts.py @@ -218,6 +218,8 @@ def list_l3_agent_opts(): ), ('agent', neutron.conf.agent.agent_extensions_manager.AGENT_EXT_MANAGER_OPTS), + ('network_log', + neutron.conf.services.logging.log_driver_opts) ]