Ask Your Question
1

integrating with OpenDayLight

asked 2015-02-18 05:00:03 -0600

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/OpenStack_and_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 do_upgrade_downgrade do_alembic_command(config, cmd, revision, sql=CONF.command.sql) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade script.run_env() File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 199, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 199, in load_python_file module = load_module(module_id, path) File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 55, in load_module mod = imp.load_source(module_id, path, fp) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module> importutils.import_class(class_path) File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", line 33, in import_class traceback.format_exception(*sys.exc_info()))) 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 import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])

What is the solution?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-18 07:03:24 -0600

Janki gravatar image

Got the answer. Made following changes in /etc/neutron/neutron.conf file on control node

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin service_plugin = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

I also recreated neutron database user.

I am able to create network, router.

Instances are not attaching to network. Can anyone tell the reason and solution?

edit flag offensive delete link more
0

answered 2016-05-27 12:54:46 -0600

jjose gravatar image

Hi,

I am getting the same error.

When I do, #neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno

Output:

No handlers could be found for logger "neutron.common.legacy" INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. No such revision 'juno'

When I do, #neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head

Output: No handlers could be found for logger "neutron.common.legacy" INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. INFO [alembic.migration] Running upgrade None -> folsom, folsom initial database 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 do_upgrade_downgrade do_alembic_command(config, cmd, revision, sql=CONF.command.sql) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, kwargs) File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade script.run_env() File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 199, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 199, in load_python_file module = load_module(module_id, path) File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 55, in load_module mod = imp.load_source(module_id, path, fp) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py", line 103, in <module> run_migrations_online() File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py", line 87, in run_migrations_online options=build_options()) File "<string>", line 7, in run_migrations File "/usr/lib/python2.7/dist-packages/alembic/environment.py", line 652, in run_migrations self.get_context().run_migrations(kw) File "/usr/lib/python2.7/dist-packages/alembic/migration.py", line 225, in run_migrations change(kw) File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/versions/folsom_initial.py", line 82, in upgrade upgrade_base() File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/versions/folsom_initial.py", line 119, in upgrade_base sa.PrimaryKeyConstraint('id') File "<string>", line 7, in create_table File "/usr/lib/python2.7/dist-packages/alembic/operations.py", line 647, in create_table self._table(name, *columns, *kw) File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 149, in create_table self._exec(schema.CreateTable(table)) File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 76, in _exec conn.execute(construct, multiparams, *params) File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 662, in execute params) File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 720, in _execute_ddl compiled File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 874, in _execute_context context) File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1024, in _handle_dbapi_exception exc_info File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py ... (more)

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2015-02-18 05:00:03 -0600

Seen: 500 times

Last updated: May 27 '16