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

Error terminating instances on OpenStack with OpenDaylight L3

Hi everyone!

I am testing the OpenDaylight integration with OpenStack (with DevStack environment). I have followed the tutorial of FlavioBlog (link) using Vagrant virtual machines from https://github.com/flavio-fernandes/devstack-nodes.git. And if we run the createL3TenantAndVms.sh script, we will see the next topology: image description

But, when I want to terminate instances, I get a strange error message (Unavailable console type serial), and any instance is destroyed properly.

image description

vagrant@devstack-control:/opt/stack/logs$ nova list
+--------------------------------------+------------+--------+------------+-------------+--------
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------
| 5bcb7796-f722-4c12-9996-114da2ce41ad | 1_net1_vm1 | ERROR  | -          | NOSTATE     | net1=1.0.0.2 |
| 0f75b06e-c341-46ba-92cb-1780df0b0b73 | 1_net1_vm2 | ERROR  | -          | NOSTATE     | net1=1.0.0.3 |
|117bc663-712e-4a38-99d7-5d7631cb0a5f | 1_net2_vm1 | ERROR  | -          | NOSTATE     | net2=2.0.0.2 |
| d0a332aa-324c-445e-be8d-ee23ac5608ab | 1_net2_vm2 | ERROR  | -          | NOSTATE     | net2=2.0.0.3 |
+--------------------------------------+------------+--------+------------+-------------+--------

I think the error is related to OpenDaylight because when I send the delete action I don't see any error immediately, and in the neutron log a error occurs by eliminating ports

vagrant@devstack-control:/opt/stack/logs$ nova delete d0a332aa-324c-445e-be8d-ee23ac5608ab
Request to delete server d0a332aa-324c-445e-be8d-ee23ac5608ab has been accepted.

Neutron log at /opt/stack/logs/q-svc.log:

