[OPNFLWPLUG-306] of-flow: unable to see 100k flows in operational data store Created: 06/Oct/14  Updated: 27/Sep/21  Resolved: 27/May/15

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Peter Gubka Assignee: Michal Rehak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File flowscreator.sh    
External issue ID: 2151

 Description   

steps to reproduce:

1) connect odl with mininet (without any flows)
checking /restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/31/opendaylight-flow-table-statistics:flow-table-statistics
for tables 30 and 31 should return

{
"opendaylight-flow-table-statistics:flow-table-statistics":

{ "packets-looked-up": 0, "active-flows": 0, "packets-matched": 0 }

}

2)generate 100k flows( use attached script) 50k for each table
bash flowscreator.sh -f 50000 -t 30 -o t30f50k
bash flowscreator.sh -f 50000 -t 31 -o t31f50k

3) add the first 50k of flows to switch
sudo ovs-ofctl add-flows s1 t30f50k -O OpenFlow13

after some time you should see flows reported in table 30
{
"opendaylight-flow-table-statistics:flow-table-statistics":

{ "packets-looked-up": 0, "active-flows": 50000, "packets-matched": 0 }

}

4) add another 50k of flows to switch
sudo ovs-ofctl add-flows s1 t31f50k -O OpenFlow13

what happened to me was that i never saw any "active-flows" in table 31 (table 30 was reported ok)
or
urls like .../table/XX/opendaylight-flow-table-statistics:flow-table-statistics; ..table/XX start returning 404 where XX is anything, not only 30 or 31



 Comments   
Comment by Peter Gubka [ 06/Oct/14 ]

Attachment flowscreator.sh has been added with description: file to create flows

Comment by Vaclav Demcak [ 27/Feb/15 ]

https://git.opendaylight.org/gerrit/#/c/13127/

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Comment by Peter Gubka [ 27/May/15 ]

replicated with http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.3.0-SNAPSHOT//distribution-karaf-0.3.0-20150527.111128-1870.tar.gz

installed feature odl-openflowplugin-flow-services-ui-li

works

linux-gnu>bash flowscreator.sh -f 50000 -t 30 -o t30f50k
switch 1, table 30, flows 50000
linux-gnu>bash flowscreator.sh -f 50000 -t 31 -o t31f50k
switch 1, table 31, flows 50000
linux-gnu>sudo ovs-ofctl add-flows s1 t30f50k -O OpenFlow13

linux-gnu>integration/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py --host 10.25.2.9 --auth
Crawling 'http://10.25.2.9:8181/restconf/operational/opendaylight-inventory:nodes'

Totals:
Nodes: 1
Reported flows: 50009
Found flows: 50000
linux-gnu>sudo ovs-ofctl add-flows s1 t31f50k -O OpenFlow13
linux-gnu>
linux-gnu>
linux-gnu>
linux-gnu>integration/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py --host 10.25.2.9 --auth
Crawling 'http://10.25.2.9:8181/restconf/operational/opendaylight-inventory:nodes'

Totals:
Nodes: 1
Reported flows: 100009
Found flows: 100000
linux-gnu>

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