fanupup's profile - activity

2020-04-29 09:53:46 -0500 received badge  Notable Question (source)
2020-04-25 13:54:20 -0500 received badge  Popular Question (source)
2020-04-23 11:24:42 -0500 asked a question Failed to populate Neutron databas

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>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 656, in main
    return_val |= bool(CONF.command.func(config, CONF.command.name))
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 178, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 640, in run_sanity_checks
    script_dir.run_env()
  File "/usr/lib/python2.7/site-packages/alembic/script/base.py", line 416, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/site-packages/alembic/util/compat.py", 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/env.py", line 16, in <module>
    from neutron_lib.db import model_base
  File "/usr/lib/python2.7/site-packages/neutron_lib/__init__.py", line 15, in <module>
    from neutron_lib.db import api  # noqa
  File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 420, in <module>
    @event.listens_for(orm.session.Session, "pending_to_persistent")
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/api.py", line 124, in decorate
    listen(target, identifier, fn, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/api.py", line 89, in listen
    _event_key(target, identifier, fn).listen(*args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/api.py", 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