l23network provider doesn't flush def routes if someone add def route with metric

Bug #1449527 reported by Stanislav Makar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Sergey Vasilenko

Bug Description

Added by hand the route
0.0.0.0 10.109.0.222 0.0.0.0 UG 33 0 0 br-fw-admin

Finally we have
[root@node-4 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.169.254 - 255.255.255.255 !H 0 - 0 -
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-storage
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-mgmt
10.109.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-fw-admin
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
0.0.0.0 10.109.0.2 0.0.0.0 UG 0 0 0 br-fw-admin
0.0.0.0 10.109.0.222 0.0.0.0 UG 33 0 0 br-fw-adminпрогнали л23

Applied the manifest /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp
nothing changed
[root@node-4 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.169.254 - 255.255.255.255 !H 0 - 0 -
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-storage
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-mgmt
10.109.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-fw-admin
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
0.0.0.0 10.109.0.2 0.0.0.0 UG 0 0 0 br-fw-admin
0.0.0.0 10.109.0.222 0.0.0.0 UG 33 0 0 br-fw-admin

The problem is that
0.0.0.0 10.109.0.222 0.0.0.0 UG 33 0 0 br-fw-admin
is the same as in network scheme

l23 prefetch doesn't collect def routes with metric

Tags: l23network
Stanislav Makar (smakar)
summary: - dont flush def routes if someone add def route with metric
+ l23network provider doesn't flush def routes if someone add def route
+ with metric
Changed in fuel:
importance: Medium → High
Changed in fuel:
assignee: Stanislav Makar (smakar) → Sergey Vasilenko (xenolog)
Revision history for this message
Sergey Vasilenko (xenolog) wrote :

Should be re-tested. Because too much patches was been merged to the routing related resources.

Revision history for this message
Sergey Vasilenko (xenolog) wrote :

Even if this bug actual now, I doubt, this bug can be fixed without fixing #1452617.

i.e dependency is: bug/1452617 -> bug/1449527

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

cannot reproduce
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.109.1.2 0.0.0.0 UG 33 0 0 br-ex

# puppet apply -vd /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp | grep route
Debug: Puppet::Type::L3_clear_route::ProviderLnx: PREFETCHED properties for 'default,metric:33': {:ensure=>:present, :name=>"default,metric:33", :destination=>"default", :metric=>33, :gateway=>"10.109.1.2"}
Debug: Executing '/sbin/ip route del default dev br-ex'
Debug: Executing '/sbin/ip route add default via 10.109.1.1 dev br-ex'

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.109.1.1 0.0.0.0 UG 0 0 0 br-ex

Changed in fuel:
status: Confirmed → Invalid
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.