Ask Your Question

tacker-db-manage is failing in liberty

asked 2016-06-06 06:56:47 -0500

sudharsan gravatar image

updated 2016-06-06 07:48:24 -0500

Hi ,

We have installed openstack Liberty & on the top we have installed tacker service. Populating to tacker DB got failed with below error where as it worked well with Mitaka.

In Liberty

root@controller:/usr/local/lib/python2.7/dist-packages/tacker/db# tacker-db-manage
Traceback (most recent call last):
  File "/usr/local/bin/tacker-db-manage", line 6, in <module>
    from tacker.db.migration.cli import main
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/migration/", line 23, in <module>
    from tacker.db.migration.models import head  # noqa
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/migration/models/", line 25, in <module>
    from tacker.db.nfvo import nfvo_db  # noqa
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/nfvo/", line 28, in <module>
    from tacker.db.vm import vm_db
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/vm/", line 25, in <module>
    from tacker import context as t_context
  File "/usr/local/lib/python2.7/dist-packages/tacker/", line 26, in <module>
    from tacker import policy
  File "/usr/local/lib/python2.7/dist-packages/tacker/", line 55, in <module>
    cfg.CONF.import_opt('policy_file', 'tacker.common.config')
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/", line 2355, in import_opt
  File "/usr/local/lib/python2.7/dist-packages/tacker/common/", line 24, in <module>
    import oslo_messaging
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/", line 17, in <module>
    from .notify import *
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/", line 27, in <module>
    from .notifier import *
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/", line 29, in <module>
    from oslo_messaging import serializer as msg_serializer
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/", line 67, in <module>
AttributeError: 'module' object has no attribute 'removed_class'

In Mitaka

root@openstack:/home/openstack# tacker-db-manage
usage: tacker-db-manage [-h] [--config-dir DIR] [--config-file PATH]
                        [--database-connection DATABASE_CONNECTION]
                        [--database-engine DATABASE_ENGINE]
tacker-db-manage: error: too few arguments

Anything related to oslo messaging ?

edit retag flag offensive close merge delete


Hi, I am also getting the same error while populating the tacker database. Any leads on this?

prateeka gravatar imageprateeka ( 2016-06-07 07:32:16 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-07 08:55:01 -0500


As per Tacker documentation, you must use the following command to sync database tables:

/usr/local/bin/tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head



edit flag offensive delete link more


I don't know why at Liberty docs there is not that command, is an issue on the docs. At Mitaka and master repos is defined.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-06-07 08:56:39 -0500 )edit

I have used the same command and it is failing with the above mentioned error.

prateeka gravatar imageprateeka ( 2016-06-08 00:50:32 -0500 )edit

With the upgrade head option? Check database connection at tacker.conf

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-06-08 00:55:30 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-06 06:56:47 -0500

Seen: 165 times

Last updated: Jun 07 '16