[R4.1 newton ]querying SessionRecordTable Not able to get forward/reverse teardown_bytes/pkts

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

Bug Description

R4.1 newton build 45
On querying SessionRecordTable Not able to see forward/reverse teardown_bytes/pkts info in the result

Query:

{
   "table":"SessionRecordTable",
   "where":[
      [
         {
            "value2":null,
            "name":"vn",
            "value":"default-domain:admin:vn1",
            "op":1
         },
         {
            "value2":null,
            "name":"remote_vn",
            "value":"default-domain:admin:vn2",
            "op":1
         }
   ]
   ],
   "start_time":1510655898000000,
   "end_time":1510656398000000,
   "select_fields":[
      "vn",
      "remote_vn",
      "protocol",
      "client_port",
      "server_port",
      "forward_teardown_bytes",
      "reverse_teardown_bytes"
   ],
   "session_type":"client"
}

output:
{
    "value": [
        {
            "client_port": 7485,
            "forward_flow_uuid": "067a3873-702d-4106-8eea-dd7e6a254eb3",
            "protocol": 1,
            "remote_vn": "default-domain:admin:vn2",
            "reverse_flow_uuid": "9ec55c6f-3b8f-4b05-bc60-6c4e208a6b97",
            "server_port": 0,
            "vn": "default-domain:admin:vn1"
        }
    ]
}

Vrouter session log(taken for diff session by enabling local log)

2017-11-14 Tue 16:32:14:342.188 IST nodel1 [Thread 139943089612544, Pid 4853]: [SYS_INFO]: SessionEndpointObject: session_data= [ [ [ vmi = default-domain:admin:c722f412-c516-4820-b7b6-545f25c80496 vn = default-domain:admin:vn1 security_policy_rule = 00000000-0000-0000-0000-000000000001 remote_vn = default-domain:admin:vn2 is_client_session = 1 is_si = 0 vrouter_ip = 22.22.22.1 sess_agg_info= [ [ [ ip = 10.0.0.3 port = 0 protocol = 1 ] [ sampled_forward_bytes = 98 sampled_forward_pkts = 1 sampled_reverse_bytes = 0 sampled_reverse_pkts = 0 sessionMap= [ [ [ ip = 20.0.0.3 port = 10179 ] [ forward_flow_info= [ sampled_bytes = 98 sampled_pkts = 1 flow_uuid = 8109016a-2d4c-4431-8bbd-5261dbbf6387 tcp_flags = 0 setup_time = 1510657333552273 action = pass sg_rule_uuid = 4f17d64e-810e-4dee-ae36-0c39cddf7baa nw_ace_uuid = f223ea4e-ff70-420a-81b9-9bdcb516a630 underlay_source_port = 58752 ] reverse_flow_info= [ flow_uuid = 02d627e4-7fa6-4e63-bf14-e00424435b56 setup_time = 1510657333552273 action = pass sg_rule_uuid = 4f17d64e-810e-4dee-ae36-0c39cddf7baa nw_ace_uuid = f223ea4e-ff70-420a-81b9-9bdcb516a630 ] vm = a96b6e3d-ec91-4d6b-ab51-eb4029866c27 other_vrouter_ip = 22.22.22.10 underlay_proto = 2 ], ] ] ], ] ] ]

Log after teardown

[SYS_INFO]: SessionEndpointObject: session_data= [ [ [ vmi = default-domain:admin:c722f412-c516-4820-b7b6-545f25c80496 vn = default-domain:admin:vn1 security_policy_rule = 00000000-0000-0000-0000-000000000001 remote_vn = default-domain:admin:vn2 is_client_session = 1 is_si = 0 vrouter_ip = 22.22.22.1 sess_agg_info= [ [ [ ip = 10.0.0.3 port = 0 protocol = 1 ] [ sampled_forward_bytes = 0 sampled_forward_pkts = 0 sampled_reverse_bytes = 0 sampled_reverse_pkts = 0 sessionMap= [ [ [ ip = 20.0.0.3 port = 10179 ] [ forward_flow_info= [ flow_uuid = 8109016a-2d4c-4431-8bbd-5261dbbf6387 setup_time = 1510657333552273 teardown_time = 1510657513643879 action = pass sg_rule_uuid = 4f17d64e-810e-4dee-ae36-0c39cddf7baa nw_ace_uuid = f223ea4e-ff70-420a-81b9-9bdcb516a630 ] reverse_flow_info= [ flow_uuid = 02d627e4-7fa6-4e63-bf14-e00424435b56 setup_time = 1510657333552273 teardown_time = 1510657513643879 action = pass sg_rule_uuid = 4f17d64e-810e-4dee-ae36-0c39cddf7baa nw_ace_uuid = f223ea4e-ff70-420a-81b9-9bdcb516a630 ] vm = a96b6e3d-ec91-4d6b-ab51-eb4029866c27 other_vrouter_ip = 22.22.22.10 ], ] ] ], ] ] ]

Tags: vrouter
Changed in juniperopenstack:
milestone: none → r5.0.0
assignee: nobody → Ashok Singh (ashoksr)
tags: added: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

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

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

Review in progress for https://review.opencontrail.org/37612
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/37598
Committed: http://github.com/Juniper/contrail-controller/commit/34bfff70401d65cd94d16dbc84d2714863ee2f03
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 34bfff70401d65cd94d16dbc84d2714863ee2f03
Author: Ashok Singh R <email address hidden>
Date: Thu Nov 16 21:01:00 2017 +0530

Send teardown statistics in session messages

Change-Id: I3b72c9124578277724c89ef21f7f1f03e1ea1bff
Closes-Bug: #1732602

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

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

commit 3e49f96db9b2f62add013db02bb586ec95e6e9b5
Author: Ashok Singh R <email address hidden>
Date: Thu Nov 16 21:01:00 2017 +0530

Send teardown statistics in session messages

Closes-Bug: #1732602
(cherry picked from commit 34bfff70401d65cd94d16dbc84d2714863ee2f03)

Change-Id: I248bbd9980c01bd5438a85f536378c6d54de6c0a

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.