[OPNFLWPLUG-31] Queue list for a node connector is always empty Created: 15/Jan/14 Updated: 27/Sep/21 Due: 23/Jan/14 Resolved: 03/Feb/14 |
|
| Status: | Verified |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Anil Gujele | Assignee: | Anil Vishnoi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Windows |
||
| Issue Links: |
|
||||||||
| Description |
|
1. add queue for a port using mininet: sudo ovs−vsctl −− set port s1-eth1 qos=@newqos −− −−id=@newqos create qos type=linux−htb other−config:max−rate=1000000 queues:0=@newqueue −− −−id=@newqueue create queue other−config:min−rate=1000000 other−config:max−rate=1000000 2. read queue operational data as shown below, queue list is always empty. FlowCapableNodeConnector nodeConnector = List<Queue> queueList = nodeConnector.getQueue(); queueList is always empty. 3. we are able to see queue stats using REST API { , , , |
| Comments |
| Comment by Anil Gujele [ 20/Jan/14 ] |
|
As per my understanding, There are code changes required from controller and plugin side. Controller side: Plugin Side: |
| Comment by Anil Gujele [ 20/Jan/14 ] |
|
As per my understanding, There are code changes required from controller , plugin and Yang model side. i am not good with Yang and Controller side, so pls assign it to controller team. Yang Model: Controller side: Plugin Side: |
| Comment by Abhijit Kumbhare [ 20/Jan/14 ] |
|
Anil - Ed said there were changes made to the controller - which may be fixing this and wanted it retested. |
| Comment by Anil Gujele [ 21/Jan/14 ] |
|
Retested this issue and found that it is still happening. Test code to reproduce this issue. for (Iterator<Queue> iterator3 = queueList.iterator(); iterator3.hasNext() } |
| Comment by Anil Vishnoi [ 22/Jan/14 ] |
|
Hi AnilG, This bug seems to be similar to Similarly in this issue, To recreate the issue locally I created queue on node-connector:1 of the switch and then I fetch details of node-connector:1 using restconf, I do see queue statistics data in the response. Following is the snapshot of the restconf data { , , , , , But when I tried to access the queue details of this node connector using following URI: I am getting following exception ( similar to I believe when you are trying to get the queues programmatically, you are hitting the same bug. I will discuss this issue with Martin and will update you with further details. Thanks Thanks |
| Comment by Anil Vishnoi [ 22/Jan/14 ] |
|
Hi AnilG, I discussed with Martin and this bug also seems to be causing because of yangtoolks bug – 329. Thanks |
| Comment by Anil Vishnoi [ 23/Jan/14 ] |
|
Hi AnilG, Dependent yangtools bug (bug -329) is now fixed, can you please verify that this fix resolves this issue. Thanks |
| Comment by Anil Gujele [ 25/Jan/14 ] |
|
Hi AnilV, I tested this issue with today's build, it is still not resolved. Test code to reproduce this issue (after adding the queue as mention in defect description). public void testQueue() for (Iterator<Queue> iterator3 = queueList.iterator(); iterator3.hasNext() } Regards |
| Comment by Anil Vishnoi [ 31/Jan/14 ] |
|
Hi AnilG, I followed the step you mentioned in the Description for creating queue and I tested this issue locally with the latest code from repo. When i directly fetch queue stats through RESTCONF, i am able to fetch the stats. I used following URI to fetch individual queue stats Stats: , Can you please check by fetching queue/stats programmatically. Thanks |
| Comment by Anil Gujele [ 03/Feb/14 ] |
|
Hi AnilV, Verified, Now programatically also we are able to get the queue list from the port if there is any queue is added for the port. – ANil |