Zun

zub-db-manage upgrade get an 'ValueError: There must be at least one plugin active.' error!

Bug #1718865 reported by hu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Invalid
Undecided
Unassigned

Bug Description

root@ocata-dev-container:~/setup# zun-db-manage upgrade
Traceback (most recent call last):
  File "/usr/local/bin/zun-db-manage", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/zun/cmd/db_manage.py", line 67, in main
    CONF.command.func()
  File "/usr/local/lib/python2.7/dist-packages/zun/cmd/db_manage.py", line 29, in do_upgrade
    migration.upgrade(CONF.command.revision)
  File "/usr/local/lib/python2.7/dist-packages/zun/db/migration.py", line 35, in upgrade
    return get_backend().upgrade(version)
  File "/usr/local/lib/python2.7/dist-packages/zun/db/sqlalchemy/migration.py", line 75, in upgrade
    get_manager().upgrade(version)
  File "/usr/local/lib/python2.7/dist-packages/zun/db/sqlalchemy/migration.py", line 49, in get_manager
    _MANAGER = manager.MigrationManager(migration_config)
  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/manager.py", line 47, in __init__
    raise ValueError('There must be at least one plugin active.')
ValueError: There must be at least one plugin active.
root@ocata-dev-container:~/setup#

Setp:
install_zun: PBR_VERSION=0.0.1 pip_install $TOP_DIR/files/tarball/zun-master.zip
install_zunclient: PBR_VERSION==0.0.1 pip_install $TOP_DIR/files/tarball/python-zunclient-master.zip
configure_zun: sudo cp /tmp/zun-master/etc/zun/* $ZUN_CONF_DIR && sudo chown -R root:zun $ZUN_CONF_DIR
create_zun_conf(same as devstack)

after these steps I run: `which zun-db-manage` upgrade and get a ValueError: There must be at least one plugin active. error.

Revision history for this message
hu (sayseesea) wrote :

solve it by add missing files to the right path:
/usr/local/lib/python2.7/dist-packages/zun/db/sqlalchemy/alembic/*
/usr/local/lib/python2.7/dist-packages/zun/db/sqlalchemy/alembic.ini

description: updated
Revision history for this message
hongbin (hongbin034) wrote :

Hu, it looks you have already resolved the problem. I am going to close this bug, but please feel free to re-open it if the problem still exists.

Changed in zun:
status: New → Invalid
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.