[L2SWITCH-28] If mininet is started before the OpenDaylight instance, default flows are not installed Created: 10/Dec/14  Updated: 19/Oct/17  Resolved: 27/Apr/16

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

Type: Bug
Reporter: Ramkumar Gowrishankar Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2502

 Description   

Steps to reproduce:
1. Start ODL, enable l2switch, openflow, restconf, dlux. Stop ODL
2. Start mininet using command: sudo mn --controller=remote,ip=127.0.0.1 --topo linear,2 --switch ovsk,protocols=OpenFlow13
3. Start ODL
4. Look at the log file using log:display
2014-12-10 14:02:53,878 | INFO | config-pusher | HostTrackerModule | 263 - org.opendaylight.l2switch.hosttracker.impl - 0.1.1.Helium-SR1 | HostTracker (instance org.opendaylight.yang.gen.v1.urn.opendaylight.l2switch.host.tracker.impl.rev140528.HostTrackerModule$1CloseResources@305114a4) initialized.
2014-12-10 14:02:54,819 | INFO | config-pusher | L2SwitchMainModule | 264 - org.opendaylight.l2switch.main.impl - 0.1.1.Helium-SR1 | L2Switch will install a dropall flow on each switch
2014-12-10 14:02:54,822 | INFO | config-pusher | L2SwitchMainModule | 264 - org.opendaylight.l2switch.main.impl - 0.1.1.Helium-SR1 | L2Switch will react to network traffic and install flows
2014-12-10 14:02:54,825 | INFO | config-pusher | L2SwitchMainModule | 264 - org.opendaylight.l2switch.main.impl - 0.1.1.Helium-SR1 | L2SwitchMain (instance org.opendaylight.yang.gen.v1.urn.opendaylight.l2switch.main.impl.rev140528.L2SwitchMainModule$1CloseResources@1aef70a5) initialized.
2014-12-10 14:03:47,329 | INFO | qtp520317920-69 | BaseYangSwaggerGenerator | 243 - org.opendaylight.controller.sal-rest-docgen - 1.1.1.Helium-SR1 | Modules found [96]

Note the the log says that the dropall flow on each switch will be installed.

5. Go to mininet and run: sh ovs-ofctl dump-flows s1

There will not be any flows installed. If you start ODL before mininet then the default flows are installed.

Not sure if this is a L2switch bug or if L2switch is trying to install default flow and failing. There are no error messages in the log.



 Comments   
Comment by Ramkumar Gowrishankar [ 10/Dec/14 ]

For some weird reason, it only happens if the following features are part of the org.apache.karaf.features.cfg file: odl-adsal-northbound,odl-restconf,odl-openflowplugin-all,odl-mdsal-apidocs,odl-dlux-core
And then the odl-l2switch-all is installed.

If I try to install the features manually, then I cannot reproduce it consistently.

Comment by Sai MarapaReddy [ 27/Apr/16 ]

Please let us know if it still doesn't work you.

I could see default flows installed using out of box of l2switch module.

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