Integration with OpenStack

asked 2015-02-18 03:02:08 -0700

Janki gravatar image

Hi

I have 3 node architecture set up of OpenStack and now I want to integaret it with OpenDayLight. I am following this link https://wiki.opendaylight.org/view/OpenStackand OpenDaylight ( https://wiki.opendaylight.org/view/Op... )

I changed the below line (beacuse I didnot have /usr/share/neutron/neutron-dist.conf file.) neutron-db-manage --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugin.ini upgrade head

to

neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head

I am getting below error.

No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 169, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 82, in doupgradedowngrade doalembiccommand(config, cmd, revision, sql=CONF.command.sql) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 60, in doalembiccommand getattr(alembiccommand, cmd)(config, args, *kwargs) File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade script.runenv() File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 199, in runenv util.loadpythonfile(self.dir, 'env.py') File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 199, in loadpythonfile module = loadmodule(moduleid, path) File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 55, in loadmodule mod = imp.loadsource(moduleid, path, fp) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembicmigrations/env.py", line 42, in <module> importutils.import</module>class(classpath) File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", line 33, in importclass traceback.formatexception(*sys.excinfo()))) ImportError: Class ml2 cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", line 28, in importclass\n import(modstr)\n', 'ValueError: Empty module name\n'])</module>

What is the solution?

edit retag flag offensive close merge delete