Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

How can connect my ODL project to Mininet?

Hello,

I'm building my own ODL project (following this tutorial) and now I want to check if it works connecting it to mininet but after initializing the ODL controller, when I create my topology in mininet with the command sudo mn --switch=ovs --controller=remote,ip=192.168.56.1 --topo tree,3 , I get this:

*** Creating network
*** Adding controller
Unable to contact the remote controller at 192.168.56.1:6653
Unable to contact the remote controller at 192.168.56.1:6633
Setting remote controller to 192.168.56.1:6653
*** Adding hosts:
h1 h2 h3 h4 h5 h6 h7 h8 
*** Adding switches:
s1 s2 s3 s4 s5 s6 s7 
*** Adding links:
(s1, s2) (s1, s5) (s2, s3) (s2, s4) (s3, h1) (s3, h2) (s4, h3) (s4, h4) (s5, s6) (s5, s7) (s6, h5) (s6, h6) (s7, h7) (s7, h8) 
*** Configuring hosts
h1 h2 h3 h4 h5 h6 h7 h8 
*** Starting controller
c0 
*** Starting 7 switches
s1 s2 s3 s4 s5 s6 s7 ...
*** Starting CLI:
mininet>

I don't know if it would be helpful but I created the project with the following command:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon

I have to say that I checked the connection with the Carbon distribution previously (downloaded from the official website) and it worked fine after installing some features, for example odl-l2switch-switch so I think it can't be a problem of IP address. I'm not sure if the reason why my project doesn't connect to mininet is that I haven't installed odl-l2switch feature but the point is that it's not listed when I type feature:install so I can't install that feature.

I'd appreciate your help to solve this problem.

Thank you.

How can connect my ODL project to Mininet?

Hello,

I'm building my own ODL project (following this tutorial) and now I want to check if it works connecting it to mininet but after initializing the ODL controller, when I create my topology in mininet with the command sudo mn --switch=ovs --controller=remote,ip=192.168.56.1 --topo tree,3 , I get this:

*** Creating network
*** Adding controller
Unable to contact the remote controller at 192.168.56.1:6653
Unable to contact the remote controller at 192.168.56.1:6633
Setting remote controller to 192.168.56.1:6653
*** Adding hosts:
h1 h2 h3 h4 h5 h6 h7 h8 
*** Adding switches:
s1 s2 s3 s4 s5 s6 s7 
*** Adding links:
(s1, s2) (s1, s5) (s2, s3) (s2, s4) (s3, h1) (s3, h2) (s4, h3) (s4, h4) (s5, s6) (s5, s7) (s6, h5) (s6, h6) (s7, h7) (s7, h8) 
*** Configuring hosts
h1 h2 h3 h4 h5 h6 h7 h8 
*** Starting controller
c0 
*** Starting 7 switches
s1 s2 s3 s4 s5 s6 s7 ...
*** Starting CLI:
mininet>

I don't know if it would be helpful but I created the project with the following command:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon

I have to say that I checked the connection with the Carbon distribution previously (downloaded from the official website) and it worked fine after installing some features, for example odl-l2switch-switch so I think it can't be a problem of IP address. I'm not sure if the reason why my project doesn't connect to mininet is that I haven't installed odl-l2switch feature but the point is that it's not listed when I type feature:install so I can't install that feature.

I'd appreciate your help to solve this problem.

Thank you.

EDIT:

I added the l2switch dependency to my feature pom.xml and finally it showed up in feature:install list to be installed. This is what I added in the pom.xml:

<dependency>
  <groupId>org.opendaylight.l2switch</groupId>
  <artifactId>features-l2switch</artifactId>
  <version>0.5.1-Carbon</version>
  <classifier>features</classifier>
  <type>xml</type>
  <scope>runtime</scope>
</dependency>

