Closed dgsudharsan closed 1 year ago
@adyeung @srj102 @prsunny FYI. I believe the issue is due to the ordering of events in fpmsyncd. Should replace be done first followed by del?
Debug from frr show that bridge fdb delete command deletes both fdb entries in the kernel which might be the issue. Deleting the mac without dst results in readd
bridge fdb show | grep 00:01:00:00:00:01 00:01:00:00:00:01 dev VTEP2-11 vlan 11 extern_learn master Bridge 00:01:00:00:00:01 dev VTEP2-11 dst 1.1.1.1 self extern_learn
2022/10/12 04:13:49.672998 ZEBRA: [QFR1P-4MVVD] Rx RTM_DELNEIGH AF_BRIDGE IF 84 st 0x2 fl 0x12 MAC 00:01:00:00:00:01 dst 1.1.1.1 nhg 0 2022/10/12 04:13:49.673030 ZEBRA: [KMXEB-K771Y] netlink_parse_info: netlink-listen (NS 0) type RTM_DELNEIGH(29), len=40, seq=0, pid=0 2022/10/12 04:13:49.673033 ZEBRA: [QFR1P-4MVVD] Rx RTM_DELNEIGH AF_BRIDGE IF 84 st 0xc0 fl 0x2 MAC 00:01:00:00:00:01 nhg 0 2022/10/12 04:13:49.673047 ZEBRA: [QHNV9-0JJF7] dpDel remote MAC 00:01:00:00:00:01 intf VTEP2-11(84) VNI 770011 - readd 2022/10/12 04:13:49.673180 ZEBRA: [MMX22-H2MY5] Tx RTM_NEWNEIGH family bridge IF VTEP2-11(84) VLAN 11 MAC 00:01:00:00:00:01 dst 1.1.1.1 nhg 0 rem
@kishorekunal01 has the RC, he will post a fix
Description
When a MAC that's learnt remotely, is learnt local the move doesn't work. The issue is due to a race condition. On detecting mac move, fdbsyncd tries to delete remote mac first and then replace it with local mac. However frr will try to reinstall the remote mac as the local vtep cannot delete remote mac. This results in remote mac being reinstalled after the local mac is updated which results mac pointing to remote vtep even after the move.
Logs from fdbsyncd:
Steps to reproduce the issue:
Describe the results you received:
The mac is not learnt locally. It still points remote
Describe the results you expected:
The mac should move to local. It shouldn't point to remote.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
sonic_dump_qa-eth-vt03-1-4600ca1_20221012_033236.tar.gz sonic_dump_qa-eth-vt03-2-3700v_20221012_033232.tar.gz