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

We tried below command and it is giving response. root@pop2-controller:~# curl -u admin:admin http://<controller ip="">:8080/controller/nb/v2/neutron/networks { "networks" : [ ] }

Is there any other way to test connection between neutron and ODL integration is working.Below is the configuration of ml2_conf.ini file

[ml2odl] password = admin username = admin url = http://${CONTROLHOST}:8080/controller/nb/v2/neutron

wget http://<controller ip="">:8080/controller/nb/v2/neutron

--2015-03-09 19:10:00-- http://<controller ip="">:8080/controller/nb/v2/neutron Connecting to <controller ip="">:8080... connected. HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

wget http://10.203.33.33:8080/controller/nb/v2/neutron --2015-03-09 19:10:00-- http://10.203.33.33:8080/controller/nb/v2/neutron Connecting to 10.203.33.33:8080... connected. HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

karaf.log shows below error:

2015-03-09 17:00:55,274 | ERROR | -bio-8080-exec-5 | [JAXRSNeutron] | 152 - org.apache.juli.extras - 7.0.53.v201406060720 | Servlet.service() for servlet [JAXRSNeutron] in context with path [/controller/nb/v2/neutron] thre w exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.eclipse.persistence.internal.libraries.ant lr.runtime.tree.Tree at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl eLoader.java:501)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:421)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:412)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De faultClassLoader.java:107)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.075] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getNewXML Reader(SAXUnmarshaller.java:200)[111:org.eclipse.persistence.core:2.5.0.v2013050 7-3faac2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getXMLRea der(SAXUnmarshaller.java:188)[111:org.eclipse.persistence.core:2.5.0.v20130507-3 faac2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:425)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:375)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:705)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller .java:655)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b] at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshal ler.java:301)[110:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b] at org.eclipse.persistence.jaxb.rs.MOXyJsonProvider.readFrom(MOXyJsonPro vider.java:580)[110:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b] at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequ est.java:488)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchP rovider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)[164:com. sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjecta bleValues(InjectableValuesProvider.java:46)[164:com.sun.jersey.jersey-server:1.1 7.0] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatch Provider.java:153)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$ResponseOutInvoker.dispatch(AbstractResourceMethodDispatchPr ovider.java:203)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi spatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[164:com.sun.jersey.jerse y-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod Rule.java:302)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc eClassRule.java:108)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa ndPathRule.java:147)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R ootResourceClassesRule.java:84)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequ est(WebApplicationImpl.java:1511)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequ est(WebApplicationImpl.java:1442)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1391)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1381)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen t.java:416)[165:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet Container.java:538)[165:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet Container.java:716)[165:com.sun.jersey.servlet:1.17.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[76:org.a pache.geronimo.specs.geronimo-servlet3.0spec:1.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:303)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:208)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:220)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:122)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:610)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:170)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:98)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 950)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.ja va:339)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:116)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1040)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:607)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:313)[145:org.apache.catalina:7.0.53.v201406061610] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145)[:1.7.075] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615)[:1.7.075] at java.lang.Thread.run(Thread.java:745)[:1.7.0_75] 2015-03-09 17:00:55,701 | ERROR | -bio-8080-exec-7 | [JAXRSNeutron] | 152 - org.apache.juli.extras - 7.0.53.v201406060720 | Servlet.service() for servlet [JAXRSNeutron] in context with path [/controller/nb/v2/neutron] thre w exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.eclipse.persistence.internal.libraries.ant lr.runtime.tree.Tree at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl eLoader.java:501)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:421)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:412)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]

We tried below command and it is giving response. root@pop2-controller:~# curl -u admin:admin http://<controller ip="">:8080/controller/nb/v2/neutron/networks { "networks" : [ ] }

Is there any other way to test connection between neutron and ODL integration is working.Below is the configuration of ml2_conf.ini file

[ml2odl] password = admin username = admin url = http://${CONTROLHOST}:8080/controller/nb/v2/neutron

wget http://<controller ip="">:8080/controller/nb/v2/neutron

--2015-03-09 19:10:00-- http://<controller ip="">:8080/controller/nb/v2/neutron Connecting to <controller ip="">:8080... connected. HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

wget http://10.203.33.33:8080/controller/nb/v2/neutron http://<controller ip="">:8080/controller/nb/v2/neutron --2015-03-09 19:10:00-- http://10.203.33.33:8080/controller/nb/v2/neutron http://<controller ip="">:8080/controller/nb/v2/neutron Connecting to 10.203.33.33:8080... <controller ip="">:8080... connected. HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

karaf.log shows below error:

2015-03-09 17:00:55,274 | ERROR | -bio-8080-exec-5 | [JAXRSNeutron] | 152 - org.apache.juli.extras - 7.0.53.v201406060720 | Servlet.service() for servlet [JAXRSNeutron] in context with path [/controller/nb/v2/neutron] thre w exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.eclipse.persistence.internal.libraries.ant lr.runtime.tree.Tree at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl eLoader.java:501)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:421)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:412)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De faultClassLoader.java:107)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.075] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getNewXML Reader(SAXUnmarshaller.java:200)[111:org.eclipse.persistence.core:2.5.0.v2013050 7-3faac2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getXMLRea der(SAXUnmarshaller.java:188)[111:org.eclipse.persistence.core:2.5.0.v20130507-3 faac2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:425)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:375)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal (SAXUnmarshaller.java:705)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faa c2b] at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller .java:655)[111:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b] at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshal ler.java:301)[110:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b] at org.eclipse.persistence.jaxb.rs.MOXyJsonProvider.readFrom(MOXyJsonPro vider.java:580)[110:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b] at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequ est.java:488)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchP rovider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)[164:com. sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjecta bleValues(InjectableValuesProvider.java:46)[164:com.sun.jersey.jersey-server:1.1 7.0] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatch Provider.java:153)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth odDispatchProvider$ResponseOutInvoker.dispatch(AbstractResourceMethodDispatchPr ovider.java:203)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi spatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[164:com.sun.jersey.jerse y-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod Rule.java:302)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc eClassRule.java:108)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa ndPathRule.java:147)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R ootResourceClassesRule.java:84)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequ est(WebApplicationImpl.java:1511)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequ est(WebApplicationImpl.java:1442)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1391)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque st(WebApplicationImpl.java:1381)[164:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen t.java:416)[165:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet Container.java:538)[165:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet Container.java:716)[165:com.sun.jersey.servlet:1.17.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[76:org.a pache.geronimo.specs.geronimo-servlet3.0spec:1.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:303)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:208)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:220)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:122)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:610)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:170)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:98)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 950)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.ja va:339)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:116)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1040)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:607)[145:org.apache.catalina:7.0.53.v201406061610] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:313)[145:org.apache.catalina:7.0.53.v201406061610] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145)[:1.7.075] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615)[:1.7.075] at java.lang.Thread.run(Thread.java:745)[:1.7.0_75] 2015-03-09 17:00:55,701 | ERROR | -bio-8080-exec-7 | [JAXRSNeutron] | 152 - org.apache.juli.extras - 7.0.53.v201406060720 | Servlet.service() for servlet [JAXRSNeutron] in context with path [/controller/nb/v2/neutron] thre w exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.eclipse.persistence.internal.libraries.ant lr.runtime.tree.Tree at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl eLoader.java:501)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:421)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. java:412)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]