(Note that I'm using Carbon version for l2switch because the version of the project is Carbon as well).

The problem now is when I type feature:install odl-l2switch-switch I get this large amount of exceptions but I paste the last lines:

Exception in thread "config-blank-txn-34" java.lang.IllegalArgumentException: Module name is not unique. Found two conflicting factories with same name 'shutdown': 'org.opendaylight.controller.config.yang.shutdown.impl.ShutdownModuleFactory@4a14a98c' 'org.opendaylight.controller.config.yang.shutdown.impl.ShutdownModuleFactory@6dc62640'
    at org.opendaylight.controller.config.manager.impl.osgi.BundleContextBackedModuleFactoriesResolver.getAllFactories(BundleContextBackedModuleFactoriesResolver.java:69)
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfigSafe(ConfigRegistryImpl.java:207)
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfig(ConfigRegistryImpl.java:188)
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.lambda$new$0(BlankTransactionServiceTracker.java:41)
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.blankTransactionSync(BlankTransactionServiceTracker.java:75)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Error executing command: Can't install feature odl-l2switch-switch/0.0.0:   
Could not start bundle mvn:org.opendaylight.controller/config-manager-facade-xml/0.6.1-Carbon in feature(s) odl-config-persister-0.6.1-Carbon, odl-config-manager-facade-xml-0.6.1-Carbon: Exception in org.opendaylight.controller.config.facade.xml.osgi.YangStoreActivator.start() of bundle org.opendaylight.controller.config-manager-facade-xml.

Can anyone help me to connect my ODL project to mininet?

Regards

How can connect my ODL project to Mininet?

Hello,

I'm building my own ODL project (following this tutorial) and now I want to check if it works connecting it to mininet but after initializing the ODL controller, when I create my topology in mininet with the command sudo mn --switch=ovs --controller=remote,ip=192.168.56.1 --topo tree,3 , I get this:

*** Creating network
*** Adding controller
Unable to contact the remote controller at 192.168.56.1:6653
Unable to contact the remote controller at 192.168.56.1:6633
Setting remote controller to 192.168.56.1:6653
*** Adding hosts:
h1 h2 h3 h4 h5 h6 h7 h8 
*** Adding switches:
s1 s2 s3 s4 s5 s6 s7 
*** Adding links:
(s1, s2) (s1, s5) (s2, s3) (s2, s4) (s3, h1) (s3, h2) (s4, h3) (s4, h4) (s5, s6) (s5, s7) (s6, h5) (s6, h6) (s7, h7) (s7, h8) 
*** Configuring hosts
h1 h2 h3 h4 h5 h6 h7 h8 
*** Starting controller
c0 
*** Starting 7 switches
s1 s2 s3 s4 s5 s6 s7 ...
*** Starting CLI:
mininet>

I don't know if it would be helpful but I created the project with the following command:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon

I have to say that I checked the connection with the Carbon distribution previously (downloaded from the official website) and it worked fine after installing some features, for example odl-l2switch-switch so I think it can't be a problem of IP address. I'm not sure if the reason why my project doesn't connect to mininet is that I haven't installed odl-l2switch feature but the point is that it's not listed when I type feature:install so I can't install that feature.

I'd appreciate your help to solve this problem.

Thank you.

EDIT:

I added the l2switch dependency to my feature pom.xml and finally it showed up in feature:install list to be installed. This is what I added in the pom.xml:

<dependency>
  <groupId>org.opendaylight.l2switch</groupId>
  <artifactId>features-l2switch</artifactId>
  <version>0.5.1-Carbon</version>
  <classifier>features</classifier>
  <type>xml</type>
  <scope>runtime</scope>
</dependency>

(Note that I'm using Carbon version for l2switch because the version of the project is Carbon as well).

The problem now is when I type feature:install odl-l2switch-switch I get this large amount of exceptions but I paste the last lines:

Exception in thread "config-blank-txn-34" java.lang.IllegalArgumentException: Module name is not unique. Found two conflicting factories with same name 'shutdown': 'org.opendaylight.controller.config.yang.shutdown.impl.ShutdownModuleFactory@4a14a98c' 'org.opendaylight.controller.config.yang.shutdown.impl.ShutdownModuleFactory@6dc62640'
    at org.opendaylight.controller.config.manager.impl.osgi.BundleContextBackedModuleFactoriesResolver.getAllFactories(BundleContextBackedModuleFactoriesResolver.java:69)
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfigSafe(ConfigRegistryImpl.java:207)
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfig(ConfigRegistryImpl.java:188)
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.lambda$new$0(BlankTransactionServiceTracker.java:41)
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.blankTransactionSync(BlankTransactionServiceTracker.java:75)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Error executing command: Can't install feature odl-l2switch-switch/0.0.0:   
Could not start bundle mvn:org.opendaylight.controller/config-manager-facade-xml/0.6.1-Carbon in feature(s) odl-config-persister-0.6.1-Carbon, odl-config-manager-facade-xml-0.6.1-Carbon: Exception in org.opendaylight.controller.config.facade.xml.osgi.YangStoreActivator.start() of bundle org.opendaylight.controller.config-manager-facade-xml.

Can anyone help me to connect my ODL project to mininet?

Regards