Ask Your Question
0

Tacker working with Mitaka

asked 2017-01-19 03:11:26 -0500

ashish235 gravatar image

Hi,

Can I have tacker working with Mitaka release? I 've a Mitaka openstack setup (Not a devstack setup) with Heat working fine. I 'm trying to install tacker for that Setup.

Well I took a check-out with from the stable/mitaka branch and installed tacker but it's refusing to start. The tox command to generate sample conf file doesn't work here and also the bash script for generating conf file is also missing for this release.

2017-01-19 14:30:27.780 23147 ERROR tacker.service [-] Unrecoverable error: please check log for details.
2017-01-19 14:30:27.780 23147 TRACE tacker.service Traceback (most recent call last):
2017-01-19 14:30:27.780 23147 TRACE tacker.service   File "/usr/local/lib/python2.7/dist-packages/tacker/service.py", line 88, in serve_wsgi
2017-01-19 14:30:27.780 23147 TRACE tacker.service     service.start()
2017-01-19 14:30:27.780 23147 TRACE tacker.service   File "/usr/local/lib/python2.7/dist-packages/tacker/service.py", line 59, in start
2017-01-19 14:30:27.780 23147 TRACE tacker.service     self.wsgi_app = _run_wsgi(self.app_name)
2017-01-19 14:30:27.780 23147 TRACE tacker.service   File "/usr/local/lib/python2.7/dist-packages/tacker/service.py", line 98, in _run_wsgi
2017-01-19 14:30:27.780 23147 TRACE tacker.service     app = config.load_paste_app(app_name)
2017-01-19 14:30:27.780 23147 TRACE tacker.service   File "/usr/local/lib/python2.7/dist-packages/tacker/common/config.py", line 149, in load_paste_app
2017-01-19 14:30:27.780 23147 TRACE tacker.service     raise RuntimeError(msg)
2017-01-19 14:30:27.780 23147 TRACE tacker.service RuntimeError: Unable to load tacker from configuration file /usr/local/etc/tacker/api-paste.ini.
2017-01-19 14:30:27.780 23147 TRACE tacker.service
ERROR: Unable to load tacker from configuration file /usr/local/etc/tacker/api-paste.ini.

So I thought of giving a try with the stable/newton version of tacker and that did cause DB inconsistencies.

2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource     cursor.execute(statement, parameters)
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource   File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource     self.errorhandler(self, exc, value)
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource   File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource     raise errorclass, errorvalue
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource OperationalError: (_mysql_exceptions.OperationalError) (1054, "Unknown column 'vnfd.infra_driver' in 'field list'") [SQL: u'SELECT vnfd.tenant_id AS vnfd_tenant_id, vnfd.id AS vnfd_id, vnfd.created_at AS vnfd_created_at, vnfd.updated_at AS vnfd_updated_at, vnfd.deleted_at AS vnfd_deleted_at, vnfd.name AS vnfd_name, vnfd.description AS vnfd_description, vnfd.infra_driver AS vnfd_infra_driver, vnfd.mgmt_driver AS vnfd_mgmt_driver \nFROM vnfd \nWHERE vnfd.deleted_at IS NULL']
2016-12-26 13:39:22.641 12764 ERROR tacker.api.v1.resource
2016-12-26 13:39:22.644 12764 INFO tacker.wsgi [req-f3862f6b-22d6-4d35-a54b-3e51d76c48ad ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-03-01 04:48:48 -0500

Mohit gravatar image

Set service_plugins = tacker.vm.plugin.VNFMPlugin in tacker.conf ,recreate the database and do /usr/local/bin/tacker-db-manage --config-file /usr/local/etc/tacker/tacker.conf upgrade head

edit flag offensive delete link more
0

answered 2017-01-19 03:42:43 -0500

DarkKnight gravatar image

I am using Tacker on Mitaka, so to answer you yes it works fine.

On the second part, you may delete the tacker database, recreate the database and run "/usr/local/bin/tacker-db-manage --config-file /usr/local/etc/tacker/tacker.conf upgrade head". Link Hope it helps.

edit flag offensive delete link more

Comments

@Darknight, thanks for the reply. I used the steps only from that link which you shared. Also as per your suggestion, I did drop the tacker database and then re-created again. Still having the same issue.

Can you please share your tacker.conf file? I think that is the culprit here.

ashish235 gravatar imageashish235 ( 2017-01-19 06:32:23 -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: 2017-01-19 03:11:26 -0500

Seen: 154 times

Last updated: Mar 01 '17