[OPNFLWPLUG-679] Li Migration: l2switch - LLDP flows or/and other flows not seen in controller stats Created: 29/Apr/16 Updated: 27/Sep/21 Resolved: 16/Aug/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sai MarapaReddy | Assignee: | Shuva Jyoti Kar |
| 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: | 5822 |
| Priority: | High |
| Description |
|
When working on the distribution produced after running the following builds in order Distribution repo with https://git.opendaylight.org/gerrit/#/c/38047/ L2Switch repo with https://git.opendaylight.org/gerrit/#/c/33303/ Openflowplugin repo with https://git.opendaylight.org/gerrit/#/c/35892 or Start controller --> Start mininet with topo=2, LLDP flows or/and other flows are not seen in stats of controller (check below links). When flows are checked on the switches they are present though. http://<Controller-Ip>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/ http://<Controller-Ip>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:2/table/0/ http://<Controller-Ip>:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:3/table/0/ |
| Comments |
| Comment by Abhijit Kumbhare [ 04/May/16 ] |
|
Made blocker as per: https://lists.opendaylight.org/pipermail/openflowplugin-dev/2016-May/005036.html |
| Comment by Abhijit Kumbhare [ 09/May/16 ] |
|
Make it a blocker for the release - but not for M3 (for Li migration default) |
| Comment by Shuva Jyoti Kar [ 13/May/16 ] |
|
Sai, apart from LLDP flows , what are the other flows that are not seen in operational DS? since if i add a flow through restconf , i am able to see it in operDS |
| Comment by Sai MarapaReddy [ 17/May/16 ] |
|
LLDP flows consistently not seen, also the default flows installed by controller (not the flows user installs using restconf) are not seen very often. |
| Comment by Sai MarapaReddy [ 27/Jul/16 ] |
|
Hi Shuva any update on this. Regarding other flows (not LLDP) you can refer to |
| Comment by Shuva Jyoti Kar [ 29/Jul/16 ] |
|
with a lot many fixes that have gone in can you please test it out on the current plugin build(as of today) and let us know |
| Comment by Shuva Jyoti Kar [ 31/Jul/16 ] |
|
Sai, Please refer to this patch |
| Comment by Shuva Jyoti Kar [ 01/Aug/16 ] |
|
(In reply to Shuva Jyoti Kar from comment #7) working on the fix, this is primarily happening since the flow-key is not unique.Still working on the actual/proper fix |
| Comment by Shuva Jyoti Kar [ 02/Aug/16 ] |
|
the fix of appending the priority to the flowid to guarantee its uniqueness is not a good fix. |
| Comment by Sai MarapaReddy [ 02/Aug/16 ] |
|
Flows that are not seen in particular are LLDP and flow with action "dropall". Flows on mininet:- |
| Comment by Abhijit Kumbhare [ 08/Aug/16 ] |
|
Shuva has a patch for this - https://git.opendaylight.org/gerrit/#/c/42851/. Needs to be reviewed by Anil & tested for performance by Shuva. |
| Comment by Tomas Slusny [ 11/Aug/16 ] |
|
So, I was testing it, and when someone will add flow with for example ID 22, it is correctly added to config, operational and, deviceflowregistry and device. Then, when someone add same flow, but just changes the id to for example 23, it will be replaced in config, replaced in deviceflowregistry, but removed from operational and device, because of FRM (becouse first, flow add is called, but FRM will see, that no flow with ID 22 is in config, so afterwards, it deletes that flow. But, because flow is unique by match, priority and table id, it removes that old/new flow with ID 23). TL:DR |
| Comment by Shuva Jyoti Kar [ 11/Aug/16 ] |
|
(In reply to Tomas Slusny from comment #12) Tomas, and different flowids, but with adding 2 different flows with the same flow id. This is because the flowregistry stores a unique(k,v) pair but fails to guarantee unique values. |
| Comment by Shuva Jyoti Kar [ 11/Aug/16 ] |
|
Sai, Can you please test with the latest patchset of |
| Comment by Sai MarapaReddy [ 12/Aug/16 ] |
|
Thanks Shuva. I can see flows in operational. pastebin link:- http://pastebin.com/tD75LBKA One concern:- The drop all flow "action" is not seen in operational, any thoughts ? |
| Comment by Andrej Leitner [ 15/Aug/16 ] |
|
Hi Sai, |
| Comment by Shuva Jyoti Kar [ 16/Aug/16 ] |
|
Since the flows are seen in the operational and the behaviour is similar to the earlier model of the plugin,marking the bug as reslved . |