From d835dd2093083ebb9e5e8ba6b7d30096fb0ed2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Mon, 27 Nov 2017 15:29:41 +0000 Subject: [PATCH] [QoS] Add info about rate limiting on router's ports Qos policy with bandwidth limit rules can be applied on router's gateway ports to limit only if veth are used to connect it to namespaces. This commit updates "ovs_use_veth" config option help message and qos docs to add such info there. Change-Id: I69e78bc125d430c933f7576d05308030789cee0a Related-Bug: #1732852 --- doc/source/admin/config-qos.rst | 10 ++++++++++ neutron/conf/agent/common.py | 9 +++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/source/admin/config-qos.rst b/doc/source/admin/config-qos.rst index 084814d1d4e..23c456f0ec8 100644 --- a/doc/source/admin/config-qos.rst +++ b/doc/source/admin/config-qos.rst @@ -136,6 +136,16 @@ On the network and compute nodes: [agent] extensions = qos +#. As rate limit doesn't work on Open vSwitch's ``internal`` ports, + optionally, as a workaround, to make QoS bandwidth limit work on + router's gateway ports, set ``ovs_use_veth`` to ``True`` in ``DEFAULT`` + section in ``/etc/neutron/l3_agent.ini`` + + .. code-block:: ini + + [DEFAULT] + ovs_use_veth = True + .. note:: QoS currently works with ml2 only (SR-IOV, Open vSwitch, and linuxbridge diff --git a/neutron/conf/agent/common.py b/neutron/conf/agent/common.py index 6f0fd91dc87..7052f1791b3 100644 --- a/neutron/conf/agent/common.py +++ b/neutron/conf/agent/common.py @@ -54,10 +54,11 @@ INTERFACE_OPTS = [ help=_('Name of Open vSwitch bridge to use')), cfg.BoolOpt('ovs_use_veth', default=False, - help=_('Uses veth for an OVS interface or not. ' - 'Support kernels with limited namespace support ' - '(e.g. RHEL 6.5) so long as ovs_use_veth is set to ' - 'True.')), + help=_("Uses veth for an OVS interface or not. " + "Support kernels with limited namespace support " + "(e.g. RHEL 6.5) and rate limiting on router's gateway " + "port so long as ovs_use_veth is set to " + "True.")), ]