neutron-db-manage python importerror
Centos 6.5; following: http://docs.openstack.org/havana/inst...
It seems I need to create the schema in the empty neutron database, however when I run:
neutron-db-manage --config-file /etc/neutron/neutron.conf stamp head
I get the 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.6/site-packages/neutron/db/migration/cli.py", line 143, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 86, in do_stamp
sql=CONF.command.sql)
File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 59, in do_alembic_command
getattr(alembic_command, cmd)(config, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/alembic/command.py", line 214, in stamp
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 44, in <module>
importutils.import_class(class_path)
File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 35, in import_class
traceback.format_exception(*sys.exc_info())))
ImportError: Class cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 30, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])
I have a correct and tested database string in /etc/neutron/neutron.conf , along with the keystore auth, qpid section, etc/neutron/api-paste.ini authtoken, etc.
Any ideas on what it's looking for that's missing? All references to this error are people who did not have neutron.conf in a --config-file statement.
Contents of neutron.conf: [DEFAULT]
rpc_backend = neutron.openstack.common.rpc.impl_qpid qpid_hostname = localhost qpid_port = 5672 qpid_username = guest qpid_password = guest
[quotas]
[agent] root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken] auth_host = localhost auth_protocol = http auth_port = 35357 admin_tenant_name = service admin_user = neutron admin_password = neutronpassword auth_url = http://localhost:35357/v2.0 auth_strategy = keystone signing_dir = $state_path/keystone-signing
[database] connection = postgresql://neutron:neutronpassword@localhost/neutron
[service_providers] api_paste_config = /etc/neutron/api-paste.ini