The duplicate route in l3 router namespace results in North-South traffic breaking

Bug #1903433 reported by yangjianfeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
yangjianfeng

Bug Description

Reproduction steps:
1. Create an external network and create two subnet base on the network, this subnet cidrs as below:
ext-subnet01: 172.24.4.0/24
ext-subnet02: 10.20.30.0/24

2. Create a router and set external gateway on the external network for the router. Now, in the router's namespace the routes as below:
# ip netns exec qrouter-d91e7918-b511-4dd8-9f8f-4db0dacbfb4d ip r
default via 172.24.4.1 dev qg-38d2f0b6-96 proto static
10.20.30.0/24 dev qg-38d2f0b6-96 proto static scope link
172.24.4.0/24 dev qg-38d2f0b6-96 proto kernel scope link src 172.24.4.32

3. Create a tenant network, and create a subnet base on the tenant network, the ssubnet cidr as below:
tenant-subnet: 10.20.30.0/24 (It's same with the ext-subnet02's cidr)

4. Add the tenant-subnet to the router which created at step 2. Then, in the router's namespace the routes as below:
# ip netns exec qrouter-d91e7918-b511-4dd8-9f8f-4db0dacbfb4d ip r
default via 172.24.4.1 dev qg-38d2f0b6-96 proto static
10.20.30.0/24 dev qg-38d2f0b6-96 proto static scope link
10.20.30.0/24 dev qr-7b3f8319-45 proto kernel scope link src 10.20.30.1
172.24.4.0/24 dev qg-38d2f0b6-96 proto kernel scope link src 172.24.4.32

The duplicate routes (10.20.30.0/24) will disturb the North-South packets' forward, result the traffic breaking.

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

Fix proposed to branch: master
Review: https://review.opendev.org/761829

Changed in neutron:
assignee: nobody → yangjianfeng (yangjianfeng)
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 15.3.1

This issue was fixed in the openstack/neutron 15.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.3.0

This issue was fixed in the openstack/neutron 16.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 17.1.0

This issue was fixed in the openstack/neutron 17.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.0.0.0rc1

This issue was fixed in the openstack/neutron 18.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron rocky-eol

This issue was fixed in the openstack/neutron rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron stein-eol

This issue was fixed in the openstack/neutron stein-eol release.

Changed in neutron:
status: In Progress → Fix Released
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.