[R5.0-50]- IPv6- agent crash when Fat flow is configured with ignore address

Bug #1761490 reported by alok kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Critical
Ashok Singh
Trunk
Fix Committed
Critical
Ashok Singh

Bug Description

Agent keep crashing when Fat flow is configured with ignore address for IPv6 and also hold flow is seen when agent comes up.

traffic is ssh session from 1::3 to 2::3, both VM's are on same node nodec62.

destination VMI:

vif0/3 OS: tap4dc74aa1-55
            Type:Virtual HWaddr:00:00:5e:00:01:00 IPaddr:0.0.0.0
            IP6addr:2::3
            Vrf:5 Mcast Vrf:5 Flags:PL3L2DEr QOS:-1 Ref:6
            RX packets:164 bytes:23074 errors:0
            TX packets:167 bytes:50710 errors:0
            Drops:1
            FatFlows (Protocol/Port): 6:* - Dip

source VMI:

vif0/6 OS: tap6385a3df-43
            Type:Virtual HWaddr:00:00:5e:00:01:00 IPaddr:0.0.0.0
            IP6addr:1::3
            Vrf:4 Mcast Vrf:4 Flags:PL3L2DEr QOS:-1 Ref:6
            RX packets:156 bytes:22326 errors:0
            TX packets:159 bytes:48420 errors:0
            Drops:1

    Index Source:Port/Destination:Port Proto(V)
-----------------------------------------------------------------------------------
    18780 2::3:0 6 (5)
                         :::0
(Gen: 4, K(nh):34, Action:H, Flags:, TCP:, QOS:0, S(nh):0, Stats:2/188,
 SPort 0, TTL 0, Sinfo 3.0.0.0)

   344720<=>474728 1::3:53340 6 (4)
                         2::3:22
(Gen: 2, K(nh):29, Action:F, Flags:, TCP:S, QOS:-1, S(nh):29, Stats:1/94,
 SPort 50911, TTL 0, Sinfo 6.0.0.0)

   474728<=>344720 2::3:22 6 (5)
                         1::3:53340
(Gen: 2, K(nh):34, Action:F, Flags:, TCP:Sr, QOS:-1, S(nh):34, Stats:0/0,

(gdb) bt
#0 0x00007ff7b0f8b1f7 in raise () from /lib64/libc.so.6
#1 0x00007ff7b0f8c8e8 in abort () from /lib64/libc.so.6
#2 0x00007ff7b0f84266 in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007ff7b0f84312 in __assert_fail () from /lib64/libc.so.6
#4 0x0000000002112666 in TaskImpl::execute (this=0x7ff7ab3f7c40) at src/contrail-common/base/task.cc:310
#5 0x00007ff7b1b5a8ca in ?? ()
#6 0x0101000000000015 in ?? ()
#7 0x00007ff7ab3c7f40 in ?? ()
#8 0x0000000000000001 in ?? ()
#9 0x00007ff7a9e27c88 in ?? ()
#10 0x00007ff7ab3c7f28 in ?? ()
#11 0x0000000000000000 in ?? ()

Note: this is private agent binary with fix for bug 1761157.

[root@nodec62 ~]# ls -l /var/crashes/| wc -l
39

Revision history for this message
alok kumar (kalok) wrote :

core and agent binary is copied @/cs-shared/bugs/1761490

tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/41579
Submitter: Ashok 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/41585
Submitter: Ashok 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/41579
Committed: http://github.com/Juniper/contrail-controller/commit/209d921252ea86941de2ce21d6bec78c18563769
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 209d921252ea86941de2ce21d6bec78c18563769
Author: Ashok Singh R <email address hidden>
Date: Mon Apr 9 13:57:00 2018 +0530

Fix vrouter-agent crash

The crash was happening when IPv4 address was being converted to IPv6.
When addresses are masked in flows, the masked address was always initialized
to IPv4 all zeroes addresses.

Fix
Initialize the masked address to either IPv4 or IPv6 all zeroes addresses
based on family type.

Change-Id: I0535b4751fa24023e59b0ece6636d7a7cb9a9ce0
Closes-Bug: #1761490

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

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

commit 560baf70f6c6430050f22ff4e0b6b639752447a1
Author: Ashok Singh R <email address hidden>
Date: Mon Apr 9 14:54:00 2018 +0530

Fix vrouter-agent crash

The crash was happening when IPv4 address was being converted to IPv6.
When addresses are masked in flows, the masked address was always initialized
to IPv4 all zeroes addresses.

Fix
Initialize the masked address to either IPv4 or IPv6 all zeroes addresses
based on family type.

Change-Id: I1ad0ecac182defe826f684dd0f3c1d3804662959
Closes-Bug: #1761490

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.