← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1927849] [NEW] The qrouter-namespace will appear duplicate route entry when add a route rule to HA router

 

Public bug reported:

I create a HA router add add a subnet to it.
And then I create a route rule, like below:
# openstack router set bf1bf970-7676-4015-816d-868e3609cce6 --route destination=2.2.2.0/24,gateway=10.20.30.5

At this time to see the qrouter-namespace, like below:
# ip netns exec qrouter-bf1bf970-7676-4015-816d-868e3609cce6 ip r
default via 172.24.4.1 dev qg-38b5325e-4c proto 112 
default via 172.24.4.1 dev qg-38b5325e-4c proto static 
2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto 112 
2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto static 
10.20.30.0/24 dev qr-75b4e839-b4 proto kernel scope link src 10.20.30.1 
169.254.0.0/24 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.0.22 
169.254.192.0/18 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.194.210 
172.24.4.0/24 dev qg-38b5325e-4c proto kernel scope link src 172.24.4.83 

Some route entries appear twice.

The I delete the route rule, like below:
# openstack router set bf1bf970-7676-4015-816d-868e3609cce6 --no-route

The qrouter-namespace will remain a invalid route entry:
# ip netns exec qrouter-bf1bf970-7676-4015-816d-868e3609cce6 ip r
default via 172.24.4.1 dev qg-38b5325e-4c proto 112 
default via 172.24.4.1 dev qg-38b5325e-4c proto static 
2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto static 
10.20.30.0/24 dev qr-75b4e839-b4 proto kernel scope link src 10.20.30.1 
169.254.0.0/24 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.0.22 
169.254.192.0/18 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.194.210 
172.24.4.0/24 dev qg-38b5325e-4c proto kernel scope link src 172.24.4.83

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1927849

Title:
  The qrouter-namespace will appear duplicate route entry when add a
  route rule to HA router

Status in neutron:
  New

Bug description:
  I create a HA router add add a subnet to it.
  And then I create a route rule, like below:
  # openstack router set bf1bf970-7676-4015-816d-868e3609cce6 --route destination=2.2.2.0/24,gateway=10.20.30.5

  At this time to see the qrouter-namespace, like below:
  # ip netns exec qrouter-bf1bf970-7676-4015-816d-868e3609cce6 ip r
  default via 172.24.4.1 dev qg-38b5325e-4c proto 112 
  default via 172.24.4.1 dev qg-38b5325e-4c proto static 
  2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto 112 
  2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto static 
  10.20.30.0/24 dev qr-75b4e839-b4 proto kernel scope link src 10.20.30.1 
  169.254.0.0/24 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.0.22 
  169.254.192.0/18 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.194.210 
  172.24.4.0/24 dev qg-38b5325e-4c proto kernel scope link src 172.24.4.83 

  Some route entries appear twice.

  The I delete the route rule, like below:
  # openstack router set bf1bf970-7676-4015-816d-868e3609cce6 --no-route

  The qrouter-namespace will remain a invalid route entry:
  # ip netns exec qrouter-bf1bf970-7676-4015-816d-868e3609cce6 ip r
  default via 172.24.4.1 dev qg-38b5325e-4c proto 112 
  default via 172.24.4.1 dev qg-38b5325e-4c proto static 
  2.2.2.0/24 via 10.20.30.5 dev qr-75b4e839-b4 proto static 
  10.20.30.0/24 dev qr-75b4e839-b4 proto kernel scope link src 10.20.30.1 
  169.254.0.0/24 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.0.22 
  169.254.192.0/18 dev ha-6ce1fcf8-98 proto kernel scope link src 169.254.194.210 
  172.24.4.0/24 dev qg-38b5325e-4c proto kernel scope link src 172.24.4.83

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1927849/+subscriptions


Follow ups