Ask Your Question
0

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/cli.py", line 23, in <module>
    from tacker.db.migration.models import head  # noqa
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/migration/models/head.py", line 25, in <module>
    from tacker.db.nfvo import nfvo_db  # noqa
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/nfvo/nfvo_db.py", line 28, in <module>
    from tacker.db.vm import vm_db
  File "/usr/local/lib/python2.7/dist-packages/tacker/db/vm/vm_db.py", line 25, in <module>
    from tacker import context as t_context
  File "/usr/local/lib/python2.7/dist-packages/tacker/context.py", line 26, in <module>
    from tacker import policy
  File "/usr/local/lib/python2.7/dist-packages/tacker/policy.py", line 55, in <module>
    cfg.CONF.import_opt('policy_file', 'tacker.common.config')
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2355, in import_opt
    __import__(module_str)
  File "/usr/local/lib/python2.7/dist-packages/tacker/common/config.py", line 24, in <module>
    import oslo_messaging
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/__init__.py", line 17, in <module>
    from .notify import *
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/__init__.py", line 27, in <module>
    from .notifier import *
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/notifier.py", line 29, in <module>
    from oslo_messaging import serializer as msg_serializer
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/serializer.py", line 67, in <module>
    @removals.removed_class("RequestContextSerializer",
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]
                        [--version]
                        [--database-connection DATABASE_CONNECTION]
                        [--database-engine DATABASE_ENGINE]
                        {current,history,branches,check_migration,upgrade,downgrade,stamp,revision}
                        ...
tacker-db-manage: error: too few arguments

Anything related to oslo messaging ?

edit retag flag offensive close merge delete

Comments

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
0

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

Hi,

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

Guide: https://github.com/openstack/tacker/blob/master/doc/source/install/manual_installation.rst

Regards

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 132 times

Last updated: Jun 07 '16