Issue While Creating Neutron Database Schema [closed]
Hi ,
I am trying to Configure neutron as part of Openstack implementation and have got stuck at this point. As per the Docs we used to initialize the database's of different services like keystone , nova etc using openstack-db --init . But for neutron its not mentioned about any initializing.
http://docs.openstack.org/icehouse/in... .
I have tried following two commands to initialize the database but both
openstack-db --init --service neutron --password **********
and
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head
Error Which I get >
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.6/site-packages/neutron/db/migration/cli.py", line 169, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command
getattr(alembic_command, cmd)(config, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/alembic/command.py", line 189, in current
script.run_env()
File "/usr/lib/python2.6/site-packages/alembic/script.py", line 191, in run_env
util.load_python_file(self.dir, 'env.py')
File "/usr/lib/python2.6/site-packages/alembic/util.py", line 186, in load_python_file
module = imp.load_source(module_id, path, open(path, 'rb'))
File "/usr/lib/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module>
importutils.import_class(class_path)
File "/usr/lib/python2.6/site-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.6/site-packages/neutron/openstack/common/importutils.py", line 28, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])
What is value of service_plugins in neutron.conf when you run neutron-db-manage ?
View also https://ask.openstack.org/en/question...
Thank you for the update. I have checked those urls..One of my doubt is..Should we initialize the neutron database after creating it.
I've just done Multi Node IceHouse Neutron ML2&OVS&GRE Setup via packstack:-
(more)I am not Using Packstack. So I think I need to initialize the database manually. I have tried it with it with openstack-db and neutron-db-manage , both are giving same error which I have mentioned above.