Failed to populate Neutron databas

asked 2020-04-23 11:24:21 -0600

fanupup gravatar image

updated 2020-04-24 02:47:22 -0600

eblock gravatar image

I have follow the Openstack install guide on the Docs. In section Install and configure controller node of Neutron

When execute

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

error occur

File "/usr/bin/neutron-db-manage", line 10, in <module>
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/", line 656, in main
    return_val |= bool(CONF.command.func(config,
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/", line 178, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/", line 640, in run_sanity_checks
  File "/usr/lib/python2.7/site-packages/alembic/script/", line 416, in run_env
    util.load_python_file(self.dir, '')
  File "/usr/lib/python2.7/site-packages/alembic/util/", line 93, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/site-packages/alembic/util/", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/", line 16, in <module>
    from neutron_lib.db import model_base
  File "/usr/lib/python2.7/site-packages/neutron_lib/", line 15, in <module>
    from neutron_lib.db import api  # noqa
  File "/usr/lib/python2.7/site-packages/neutron_lib/db/", line 420, in <module>
    @event.listens_for(orm.session.Session, "pending_to_persistent")
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/", line 124, in decorate
    listen(target, identifier, fn, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/", line 89, in listen
    _event_key(target, identifier, fn).listen(*args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/", line 28, in _event_key
    (identifier, target))
sqlalchemy.exc.InvalidRequestError: No such event 'pending_to_persistent' for target '<class 'sqlalchemy.orm.session.Session'>'

I'd appreciate that if you could sort it out

edit retag flag offensive close merge delete


Which version of openstack are you trying to deploy?

eblock gravatar imageeblock ( 2020-04-24 02:45:19 -0600 )edit