Ask Your Question
0

Error terminating instances on OpenStack with OpenDaylight L3

asked 2015-06-04 10:19:50 -0700

ralvarep gravatar image

updated 2015-06-04 10:51:04 -0700

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 ...
(more)
edit retag flag offensive close merge delete

Comments

I see the same issue...When i try to terminate an instance, it doesn't actually get removed form the list, instead it goes to an error state..I see the same trace back as well..

rijilabra ( 2015-06-09 21:29:26 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-08 01:41:03 -0700

pbraun gravatar image

Hi,

I had the same issue.

However after changing L3 plugin to Openstack provided one, the problem has solved.

Part of local.conf:

# ODL_L3=True
ODL_L3=False

[[post-config|$NEUTRON_CONF]]
[DEFAULT]
# service_plugins = networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin
service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

Peter

edit flag offensive delete publish link more

Comments

Hi pbraun! And with ODL_L3=FALSE is OpenDaylight manage L3? I suposse that if you run the command "ip netns" and you see router name spaces so OpenDaylight is not manage L3.

ralvarep ( 2015-07-16 00:55:54 -0700 )edit

I think in this case ODL doesn't manage L3.

pbraun ( 2015-07-17 03:09:21 -0700 )edit

I would like to try again with Lithium. Maybe with Lithium this problem is fixed... Are you using Helium, aren't you?

ralvarep ( 2015-07-17 14:32:17 -0700 )edit

Hi Raul..Were you able to resolve this issue?..I am still facing the issue..even with Lithium

rijilabra ( 2015-08-26 23:18:55 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-06-04 10:19:50 -0700

Seen: 859 times

Last updated: Jul 08 '15