Ask Your Question
0

Neutron network creation fails with helium ODL /openstack juno.

asked 2015-03-05 06:26:02 -0700

shail gravatar image

I tried integrating openstack juno release with opendaylight helium distribution-karaf-0.2.0-Helium release but it is failing with below error in neutron network creation phase.

Please find the log form /var/log/neutron/server.log

2015-03-04 12:47:42.764 6642 INFO neutron.wsgi [-] (6642) accepted ('10.203.33.33', 44957) 2015-03-04 12:47:42.770 6642 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.203.33.33 2015-03-04 12:47:43.013 6642 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.203.33.33 2015-03-04 12:47:43.260 6642 INFO neutron.plugins.ml2.db [req-eed8ec57-6302-445a-936c-b9613789d458 None] Added segment b7531fb9-88fb-4eb5-911d-40576298afb1 of type gre for network 51726157-1976-47fa-b035-ba17321b0187 2015-03-04 12:47:43.287 6642 INFO neutron.tests.unit.ml2.drivers.mechanismlogger [req-eed8ec57-6302-445a-936c-b9613789d458 None] createnetworkprecommit called with network settings {'status': 'ACTIVE', 'subnets': [], 'name': u'demo', 'provider:physicalnetwork': None, 'adminstateup': True, 'tenantid': u'c61353d098c5436da1e7ea6e6efc0449', 'provider:networktype': u'gre', 'router:external': False, 'shared': False, 'id': '51726157-1976-47fa-b035-ba17321b0187', 'provider:segmentationid': 1L} (original settings None) and network segments [{'segmentationid': 1L, 'physicalnetwork': None, 'id': u'b7531fb9-88fb-4eb5-911d-40576298afb1', 'networktype': u'gre'}] 2015-03-04 12:47:43.416 6642 INFO urllib3.connectionpool [req-eed8ec57-6302-445a-936c-b9613789d458 ] Starting new HTTP connection (1): 10.203.33.33 2015-03-04 12:47:43.435 6642 INFO urllib3.connectionpool [req-eed8ec57-6302-445a-936c-b9613789d458 ] Starting new HTTP connection (1): 10.203.33.33 2015-03-04 12:47:43.467 6642 INFO urllib3.connectionpool [req-eed8ec57-6302-445a-936c-b9613789d458 ] Starting new HTTP connection (1): 10.203.33.33 2015-03-04 12:47:43.492 6642 ERROR neutron.plugins.ml2.managers [req-eed8ec57-6302-445a-936c-b9613789d458 None] Mechanism driver 'opendaylight' failed in createnetworkpostcommit 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers Traceback (most recent call last): 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 291, in callondrivers 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers getattr(driver.obj, methodname)(context) 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/mechanismodl.py", line 145, in createnetworkpostcommit 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers self.synchronize('create', ODLNETWORKS, context) 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/mechanismodl.py", line 174, in synchronize 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers self.syncfull(context) 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/lockutils.py", line 249, in inner 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers return f(args, *kwargs) 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/mechanismodl.py", line 233, in syncfull 2015-03-04 12:47:43.492 6642 TRACE neutron.plugins.ml2.managers self.syncresources(collectionname ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-05 07:21:31 -0700

Vishal Thapar gravatar image

This error means ODL Mechanism driver in ODL was unable to create network in ODL. This can be for several factors:

  1. Neutron unable to reach ODL - Common reason could be network issue, proxy or ODL IP not configured correctly in ml2_conf.ini
  2. Exception in Neutron Northbound in ODL - check the logs in ODL for any exceptions.
  3. Authorization error - Check user/pass specified in ml2_conf.ini in Neutron.

For starter, I'd recommend taking a wireshark on tcp port 8080 on Neutron server and see if you're getting any response from ODL and if yes what the response is. 401 would be auth error while 500 would suggest some exception in ODL. No response would mean ODL isn't running or wrong IP configured.

edit flag offensive delete publish link more
0

answered 2015-03-09 06:30:03 -0700

shail gravatar image

updated 2015-03-09 22:01:44 -0700

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" : [ ] }</controller>

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</controller>

--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</controller></controller>

Username/Password Authentication Failed.

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</controller></controller></controller>

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 ... (more)

edit flag offensive delete publish link more

Comments

What were the karaf features that you installed?

Vishal Thapar ( 2015-03-09 22:32:55 -0700 )edit

Below are the feature that I have instaled: feature:install odl-base-all odl-aaa-authn odl-restconf odl-nsf-all odl-adsal-northbound odl-mdsal-apidocs odl-ovsdb-openstack odl-ovsdb-northbound odl-dlux-core odl-vtn-manager-neutron odl-lispflowmapping-neutron odl-openflowplugin-flow-services-ui odl-mdsal-clustering odl-base-jersey2-osgi

shail ( 2015-03-10 01:42:52 -0700 )edit

Where did you get this list from? You seem to have too many bundles and suspect some of them don't sit nicely with each other. Start off with list from here: https://wiki.opendaylight.org/view/OVSDB:Helium_and_Openstack_on_Fedora20#OpenDaylight_Distribution [scroll down to install features]

Vishal Thapar ( 2015-03-10 02:47:21 -0700 )edit

1st i have installed the below mentioned fetautes only opendaylight-user@root>feature:install odl-base-all odl-aaa-authn odl-restconf odl-nsf-all odl-adsal-northbound odl-mdsal-apidocs odl-ovsdb-openstack odl-ovsdb-northbound odl-dlux-core But its not worked so I have installed rest of the feautres : after that we have added odl-base-jersey2-osgi odl-vtn-manager-neutron odl-lispflowmapping-neutron Still its failing. Now I have installed feature:install odl-base-eclipselink-persistence so i am getting below errror TRACE neutron.plugins.ml2.managers OpendaylightAuthError: Failed to authenticate with OpenDaylight: 500 Server Error: Internal Server Error BTW Did anyone tried successfull integration of openstack JUNO with Helium ODL 0.2.0

shail ( 2015-03-10 03:51:34 -0700 )edit

I don't think you needed to install so many features, they just make it tougher to solve the problem. One suspect could be that on Lithium authentication has been changed to Basic Auth and it needs some changes in Juno too to work. I am not sure if those changes are available in Helium SR2 already.

Vishal Thapar ( 2015-03-10 04:09:18 -0700 )edit
0

answered 2015-03-16 05:22:20 -0700

shail gravatar image

Hi, I am not able to create flow using ODL GUI,can you please tell me what could be the reason for this.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2015-03-05 06:26:02 -0700

Seen: 958 times

Last updated: Mar 16 '15