[VTN-40] Failed to get up-to-date flow statistics. Created: 19/Sep/14  Updated: 03/May/18  Resolved: 10/Nov/14

Status: Resolved
Project: vtn
Component/s: VTN Manager
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Hideyuki Tai Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by CONTROLLER-833 sal-compatiblity does not register so... Resolved
is blocked by CONTROLLER-900 sal-compatibility not get up-to-date ... Resolved
External issue ID: 1992

 Description   

I executed the following REST API, but failed to get up-to-date flow statistics.
http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/vtn_1/flows/detail?update=true

The response body for the above request didn't contain statistics information.



 Comments   
Comment by Hideyuki Tai [ 19/Sep/14 ]

I think the root cause of this issue is CONTROLLER-833.
Therefore, after the CONTROLLER-833 is fixed, I'm going to test this issue again.

Comment by Hideyuki Tai [ 25/Sep/14 ]

I've tested this issue using the Helium release candidate, and found out that the bug has been not fixed yet.

http://nexus.opendaylight.org/content/groups/staging/org/opendaylight/integration/distribution-karaf/0.2.0-Helium/

I've observed that the statistics information in the output of the flow API are same between when update=true and update=false.
It meant that VTN Manager failed to get up-to-date flow statistics.

update=true
===========

curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X GET \
http://localhost:8080/controller/nb/v2/vtn/default/vtns/vtn1/flows/detail?update=true

The response message for the above request was as follows:

{
"dataflow": [
{
(sinp)
"statistics":

{ "bytes": 10444, "duration": 117626, "packets": 110 }

,
(snip)
}

update=false
============

curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X GET \
http://localhost:8080/controller/nb/v2/vtn/default/vtns/vtn1/flows/detail?update=false

The response message for the above request was as follows:

{
"dataflow": [
{
(snip)
"statistics":

{ "bytes": 10444, "duration": 117626, "packets": 110 }

,
(snip)
}

Comment by Hideyuki Tai [ 10/Nov/14 ]

CONTROLLER-900 which is the root cause of this issue has been fixed.

Generated at Wed Feb 07 20:47:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.