Ask Your Question
1

why do I get "'module' object has no attribute 'OpenDaylightMechanismDriver'"

asked 2016-02-10 17:44:46 -0500

yby-developer gravatar image

I'm trying to run an odl-server from devstack on a controller/network node. The compute services are running on different nodes. This is openstack Kilo. stack.sh finished running, but I observe errors in the logs, indicating a problem with the mechanism driver.

The trace is:

2016-02-11 00:47:00.144 24282 ERROR stevedore.extension [-] Could not load 'opendaylight': 'module' object has no attribute 'OpenDaylightMechanismDriver'
2016-02-11 00:47:00.145 24282 ERROR stevedore.extension [-] 'module' object has no attribute 'OpenDaylightMechanismDriver'
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension Traceback (most recent call last):
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension   File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension     verify_requirements,
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension   File "/usr/local/lib/python2.7/dist-packages/stevedore/named.py", line 123, in _load_one_plugin
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension     verify_requirements,
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension   File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension     plugin = ep.resolve()
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2390, in resolve
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension     raise ImportError(str(exc))
2016-02-11 00:47:00.145 24282 TRACE stevedore.extension ImportError: 'module' object has no attribute 'OpenDaylightMechanismDriver'

The relevant section from the local.conf is:

# Disable Nova-Network and Nova-Compute
disable_service n-net
disable_service n-cpu

# Enable nova-consoleauth
enable_service n-cauth
# Enable Neutron-Server services
enable_service q-svc
enable_service q-dhcp
enable_service q-meta
enable_service q-agt
disable_service q-l3

# ODL
enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl stable/kilo
ODL_MODE=manual
ODL_L3=True
enable_service odl-server
#enable_service odl-compute

# post-config
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
service_plugins = networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-11 03:10:30 -0500

Vinoth gravatar image

updated 2016-02-11 03:17:26 -0500

This is My blog on opendaylight integration with OpenStack.

This could help somewhere. http://www.hellovinoth.com/?p=270

Follow this steps to solve the OpenDaylightMechanismDriver issue.

Install networking_odl python module.

$ apt-get install python-pip
$ pip install networking_odl
edit flag offensive delete link more

Comments

Even though the module was already installed, I re-installed it (pip install networking_odl), restarted the neutron server, but I still observe these errors.

yby-developer gravatar imageyby-developer ( 2016-02-12 14:19:14 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-02-10 17:44:46 -0500

Seen: 376 times

Last updated: Feb 11 '16