API server logs message with error code 520 in VncApiStatsLog whenever there is an error

Bug #1639079 reported by Sachin Bansal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Sachin Bansal
Trunk
Fix Committed
Medium
Sachin Bansal

Bug Description

Nov 03 19:41:01 contrail-dev-config1.srv.lab.cloud.ipnett.se contrail-api[18392]: 10.19.30.116 - - [2016-11-03 19:41:01] "GET /virtual-machine-interface/248122a7-1964-4408-91e5-c74d8d67afb0?fields=instance_ip_back_refs%2Cinterface_route_table_refs HTTP/1.1" 404 196 0.003009
Nov 03 19:41:01 contrail-dev-config1.srv.lab.cloud.ipnett.se contrail-api[18392]: INFO:contrail-api:__default__ [SYS_INFO]: VncApiConfigLog: api_log = << identifier_uuid = 248122a7-1964-4408-91e5-c74d8d67afb0 object_type = virtual_machine_interface url = http://contrail-dev-config1.srv.lab.cloud.ipnett.se:9100/virtual-machine-interface/248122a7-1964-4408-91e5-c74d8d67afb0?fields=instance_ip_back_refs%2Cinterface_route_table_refs operation = http_get useragent = contrail-dev-config1.srv.lab.cloud.ipnett.se:/usr/bin/contrail-svc-monitor remote_ip = contrail-dev-config1.srv.lab.cloud.ipnett.se:9100 domain = default-domain error = virtual_machine_interface:This object is not visible by users: 248122a7-1964-4408-91e5-c74d8d67afb0 >>
Nov 03 19:41:01 contrail-dev-config1.srv.lab.cloud.ipnett.se contrail-api[18392]: INFO:contrail-api:__default__ [SYS_INFO]: VncApiStatsLog: api_stats = << operation_type = GET useragent = contrail-dev-config1.srv.lab.cloud.ipnett.se:/usr/bin/contrail-svc-monitor remote_ip = contrail-dev-config1.srv.lab.cloud.ipnett.se:9100 domain_name = default-domain project_name = default-project object_type = virtual_machine_interface response_time_in_usec = 2538 response_size = 0 resp_code = 520 >>

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

Review in progress for https://review.opencontrail.org/25683
Submitter: Sachin Bansal (<email address hidden>)

Sachin Bansal (sbansal)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25683
Committed: http://github.org/Juniper/contrail-controller/commit/4369c8763bcb1417df8dce25154c4742f133ea09
Submitter: Zuul
Branch: master

commit 4369c8763bcb1417df8dce25154c4742f133ea09
Author: Sachin Bansal <email address hidden>
Date: Thu Nov 3 16:43:45 2016 -0700

Catch the correct exception

Catch the correct exception to fill the response code.
Added test case to test this
Also fixed a minor sandesh file issue.

Change-Id: Id4147ee2034231946f8d1aa051b8c6a7b6064da0
Closes-Bug: 1639079

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

Review in progress for https://review.opencontrail.org/25792
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/25792
Committed: http://github.org/Juniper/contrail-controller/commit/1231596ed9924aae809914a6115a5a59140326d7
Submitter: Zuul
Branch: R3.2

commit 1231596ed9924aae809914a6115a5a59140326d7
Author: Sachin Bansal <email address hidden>
Date: Thu Nov 3 16:43:45 2016 -0700

Catch the correct exception

Catch the correct exception to fill the response code.
Added test case to test this
Also fixed a minor sandesh file issue.

Change-Id: Id4147ee2034231946f8d1aa051b8c6a7b6064da0
Closes-Bug: 1639079
(cherry picked from commit 4369c8763bcb1417df8dce25154c4742f133ea09)

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.