2015-06-04 16:45:47.927 DEBUG neutron.plugins.ml2.plugin [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Deleting port d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2 _pre_delete_port /opt/stack/neutron/neutron/plugins/ml2/plugin.py:1228

2015-06-04 16:45:47.928 DEBUG neutron.callbacks.manager [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Notify callbacks for port, before_delete _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:135

2015-06-04 16:45:47.928 DEBUG neutron.callbacks.manager [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Calling callback neutron.db.l3_db._prevent_l3_port_delete_callback _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:141

2015-06-04 16:45:47.938 DEBUG oslo_concurrency.lockutils [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Acquired semaphore "db-access" lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:391

2015-06-04 16:45:47.955 DEBUG neutron.plugins.ml2.db [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] For port d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2, host devstack-compute-1, got binding levels [<neutron.plugins.ml2.models.PortBindingLevel[object at 7fdb34174350] {port_id=u'd566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2', host=u'devstack-compute-1', level=0L, driver=u'opendaylight', segment_id=u'def41832-1c37-4b8c-8966-4d3883f75a68'}>] get_binding_levels /opt/stack/neutron/neutron/plugins/ml2/db.py:176

2015-06-04 16:45:47.958 DEBUG oslo_concurrency.lockutils [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Releasing semaphore "db-access" lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:404

################################################
#################### ERROR #####################

2015-06-04 16:45:47.958 ERROR neutron.api.v2.resource [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] delete failed

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource Traceback (most recent call last):

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     result = method(request=request, **args)

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 490, in delete

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     obj_deleter(request.context, id, **kwargs)

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1286, in delete_port

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     removed_routers = l3plugin.dvr_deletens_if_no_port(

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource AttributeError: 'OpenDaylightL3RouterPlugin' object has no attribute 'dvr_deletens_if_no_port'

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource 

2015-06-04 16:45:47.959 INFO neutron.wsgi [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] 192.168.50.21 - - [04/Jun/2015 16:45:47] "DELETE /v2.0/ports/d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2.json HTTP/1.1" 500 383 0.051409

2015-06-04 16:45:49.749 INFO neutron.wsgi [req-81a27971-1cfd-42d9-81c7-0cbde7ba2c59 neutron service] 192.168.50.20 - - [04/Jun/2015 16:45:49] "GET /v2.0/ports.json?tenant_id=c5070e1bc600457e963f21dc69910803&device_id=117bc663-712e-4a38-99d7-5d7631cb0a5f HTTP/1.1" 200 927 0.017167

Is anyone with the same problem? What is the problem? Any ideas?

Thanks in advance.

Error terminating instances on OpenStack with OpenDaylight L3

Hi everyone!

I am testing the OpenDaylight integration with OpenStack (with DevStack environment). I have followed the tutorial of FlavioBlog (link) using Vagrant virtual machines from https://github.com/flavio-fernandes/devstack-nodes.git. And if we run the createL3TenantAndVms.sh script, we will see the next topology: image description

But, when I want to terminate instances, I get a strange error message (Unavailable console type serial), and any instance is destroyed properly.

image description

vagrant@devstack-control:/opt/stack/logs$ nova list
+--------------------------------------+------------+--------+------------+-------------+--------
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------
| 5bcb7796-f722-4c12-9996-114da2ce41ad | 1_net1_vm1 | ERROR  | -          | NOSTATE     | net1=1.0.0.2 |
| 0f75b06e-c341-46ba-92cb-1780df0b0b73 | 1_net1_vm2 | ERROR  | -          | NOSTATE     | net1=1.0.0.3 |
|117bc663-712e-4a38-99d7-5d7631cb0a5f | 1_net2_vm1 | ERROR  | -          | NOSTATE     | net2=2.0.0.2 |
| d0a332aa-324c-445e-be8d-ee23ac5608ab | 1_net2_vm2 | ERROR  | -          | NOSTATE     | net2=2.0.0.3 |
+--------------------------------------+------------+--------+------------+-------------+--------

I think the error is related to OpenDaylight because when I send the delete action I don't see any error immediately, and in the neutron log a error occurs by eliminating ports

vagrant@devstack-control:/opt/stack/logs$ nova delete d0a332aa-324c-445e-be8d-ee23ac5608ab
Request to delete server d0a332aa-324c-445e-be8d-ee23ac5608ab has been accepted.

Neutron log at /opt/stack/logs/q-svc.log:

2015-06-04 16:45:47.927 DEBUG neutron.plugins.ml2.plugin [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Deleting port d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2 _pre_delete_port /opt/stack/neutron/neutron/plugins/ml2/plugin.py:1228

2015-06-04 16:45:47.928 DEBUG neutron.callbacks.manager [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Notify callbacks for port, before_delete _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:135

2015-06-04 16:45:47.928 DEBUG neutron.callbacks.manager [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Calling callback neutron.db.l3_db._prevent_l3_port_delete_callback _notify_loop /opt/stack/neutron/neutron/callbacks/manager.py:141

2015-06-04 16:45:47.938 DEBUG oslo_concurrency.lockutils [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Acquired semaphore "db-access" lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:391

2015-06-04 16:45:47.955 DEBUG neutron.plugins.ml2.db [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] For port d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2, host devstack-compute-1, got binding levels [<neutron.plugins.ml2.models.PortBindingLevel[object at 7fdb34174350] {port_id=u'd566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2', host=u'devstack-compute-1', level=0L, driver=u'opendaylight', segment_id=u'def41832-1c37-4b8c-8966-4d3883f75a68'}>] get_binding_levels /opt/stack/neutron/neutron/plugins/ml2/db.py:176

2015-06-04 16:45:47.958 DEBUG oslo_concurrency.lockutils [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] Releasing semaphore "db-access" lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:404

################################################
#################### ERROR #####################

2015-06-04 16:45:47.958 ERROR neutron.api.v2.resource [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] delete failed

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource Traceback (most recent call last):

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     result = method(request=request, **args)

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 490, in delete

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     obj_deleter(request.context, id, **kwargs)

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1286, in delete_port

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource     removed_routers = l3plugin.dvr_deletens_if_no_port(

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource AttributeError: 'OpenDaylightL3RouterPlugin' object has no attribute 'dvr_deletens_if_no_port'

2015-06-04 16:45:47.958 12494 TRACE neutron.api.v2.resource 

2015-06-04 16:45:47.959 INFO neutron.wsgi [req-45682459-c547-4d41-82d8-7c9d72e8dab0 l3user1 l3tenant1] 192.168.50.21 - - [04/Jun/2015 16:45:47] "DELETE /v2.0/ports/d566cd1b-fa7a-4f8e-b513-70fb3d5fbcb2.json HTTP/1.1" 500 383 0.051409

2015-06-04 16:45:49.749 INFO neutron.wsgi [req-81a27971-1cfd-42d9-81c7-0cbde7ba2c59 neutron service] 192.168.50.20 - - [04/Jun/2015 16:45:49] "GET /v2.0/ports.json?tenant_id=c5070e1bc600457e963f21dc69910803&device_id=117bc663-712e-4a38-99d7-5d7631cb0a5f HTTP/1.1" 200 927 0.017167

Is anyone with the same problem? error? What is the problem? Any ideas?

Thanks in advance.