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

0

beryllium with liberty integration

asked 2016-03-09 03:38:25 -0800

maciekkt gravatar image

updated 2016-03-11 00:03:35 -0800

Hi all,

i have a problem with ODL integration with openstack. Main problem is that, i cannot create a vm instance in openstack after integration with ODL. On ODL i can see the network created in neutrn (example:

# curl -u admin:admin http://192.168.128.159:8080/controller/nb/v2/neutron/networks
{
   "networks" : [ {
      "id" : "51db8995-830a-4033-b1ad-32c58542db57",
      "tenant_id" : "6d56ef1007604941936ca0b8f964049a",
      "name" : "vx-net",
      "admin_state_up" : true,
      "shared" : false,
      "router:external" : false,
      "provider:network_type" : "vxlan",
      "provider:segmentation_id" : "1400",
      "status" : "ACTIVE",
      "segments" : [ ]
   } ]

i can create new newtork, subnets and routers in neutron, but if i try to create a new instance with network assigned i have an error:

[Error: No valid host was found. There are not enough hosts available.]

The environment is based on two computes, one networ node and one openstack controller, ODL is on separate VM. The same Openstack without ODL worsk well.

in neutron server.log i found the information:

2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers [req-a52cf723-4a22-4af7-a135-f94aec50752a 4a58c40737944ec8b34e0a199aff5348 9b8e31aadf4e4ed2ad034971136258dc - - -] Mechanism driver opendaylight failed in bind_port
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 710, in _bind_port_level
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers     driver.obj.bind_port(context)
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/opendaylight/driver.py", line 92, in bind_port
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers     self.odl_drv.bind_port(context)
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers AttributeError: 'OpenDaylightDriver' object has no attribute 'bind_port'
2016-03-09 06:22:56.281 13496 ERROR neutron.plugins.ml2.managers
2016-03-09 06:22:56.283 13496 ERROR neutron.plugins.ml2.managers [req-a52cf723-4a22-4af7-a135-f94aec50752a 4a58c40737944ec8b34e0a199aff5348 9b8e31aadf4e4ed2ad034971136258dc - - -] Failed to bind port 4ff6b72b-8645-4e60-9f24-1faaf7643fe1 on host compute.wro.lab
2016-03-09 06:22:56.284 13496 ERROR neutron.plugins.ml2.managers [req-a52cf723-4a22-4af7-a135-f94aec50752a 4a58c40737944ec8b34e0a199aff5348 9b8e31aadf4e4ed2ad034971136258dc - - -] Failed to bind port 4ff6b72b-8645-4e60-9f24-1faaf7643fe1 on host compute.wro.lab
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers [req-a52cf723-4a22-4af7-a135-f94aec50752a 4a58c40737944ec8b34e0a199aff5348 9b8e31aadf4e4ed2ad034971136258dc - - -] Mechanism driver 'opendaylight' failed in update_port_postcommit
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 394, in _call_on_drivers
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/opendaylight/driver.py", line 86, in update_port_postcommit
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers     self.odl_drv.synchronize('update', odl_const.ODL_PORTS, context)
2016-03-09 06:22:56.345 13496 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_odl/ml2/mech_driver.py", line 58, in synchronize
2016-03-09 06:22:56.345 13496 ...
(more)
edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
0

answered 2016-03-10 08:46:11 -0800

srik1782 gravatar image

I am also getting the same issue (postcommit errors) while starting instance. But, for me I am not able to login to Opendaylight Web GUI DLUX with the login credentials admin/admin. When I click on login button, I am keep on getting a popup saying, authorization required. I used the following DLUX URL: URL: http://<local_ip>:8181/index.html Credentials: admin/admin

Regards, Srikanth.

edit flag offensive delete publish link more

Comments

For only integration i installed this features in this order: feature:install odl-ovsdb-openstack feature:install odl-dlux-all odl-l2switch-switch odl-groupbasedpolicy-neutronmapper Maybe the order of operation in which you install several components matters?

maciekkt ( 2016-03-10 23:05:53 -0800 )edit

For example, when i tried to install feature:install odl-mdsal-clustering as first thing in ODL (i wanted to build cluster, and read in documentation, that this should be the first step), i had an issue with 404 error, and status of web service for /controller/nb/v2/neutron stuck in Deploying phase.

maciekkt ( 2016-03-10 23:06:43 -0800 )edit

Hi @maciekkt Can i Know the solution? I am facing the same issue. I cannot launch an instance logs says port binding failed and cannot find br-int. Adding br-int manually didn't help.

harsha ( 2016-03-13 18:32:22 -0800 )edit

@harsha What solution do you mean? i wrote already in previous comment, in my case i installed firstly: odl-ovsdb-openstack, after this for DLUX i installed: odl-dlux-all odl-l2switch-switch odl-groupbasedpolicy-neutronmapper. I did this on separate machine - not openstack controller.

maciekkt ( 2016-03-14 02:43:33 -0800 )edit

@maciekkt After installing the features mentioned by you i am able to integrate. but i am facing error with keystone can you please look at the question https://ask.openstack.org/en/question/89726/openstack-and-opendaylight-integration-keystone-issue/ and provide me with some help. Thank you!

harsha ( 2016-03-14 06:42:43 -0800 )edit
0

answered 2016-05-18 18:36:47 -0800

odl_caicai gravatar image

hava any answer?

edit flag offensive delete publish link more
0

answered 2016-09-12 20:54:35 -0800

Hi, I am also trying to integrate openstack neutron and opendaylight, you can not launch an instance becaues of failing to bind port,which associating with opendaylight, so does networking-odl, maybe you setup networking-odl through pip, then you can find in $PYTHON/site-packages, but when you cat $NETWORKINGODL/ml2/mechdriver.py, there is no such function named bindport, so, it is the problem of networking-odl, maybe you can setup networking-odl through source file,then backup $NETWORKINGODL, then through pip(maybe something needed install for neutron ) ,and then replace $NETWORK_ODL with your backup.

edit flag offensive delete publish link more
0

answered 2016-09-13 21:09:24 -0800

90.suman gravatar image

updated 2016-09-13 22:06:46 -0800

I suggest you do not install using pip. Try git clone https://github.com/openstack/networki... -b stable/liberty. sudo python setup.py install

On ODL side, only odl-ovsdb-openstack feature is required for integration. If you want GUI ,you can install odl-dlux-core/all.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-03-09 03:38:25 -0800

Seen: 431 times

Last updated: Sep 13 '16