net-create mechanism driver error

asked 2015-12-08 23:46:37 -0800

Emad gravatar image

updated 2015-12-09 06:02:29 -0800

I just integrated openstack with opendaylight, however after neutron net-create ext-net I get mechanism driver error.

controller@controller-std:~/networking-odl$ neutron net-create ext-net
500-{u'NeutronError': {u'message': u'create_network_postcommit failed.', u'type': u'MechanismDriverError', u'detail': u''}}

Do I need to install networking_odl package? Because I remember I needed this for devstack. If I need this package then, for stable/icehouse I get the following error when sudo python setup.py install:

controller@controller-std:~/networking-odl$ sudo python setup.py install
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 109, in pbr
    attrs = util.cfg_to_args(path)
  File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 230, in cfg_to_args
    hook_fn = resolve_name(hook)
  File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 185, in resolve_name
    raise ImportError(name)
ImportError: neutron.hooks.setup_hook
error in setup command: Error parsing /home/controller/networking-odl/setup.cfg: ImportError: neutron.hooks.setup_hook

And here is the neutron log:

2015-12-09 15:46:08.410 1188 INFO neutron.common.config [-] Logging enabled!
2015-12-09 15:46:08.413 1188 INFO neutron.common.config [-] Config paste file: /etc/neutron/api-paste.ini
2015-12-09 15:46:08.455 1188 INFO neutron.manager [-] Loading core plugin: neutron.plugins.ml2.plugin.Ml2Plugin
2015-12-09 15:46:08.575 1188 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['flat', 'gre']
2015-12-09 15:46:08.634 1188 INFO neutron.plugins.ml2.drivers.type_flat [-] Allowable flat physical_network names: []
2015-12-09 15:46:08.636 1188 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'gre']
2015-12-09 15:46:08.636 1188 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'gre']
2015-12-09 15:46:08.636 1188 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['gre']
2015-12-09 15:46:08.637 1188 INFO neutron.plugins.ml2.managers [-] Configured mechanism driver names: ['opendaylight']
2015-12-09 15:46:08.637 1188 ERROR stevedore.extension [-] Could not load 'opendaylight': No module named opendaylight.driver
2015-12-09 15:46:08.637 1188 ERROR stevedore.extension [-] No module named opendaylight.driver
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension Traceback (most recent call last):
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension     verify_requirements,
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 123, in _load_one_plugin
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension     verify_requirements,
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 177, in _load_one_plugin
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension     plugin = ep.load(require=verify_requirements)
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2015-12-09 15:46:08.637 1188 TRACE stevedore.extension ImportError ...
(more)
edit retag flag offensive close merge delete