Contrail is not sending remote mac delete notification for all the MAC on the logical switch when mac ages out / cleared in remote TOR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
New
|
Undecided
|
Manish Singh |
Bug Description
This contrail cluster has 3 Control nodes , 2 TSNs and 2 Vrouter .
The full testbed.py can be got from Control Node ip 10.94.63.102
root@NTTC-
This issue was brought to the notice with Contrail team where we saw that the remotely learnt mac was still seen in the TOR even though no local mac was present in Remote TOR .
The OVSDB database still had Remote MAC in the current TOR .
We went through the TSN introspect and made sure that Contrail is not holding any MAC .
A PR was raised against QFX
https:/
On debugging the PR we found that the contrail is not sending delete notification for all the deleted MAC in the Remote TOR
Please refer the recent Audit trail for all the outputs including the introspect output in the PR .
Now to make this simple ,I am just using 2 TOR's and I am sending traffic only on one logical switch and making the TORs learn the local and remote MAC .
TOR1
root@vdc-vcf-s1# run show ethernet-switching table vlan-name Contrail-
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)
Ethernet switching table : 20 entries, 20 learned
Routing instance : default-switch
Vlan MAC MAC Age Logical
name address flags interface
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
{master:1}[edit]
root@vdc-vcf-s1#
TOR2
root@vdc-vcf-s2# run show ethernet-switching table vlan-name Contrail-
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)
Ethernet switching table : 20 entries, 20 learned
Routing instance : default-switch
Vlan MAC MAC Age Logical
name address flags interface
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
{master:0}[edit]
The logical switch for Contrail-
I am capturing the transaction by
root@sw-
Now I stop the traffic and clear the ethernet switching table on TOR2
root@vdc-vcf-s2# run clear ethernet-switching table vlan-name Contrail-
{master:0}[edit]
root@vdc-vcf-s2# run clear ethernet-switching table vlan-name Contrail-
{master:0}[edit]
root@vdc-vcf-s2#
Now if I grep for the delete on the logical switch c2fa8c57-
root@sw-
c60b5d10-
4c9ef2c7-
64110436-
46f7fcbe-
root@sw-
And only those MAC's are getting deleted on TOR1
root@vdc-vcf-s1# run show ethernet-switching table vlan-name Contrail-
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)
Ethernet switching table : 16 entries, 16 learned
Routing instance : default-switch
Vlan MAC MAC Age Logical
name address flags interface
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
Contrail-
{master:1}[edit]
root@vdc-vcf-s1#
tags: | added: vrouter |
Changed in opencontrail: | |
assignee: | nobody → Manish Singh (manishs) |
When there is active-backup tor-agent configuration, when local MAC is deleted, that doesnt get propagated immediately. The backup tor-agent exports a route with a lower preference and that still remains (for 5 minutes). This is done to avoid traffic loss upon OVSDB connection switchover. Please check that the entry is removed after 5 minutes.