sanity: vrouter agent programs incorrect nh for tunnel interface

Bug #1761157 reported by Vinoth Kannan Ganapathy
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Critical
Manish Singh
Trunk
Fix Committed
Critical
Manish Singh

Bug Description

contrail-version : 5.0
build : 50

Ping between VMs within same virtual network were failing. Narrows down to the issue where vrouter agent program incorrect nh for the tunnel interface. Restarting the agent container solves the issue

P.S. Issue is seen in the sanity virtual testbed

[root@server9 /]# vif --list | grep -2 197.0.91.3

vif0/3 OS: tap8aa13818-a1
            Type:Virtual HWaddr:00:00:5e:00:01:00 IPaddr:197.0.91.3
            Vrf:2 Mcast Vrf:2 Flags:PL3L2DEr QOS:-1 Ref:6
            RX packets:5090 bytes:480524 errors:0
[root@server9 /]# sudo tcpdump -leni tap8aa13818-a1 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap8aa13818-a1, link-type EN10MB (Ethernet), capture size 262144 bytes
08:13:14.807409 02:8a:a1:38:18:a1 > 02:e9:af:f3:83:23, ethertype IPv4 (0x0800), length 98: 197.0.91.3 > 197.0.91.5: ICMP echo request, id 11615, seq 215, length 64
08:13:15.808133 02:8a:a1:38:18:a1 > 02:e9:af:f3:83:23, ethertype IPv4 (0x0800), length 98: 197.0.91.3 > 197.0.91.5: ICMP echo request, id 11615, seq 216, length 64
08:13:16.807869 02:8a:a1:38:18:a1 > 02:e9:af:f3:83:23, ethertype IPv4 (0x0800), length 98: 197.0.91.3 > 197.0.91.5: ICMP echo request, id 11615, seq 217, length 64
08:13:17.807648 02:8a:a1:38:18:a1 > 02:e9:af:f3:83:23, ethertype IPv4 (0x0800), length 98: 197.0.91.3 > 197.0.91.5: ICMP echo request, id 11615, seq 218, length 64
^C
8 packets captured
14 packets received by filter
0 packets dropped by kernel
[root@server9 /]# rt --dump 2 --family bridge
Flags: L=Label Valid, Df=DHCP flood, Mm=Mac Moved, L2c=L2 Evpn Control Word, N=New Entry, Ec=EvpnControlProcessing
vRouter bridge table 0/2
Index DestMac Flags Label/VNID Nexthop Stats
2088 2:8a:a1:38:18:a1 - 41 0
31264 0:0:5e:0:1:0 Df - 3 742
47252 2:e9:af:f3:83:23 LDf 29 26 297
51108 2:93:3d:84:1:a Df - 3 0
59016 2:5e:e9:a0:1d:4b LDf 29 38 112
112924 ff:ff:ff:ff:ff:ff LDf 5 46 2237
115240 2:0:0:0:0:2 Df - 12 0
178460 2:f7:ea:50:2e:ec LDf 34 26 0
205564 2:0:0:0:0:1 Df - 12 0
[root@server9 /]# nh --get 26
Id:26 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:6 Vrf:0
              Flags:Valid, Etree Root,
              EncapFmly:0806 Oif:0 Len:14
              Encap Data: 00 00 5e 00 01 00 02 93 3d 84 01 0a 08 00

tags: added: sanityblocker
Changed in juniperopenstack:
assignee: nobody → Manish Singh (manishs)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/41438
Submitter: Manish Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/41439
Submitter: Manish Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/41438
Committed: http://github.com/Juniper/contrail-controller/commit/a0264b59b4e67c695b36c323a696c49096e4f20e
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit a0264b59b4e67c695b36c323a696c49096e4f20e
Author: Manish <email address hidden>
Date: Thu Apr 5 10:04:02 2018 +0530

Sanity: mismatch in vrouter and agent nh in route

Ksync was not using new field rewrite_dmac as key while oper was doing
same. This used to result in inconsistency where oper used to point to a
NH which ksync never added. Vrouter was reflecting state of ksync and
used to drop packets because in flow source NH was not known to it. There
can be other manifestation of this problem as well.

Change-Id: I1890eed2f22ee610f0b2cd0c7e8752dcaf06c897
Closes-bug: #1761157

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/41439
Committed: http://github.com/Juniper/contrail-controller/commit/67094a3a91a4e99cfd7189680cc50f2d95ee0845
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 67094a3a91a4e99cfd7189680cc50f2d95ee0845
Author: Manish <email address hidden>
Date: Thu Apr 5 10:04:02 2018 +0530

Sanity: mismatch in vrouter and agent nh in route

Ksync was not using new field rewrite_dmac as key while oper was doing
same. This used to result in inconsistency where oper used to point to a
NH which ksync never added. Vrouter was reflecting state of ksync and
used to drop packets because in flow source NH was not known to it. There
can be other manifestation of this problem as well.

Change-Id: I1890eed2f22ee610f0b2cd0c7e8752dcaf06c897
Closes-bug: #1761157

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.