pike neutron cannot populate database 'unexpected keyword argument 'sqlite_db''

asked 2017-10-08 08:03:12 -0500

chanhyeong gravatar image

I referenced this https://docs.openstack.org/neutron/pike/install/controller-install-ubuntu.html (document).

There is no installing process about neutron(Networking Option 2: Self-service network), so I additionally installed neutron-server neutron-plugin-ml2 neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent .
Because of dependencies, I also installed python-sqlalchemy=1.0.11+ds1-1ubuntu2 python-neutron-fwaas python-neutron neutron-common , and configured according to the document.


And I populated database, but error occur.

 root@wisetest1~# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron

No handlers could be found for logger "oslo_config.cfg"
Traceback (most recent call last):
  File "/usr/local/bin/neutron-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 750, in main
    return_val |= bool(CONF.command.func(config, CONF.command.name))
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 224, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 732, in run_sanity_checks
    script_dir.run_env()
  File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 425, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/local/lib/python2.7/dist-packages/alembic/util/compat.py", line 75, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py", line 25, in <module>
    from neutron.db.migration.models import head  # noqa
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/models/head.py", line 24, in <module>
    from neutron.db import address_scope_db  # noqa
  File "/usr/lib/python2.7/dist-packages/neutron/db/address_scope_db.py", line 22, in <module>
    from neutron.db import db_base_plugin_v2
  File "/usr/lib/python2.7/dist-packages/neutron/db/db_base_plugin_v2.py", line 41, in <module>
    from neutron.db import db_base_plugin_common
  File "/usr/lib/python2.7/dist-packages/neutron/db/db_base_plugin_common.py", line 27, in <module>
    from neutron.db import models_v2
  File "/usr/lib/python2.7/dist-packages/neutron/db/models_v2.py", line 22, in <module>
    from neutron.db import agentschedulers_db as agt
  File "/usr/lib/python2.7/dist-packages/neutron/db/agentschedulers_db.py", line 32, in <module>
    from neutron.db import agents_db
  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 41, in <module>
    from neutron.extensions import agent as ext_agent
  File "/usr/lib/python2.7/dist-packages/neutron/extensions/agent.py", line 19, in <module>
    from neutron.api import extensions
  File "/usr/lib/python2.7/dist-packages/neutron/api/extensions.py", line 35, in <module>
    from neutron import wsgi
  File "/usr/lib/python2.7/dist-packages/neutron/wsgi.py", line 41, in <module>
    from neutron.common import config
  File "/usr/lib/python2.7/dist-packages/neutron/common/config.py", line 220, in <module>
    set_db_defaults()
  File "/usr/lib/python2.7/dist-packages/neutron/common/config.py", line 218, in set_db_defaults
    max_overflow=20, pool_timeout=10)
TypeError: set_defaults() got an unexpected keyword argument 'sqlite_db'


in /etc/neutron/neutron.conf, I already changed 'connection ... (more)

edit retag flag offensive close merge delete

Comments

Uncomment sqllite in connection parameter in neutron.cof file and define your mysql user/pass string after that you can populate db if this help kindly mark this answer

billy gravatar imagebilly ( 2017-10-09 01:35:57 -0500 )edit

I said I already changed that and all about sqlite are uncommented now.

chanhyeong gravatar imagechanhyeong ( 2017-10-10 06:40:45 -0500 )edit

you have to comment that sqllite lines

billy gravatar imagebilly ( 2017-10-20 13:48:15 -0500 )edit