[R4.1-17]: VM id is missing in session info for server session for inter compute traffic

Bug #1727203 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
Undecided
Ashok Singh
Trunk
Fix Committed
Undecided
Ashok Singh

Bug Description

For inter compute traffic, VM id is missing in session info in server session logs.

"vm =" field is empty in below log.

2017-10-25 Wed 12:29:01:621.671 IST nodec12 [Thread 140439570667264, Pid 13083]: [SYS_INFO]: SessionEndpointObject: session_data= [ [ [ vmi = default-domain:admin:76be1b9e-c2d7-4852-acf5-ee322925d50b vn = default-domain:admin:vn1 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.216.69 sess_agg_info= [ [ [ ip = 1.1.1.3 port = 0 protocol = 1 ] [ sampled_forward_bytes = 98 sampled_forward_pkts = 1 sampled_reverse_bytes = 98 sampled_reverse_pkts = 1 logged_forward_bytes = 98 logged_forward_pkts = 1 logged_reverse_bytes = 98 logged_reverse_pkts = 1 sessionMap= [ [ [ ip = 1.1.1.5 port = 2029 ] [ forward_flow_info= [ sampled_bytes = 98 sampled_pkts = 1 logged_bytes = 98 logged_pkts = 1 flow_uuid = a39e86a7-a0f8-4baa-ae14-bd0edb23f788 tcp_flags = 0 setup_time = 1508914041972533 teardown_time = 0 action = pass sg_rule_uuid = 51576537-bc72-47b0-a57b-c029853b21bf nw_ace_uuid = 00000000-0000-0000-0000-100000000001 underlay_source_port = 54786 drop_reason = 0 ] reverse_flow_info= [ sampled_bytes = 98 sampled_pkts = 1 logged_bytes = 98 logged_pkts = 1 flow_uuid = fea94ae2-5ff8-46c8-bedf-ba41e1d37872 tcp_flags = 0 setup_time = 1508914041972533 teardown_time = 0 action = pass sg_rule_uuid = 51576537-bc72-47b0-a57b-c029853b21bf nw_ace_uuid = 00000000-0000-0000-0000-100000000001 underlay_source_port = 64581 drop_reason = 0 ] vm = other_vrouter_ip = 10.204.217.102 underlay_proto = 2 ], ] ] ], ] ] ], ] ]

Note: test is done on a private agent binary on top of build 17.

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

remote_prefix is always logged empty. when there is no value then field name can be avoided as this is optional field.

"is_si = 0 remote_prefix = vrouter_ip = 10.204.217.102"

full SessionEndpointObject:

2017-10-25 Wed 15:28:55:345.288 IST nodec62 [Thread 139898865063680, Pid 30934]: [SYS_INFO]: SessionEndpointObject: session_data= [ [ [ vmi = default-domain:admin:a09a7089-42cc-4af0-9199-d5b0c9295587 vn = default-domain:admin:vn1 security_policy_rule = 00000000-0000-0000-0000-000000000000 remote_vn = default-domain:admin:vn1 is_client_session = 1 is_si = 0 remote_prefix = vrouter_ip = 10.204.217.102 sess_agg_info= [ [ [ ip = 1.1.1.5 port = 0 protocol = 1 ] [ sampled_forward_bytes = 0 sampled_forward_pkts = 0 sampled_reverse_bytes = 0 sampled_reverse_pkts = 0 logged_forward_bytes = 0 logged_forward_pkts = 0 logged_reverse_bytes = 0 logged_reverse_pkts = 0 sessionMap= [ [ [ ip = 1.1.1.4 port = 26062 ] [ forward_flow_info= [ flow_uuid = 6aab1709-4e65-41f2-8989-ffec7ca2c7d7 setup_time = 1508925459075740 teardown_time = 1508925535342781 action = deny|implicit deny sg_rule_uuid = 00000000-0000-0000-0000-000000000002 nw_ace_uuid = 00000000-0000-0000-0000-100000000001 drop_reason = 23 ] reverse_flow_info= [ flow_uuid = ddc598f7-6254-42c1-84cc-bfe9336f3eb0 setup_time = 1508925459075740 teardown_time = 1508925535342781 action = sg_rule_uuid = 00000000-0000-0000-0000-000000000000 nw_ace_uuid = 00000000-0000-0000-0000-000000000000 drop_reason = 0 ] vm = 1d30a710-5b45-4634-84e3-d725d7ea81ea other_vrouter_ip = 10.204.217.102 underlay_proto = 0 ], ] ] ], ] ] ], ] ]

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

Review in progress for https://review.opencontrail.org/36832
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/36903
Submitter: Ashok Singh (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/36832
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/36903
Submitter: Ashok Singh (<email address hidden>)

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

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

commit 410c34b4a034fe7dbfd27e3f161fc7a24a603431
Author: Ashok Singh R <email address hidden>
Date: Wed Oct 25 17:02:08 2017 +0530

Fix VM name not getting exported in Session records.

For server sessions, VM name should be picked from reverse-flow instead of
forward.
Also fixed the following issues
1. Remote-prefix showing empty string when data is not available.
(Fix is to not export the field itself when data is not available)
2. Agent introspect showing remote-tagset for local-tagset field

Change-Id: Ideefd7bbc0d76a13069e3ae7c44dce581857d151
Closes-Bug: #1727203

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

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

commit 6a37d58ee0b3da2ed935ac713dfce8459cf8de47
Author: Ashok Singh R <email address hidden>
Date: Wed Oct 25 17:02:08 2017 +0530

Fix VM name not getting exported in Session records.

For server sessions, VM name should be picked from reverse-flow instead of
forward.
Also fixed the following issues
1. Remote-prefix showing empty string when data is not available.
(Fix is to not export the field itself when data is not available)
2. Agent introspect showing remote-tagset for local-tagset field

Closes-Bug: #1727203
(cherry picked from commit cfa9ec81ae02ccf246d62aec4fa6f75447298762)

Change-Id: I032305ec0c451461e47d6a5faafb0e5a0b832a66

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.