[OPNFLWPLUG-736] Flow doesn't show up in operational data with correct flow id Created: 22/Jul/16 Updated: 27/Sep/21 Resolved: 11/Aug/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sai MarapaReddy | Assignee: | Sai MarapaReddy |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 6259 |
| Priority: | Highest |
| Description |
|
When i was trying to add a flow in to mininet using MASTER branch of openflowplugin project, i couldn't see flow in operational data store with correct flow id & but seen on mininet. features installed :- feature:install odl-openflowplugin-flow-services-ui pastebin link operational data -> http://pastebin.com/aPnx0AzF pastebin link config dats -> http://pastebin.com/gKATfvBJ flows on mininet mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13 same result observed with features installed :- feature:install odl-openflowplugin-flow-services-ui & feature:install odl-openflowplugin-flow-services-rest-he pastebin link operational data -> http://pastebin.com/siXbim12 pastebin link config dats -> http://pastebin.com/1nWDzLx9 mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13 |
| Comments |
| Comment by Sai MarapaReddy [ 22/Jul/16 ] |
|
Flow with arbitrary mask works in stable/beryllium but not master Input in config -> http://pastebin.com/Tq6finM5 Output in operational -> http://pastebin.com/vqpnea8v mininet output mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13 |
| Comment by Sai MarapaReddy [ 22/Jul/16 ] |
|
All the above mentioned flows works in stable/beryllium as expected |
| Comment by Andrej Leitner [ 04/Aug/16 ] |
|
I just tested it now with the current code on master branch. |
| Comment by Bertrand Low [ 05/Aug/16 ] |
|
Hi Andrej, I've tested this with master branch builds as early as distribution-karaf-0.5.0-20160727.205650-3885.tar.gz I noticed that the flows in the config datastore that Sai provided resulted in OFPBMC_BAD_WILDCARDS errors on a version 2.5.0 OVS Switch. After modifying the flow (see below*), I was able to get the flow installed on the switch and confirm that the operational flow ID indeed matched the config datastore flow ID. So, I could not reproduce this bug as Sai was seeing. Were you able to reproduce it?
|
| Comment by Sai MarapaReddy [ 05/Aug/16 ] |
|
Hi Andrej / Bertrand, I re-tested with latest master (which includes Anil's Patch) Seems Ipv4 arbitrary bit mask is ok, but some cases of Ipv6 arbitrary bit mask doesn't work. Please check the flow Id s 440,441,447 in config, there are not correctly reflected in operational. config :- http://pastebin.com/raw/DaKk89H7 operational :- http://pastebin.com/raw/UXZC0iMp Hence the bug still exists. Please let me know any clarification. |
| Comment by Sai MarapaReddy [ 05/Aug/16 ] |
|
Following flow in Ipv4 doesn't work Config :-http://pastebin.com/6xce2rgU operational :- http://pastebin.com/uXCYB8BE |
| Comment by Andrej Leitner [ 05/Aug/16 ] |
|
Hi guys, I also tested it with your first configuration Sai and for OVS 2.3.0 all flows are pushed to device and they show up in operational with correct flow id. (However if you would like to setup these flows in OVS 2.4.0 or 2.5.0 - as Bertrand mentioned, device will return error cause of incorrect masks. Newer versions are more clever.) But it seems that problem is if *address-no-mask + *arbitrary-bitmask fileds are used. Will try to check it. |
| Comment by Tomas Slusny [ 05/Aug/16 ] |
|
The problem was really with *address-no-mask + *arbitrary-bitmask fields not comparing properly with ipv4/6-source from device. I created patch that will fix this problem here: https://git.opendaylight.org/gerrit/#/c/43233/ |
| Comment by Andrej Leitner [ 05/Aug/16 ] |
|
Sai, could you please test it, it should work now. |
| Comment by Sai MarapaReddy [ 09/Aug/16 ] |
|
Hi Andrej / Tomas, With ovs version 2.3 following flows fail to show up in operational. |
| Comment by Andrej Leitner [ 10/Aug/16 ] |
|
This was not issue related to alien id actually, but fixed here: master: https://git.opendaylight.org/gerrit/#/c/43641/ |
| Comment by Sai MarapaReddy [ 10/Aug/16 ] |
|
Thank you Andrej. |
| Comment by Jozef Bacigal [ 11/Aug/16 ] |
|
Guys, everything is fine and I am going to merge it. Just wonder why this errors weren't catch by JUNIT test. Please add/upgrade test to prevent further mistakes. |
| Comment by Tomas Slusny [ 11/Aug/16 ] |
|
With Andrej, we additionally replaced regexp, that was converting IPv6 adress to its short notation to proper byte array related method, because that regex was not shortening the longest groups of zeros, as it should. Also, Andrej tested it on OVS 2.3 and 2.4, and everything was working as it was supposed to (on 2.3, everything passed, and on 2.4, when there was bad wildcard, it was properly rejected). |
| Comment by Jozef Bacigal [ 11/Aug/16 ] |
|
Patches are merged already, if its ok please close this bug. Jozef |