neutron don't support Router gateway rate limit

Bug #1732852 reported by zhang ping
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
New
Low
Unassigned

Bug Description

Refer to this patch(Apply QoS policy on network:router_gateway :https://review.openstack.org/#/c/425218/),I apply qos policy to router gateway port.
Execution command:
ovs-vsctl list interface qg-xxxx
I find that the ingress rate limit of qg port has been configured successfully,but I found this rate limit didn't work by using iperf test.By view the openvswitch log,i find error:
-----------------------------------------------------------------------------------
2017-11-16T01:22:55.598Z|00115|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on qg-d0c7278b-d2 device failed: No such device
2017-11-16T01:22:55.604Z|00116|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on qg-d0c7278b-d2 device failed: No such device
2017-11-16T01:22:55.604Z|00117|netdev_linux|WARN|qg-d0c7278b-d2: removing policing failed: No such device
----------------------------------------------------------------------------------
 I think openvswitch don't support police rate of namespace qg port, so neutron don't support Router gateway rate limit.

Tags: ovs qos
Changed in neutron:
assignee: nobody → Slawek Kaplonski (slaweq)
tags: added: qos
Changed in neutron:
importance: Undecided → Low
Revision history for this message
Slawek Kaplonski (slaweq) wrote :

So I checked it on my devstack and it looks like in default config L3 agent is using "internal" ovs ports. Problem is that traffic shaping on "internal" ports don't work properly.
When I changed option "ovs_use_veth" to True then ingress bw limit worked as expected.
I will continue checking that.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/523153

Changed in neutron:
status: New → In Progress
tags: added: ovs
tags: added: l3-ipam-dhcp
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/523153
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d835dd2093083ebb9e5e8ba6b7d30096fb0ed2cd
Submitter: Zuul
Branch: master

commit d835dd2093083ebb9e5e8ba6b7d30096fb0ed2cd
Author: Sławek Kapłoński <email address hidden>
Date: Mon Nov 27 15:29:41 2017 +0000

    [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

Changed in neutron:
assignee: Slawek Kaplonski (slaweq) → nobody
Changed in neutron:
status: In Progress → New
tags: removed: l3-ipam-dhcp
Revision history for this message
LIU Yulong (dragon889) wrote :

bug#1757044 will handle the router gateway IP qos.

Revision history for this message
Slawek Kaplonski (slaweq) wrote :

Let's continue work on this issue in bug #1757044 as it is related to the same issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.