Zun

error when Install and configure controller node in zun

Bug #1982507 reported by massimo vescio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
New
Undecided
Unassigned

Bug Description

After installing Openstack with the official guide (Devstack) on the Ubuntu 20.04 controller, I try to install Zun as described in the official guide. After the instruction "su -s / bin / sh -c" zun-db-manage upgrade "zun" used to populate the database, the following error appears:
Traceback (most recent call last):
  File "/ usr / local / bin / zun-db-manage", line 10, in <module>
    sys.exit (main ())
  File "/usr/local/lib/python3.8/dist-packages/zun/cmd/db_manage.py", line 67, in main
    CONF.command.func ()
  File "/usr/local/lib/python3.8/dist-packages/zun/cmd/db_manage.py", line 29, in do_upgrade
    migration.upgrade (CONF.command.revision)
  File "/usr/local/lib/python3.8/dist-packages/zun/db/migration.py", line 35, in upgrade
    return get_backend (). upgrade (version)
  File "/usr/local/lib/python3.8/dist-packages/zun/db/sqlalchemy/migration.py", line 75, in upgrade
    get_manager (). upgrade (version)
  File "/usr/local/lib/python3.8/dist-packages/zun/db/sqlalchemy/migration.py", line 49, in get_manager
    _MANAGER = manager.MigrationManager (migration_config)
  File "/usr/local/lib/python3.8/dist-packages/debtcollector/removals.py", line 242, in wrapper
    return f (* args, ** kwargs)
  File "/usr/local/lib/python3.8/dist-packages/oslo_db/sqlalchemy/migration_cli/manager.py", line 54, in __init__
    raise ValueError ('There must be at least one plugin active.')
ValueError: There must be at least one plugin active.

Revision history for this message
caozhzh (caozhzh) wrote :

like this https://bugs.launchpad.net/zun/+bug/1718865
in my environment,I copy the file from zun source code to python lib dir,and rerun is ok.

root@controller:/home/stack# cd /var/lib/zun/zun/zun/db/sqlalchemy
root@controller:/var/lib/zun/zun/zun/db/sqlalchemy# cp -r alembic /usr/local/lib/python3.10/dist-packages/zun/db/sqlalchemy/
root@controller:/var/lib/zun/zun/zun/db/sqlalchemy# cp alembic.ini /usr/local/lib/python3.10/dist-packages/zun/db/sqlalchemy/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.