[R4.1-24]: session logging: Empty action field in session logs for reverse flow when tcp connection is closed

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

Bug Description

In case of TCP flow, when TCP connection is closed session is logged for the teardown but the action field is empty in reverse flow info.

Also sg_rule_uuid and nw_ace_uuid in reverse flow are all zero.

sample session log for the teardown:

2017-10-27 Fri 15:22:16:339.692 IST nodec62 [Thread 140329144252160, Pid 9391]: [SYS_INFO]: SessionEndpointObject: session_data= [ [ [ vmi = default-domain:admin:aa208e72-691c-4ccd-b725-459aee872957 vn = default-domain:admin:vn2 security_policy_rule = 00000000-0000-0000-0000-000000000001 remote_vn = default-domain:admin:vn1 is_client_session = 0 is_si = 0 remote_prefix = vrouter_ip = 10.204.217.102 sess_agg_info= [ [ [ ip = 2.2.2.4 port = 22 protocol = 6 ] [ sampled_forward_bytes = 660 sampled_forward_pkts = 9 sampled_reverse_bytes = 618 sampled_reverse_pkts = 5 logged_forward_bytes = 660 logged_forward_pkts = 9 logged_reverse_bytes = 618 logged_reverse_pkts = 5 sessionMap= [ [ [ ip = 1.1.1.4 port = 41133 ] [ forward_flow_info= [ sampled_bytes = 660 sampled_pkts = 9 logged_bytes = 660 logged_pkts = 9 flow_uuid = c111a65a-3d9a-46bf-9fcf-a8bc7e5647b5 tcp_flags = 0 setup_time = 1509097792472266 teardown_time = 1509097936339115 action = pass sg_rule_uuid = 32e756cf-53ef-4233-80cf-681c0f2ad628 nw_ace_uuid = 874ab189-0d13-4dcd-a303-2a40c902c24e underlay_source_port = 0 drop_reason = 0 ] reverse_flow_info= [ sampled_bytes = 618 sampled_pkts = 5 logged_bytes = 618 logged_pkts = 5 flow_uuid = 4708673d-ae13-4bc3-9250-a4acc3e832c9 tcp_flags = 0 setup_time = 1509097792472266 teardown_time = 1509097936339115 action = sg_rule_uuid = 00000000-0000-0000-0000-000000000000 nw_ace_uuid = 00000000-0000-0000-0000-000000000000 underlay_source_port = 0 drop_reason = 0 ] vm = b702ea3b-b110-4fc7-ac02-8851e87d1afe other_vrouter_ip = 10.204.216.69 underlay_proto = 2 ], ] ] ], ] ] ], ] ]

contrail version: 4.1.0.0-24, ubuntu 16, newton.

Tags: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

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

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

Review in progress for https://review.opencontrail.org/37825
Submitter: Madhusudan Bhat (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/37785
Committed: http://github.com/Juniper/contrail-controller/commit/e1369eb8c5f3539d10c1f6e8142ad40e8b9ab7a3
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit e1369eb8c5f3539d10c1f6e8142ad40e8b9ab7a3
Author: Ashok Singh R <email address hidden>
Date: Wed Nov 22 16:30:00 2017 +0530

Send missing fields in reverse flow of session records

When reverse flow gets deleted first, some fields were not being sent
in reverse flow of session records.

Change-Id: I36de06b2adfccb8ebc682a793423da522e4b6724
Closes-Bug: #1728007

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

Review in progress for https://review.opencontrail.org/37825
Submitter: Madhusudan Bhat (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/37825
Committed: http://github.com/Juniper/contrail-controller/commit/4b723844a5246010da3529f3bd7c31df266b4eee
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 4b723844a5246010da3529f3bd7c31df266b4eee
Author: bmadhu <email address hidden>
Date: Thu Nov 23 12:04:18 2017 +0530

Added both fwd and rev flow for logging when session is deleted
Closes-Bug: 1728007

Change-Id: Ic9634ca5bc7970291ae0142916e57c49e0bbfc67

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

Review in progress for https://review.opencontrail.org/37924
Submitter: Madhusudan Bhat (<email address hidden>)

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

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

commit d120c86fc831700791b9d838e13d57349addc6f3
Author: bmadhu <email address hidden>
Date: Thu Nov 23 12:04:18 2017 +0530

Added both fwd and rev flow for logging when session is deleted
Closes-Bug: 1728007

Change-Id: Ic9634ca5bc7970291ae0142916e57c49e0bbfc67
(cherry picked from commit 4b723844a5246010da3529f3bd7c31df266b4eee)

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

Review in progress for https://review.opencontrail.org/37959
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/37959
Committed: http://github.com/Juniper/contrail-controller/commit/7420acde76cbce89021eccc52b30e914a272b92d
Submitter: Zuul (<email address hidden>)
Branch: master

commit 7420acde76cbce89021eccc52b30e914a272b92d
Author: Ashok Singh R <email address hidden>
Date: Wed Nov 22 16:30:00 2017 +0530

Send missing fields in reverse flow of session records

When reverse flow gets deleted first, some fields were not being sent
in reverse flow of session records.

Closes-Bug: #1728007
(cherry picked from commit e1369eb8c5f3539d10c1f6e8142ad40e8b9ab7a3)

Change-Id: I4f2a95f4dce8fdc0da5fe665accbf1095b1e0b66

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.