Public bug reported:

[Impact]
In noble's frr 8.4.4, zebra ignores a remote MAC/IP update from bgpd if its MAC 
Mobility sequence number is lower than the one zebra already holds. After a MAC 
moves between VTEPs, bgpd can correctly select a path with a lower sequence 
number (for example once the higher-numbered path is withdrawn), but zebra 
keeps the old VTEP in its MAC table and in the kernel fdb indefinitely. Traffic 
to that MAC is blackholed until FRR is restarted.

    show evpn mac vni 67413 mac 02:01:01:1a:00:1e
     Remote VTEP: 172.16.0.104   Remote Seq: 4      <- zebra and kernel fdb
    show bgp l2vpn evpn route vni 67413 mac 02:01:01:1a:00:1e
     ... next hop 172.16.0.102, MM:2, best          <- bgpd

We found four such entries left for five days by a rolling hypervisor
maintenance with VM live migrations.

Upstream bug: https://github.com/FRRouting/frr/issues/10468
Fixed upstream in FRR 8.5 by https://github.com/FRRouting/frr/pull/12081

[Test Plan]
Three VTEPs A, B and C with a shared L2 VNI 100, an eBGP EVPN full mesh (peer 
group P) and advertise-all-vni.

1. On B, so it never learns A's route (as when B never saw the higher sequence 
number):
     route-map DENY deny 10
     router bgp
      address-family l2vpn evpn
       neighbor P route-map DENY in
2. On A: router bgp -> bgp local-mac vni 100 mac 00:00:5e:00:53:01 seq 4
3. On B: router bgp -> bgp local-mac vni 100 mac 00:00:5e:00:53:01 seq 2
4. On A: router bgp -> no bgp local-mac vni 100 mac 00:00:5e:00:53:01
5. On C: show evpn mac vni 100 mac 00:00:5e:00:53:01
         bridge fdb show | grep 00:00:5e:00:53:01

Before: both show VTEP A with seq 4, although "show bgp l2vpn evpn route type 
macip" has only B's paths (MM:2).
After: both show VTEP B with seq 2.

[Where problems could occur]
The fix is the three zebra commits of the upstream pull request, unmodified:
  
https://github.com/FRRouting/frr/commit/7d99ad7f93e42ca2f58023374843d70039a8310f
  
https://github.com/FRRouting/frr/commit/1e1398e3daa4c63c18da8e1f49b3c20bac6a3490
  
https://github.com/FRRouting/frr/commit/da823882a5fb2295efdfed3154fa6130e3227e58
They cherry-pick onto the frr-8.4.4 tag with no conflicts:
  git checkout frr-8.4.4
  git cherry-pick 7d99ad7f93 1e1398e3da da823882a5

zebra then installs bgpd's selected path for a remote MAC/neighbor even
when its sequence number is lower than the one it holds. Local entries
that are ready for BGP keep the higher sequence number, as before. The
bgpd rework of the EVPN VNI tables from the same pull request is not
included. Without it, a MAC that also has MAC+IP routes from different
VTEPs could see zebra follow whichever of the MAC and MAC+IP routes bgpd
updated last; in 8.4.4 those cases were stuck instead.

A hidden config command, "no evpn accept-bgp-seq", restores the previous
behaviour at runtime.

Verified with the reproducer above: stock 8.4.4-1.1ubuntu6.8 keeps VTEP
A; the patched build moves to VTEP B; with "no evpn accept-bgp-seq" it
keeps VTEP A again.

** Affects: frr (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178228

Title:
  zebra keeps a stale EVPN remote MAC when BGP selects a lower MAC
  mobility sequence number

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/frr/+bug/2178228/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to