[Openstack-operators] [NFV] [Tacker] Problem installing Tacker on Mitaka when creating DB

Sridhar Ramaswamy srics.r at gmail.com
Wed Jun 29 18:38:19 UTC 2016


Hi Pedro,

We have a bug against this,

https://bugs.launchpad.net/tacker/+bug/1594807

.. and a fix is in the works. Meanwhile, the workaround is to downgrade to
an older MariaDB version.

- Sridhar

On Wed, Jun 29, 2016 at 10:27 AM, Pedro Sousa <pgsousa at gmail.com> wrote:

> Hi all,
>
> I'm trying to install tacker on mitaka Centos 7.2 RDO following this
> howto:
> http://docs.openstack.org/developer/tacker/install/manual_installation.html
> .
>
> I'm having a DB error  when I run the command "tacker-db-manage
> --config-file /etc/tacker/tacker.conf upgrade head":
>
> root at overcloud-controller-0 tacker-0.3.1]# tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head
> INFO  [alembic.runtime.migration] Context impl MySQLImpl.
> INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
> INFO  [alembic.runtime.migration] Running upgrade  -> 1c6b0d82afcd, add tables for tacker framework
> INFO  [alembic.runtime.migration] Running upgrade 1c6b0d82afcd -> 81ffa86020d, rpc_proxy
> INFO  [alembic.runtime.migration] Running upgrade 81ffa86020d -> 4c31092895b8, empty message
> INFO  [alembic.runtime.migration] Running upgrade 4c31092895b8 -> 13c0e0661015, add descrition to vnf
> INFO  [alembic.runtime.migration] Running upgrade 13c0e0661015 -> 5958429bcb3c, modify datatype of value
> INFO  [alembic.runtime.migration] Running upgrade 5958429bcb3c -> 12a57080b277, Add Service related dbs
> INFO  [alembic.runtime.migration] Running upgrade 12a57080b277 -> 12a57080b278, Alter devices
> Traceback (most recent call last):
>   File "/bin/tacker-db-manage", line 10, in <module>
>     sys.exit(main())
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/cli.py", line 153, in main
>     CONF.command.func(config, CONF.command.name)
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/cli.py", line 67, in do_upgrade_downgrade
>     do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/cli.py", line 45, in do_alembic_command
>     getattr(alembic_command, cmd)(config, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/alembic/command.py", line 174, in upgrade
>     script.run_env()
>   File "/usr/lib/python2.7/site-packages/alembic/script/base.py", line 397, in run_env
>     util.load_python_file(self.dir, 'env.py')
>   File "/usr/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 81, in load_python_file
>     module = load_module_py(module_id, path)
>   File "/usr/lib/python2.7/site-packages/alembic/util/compat.py", line 79, in load_module_py
>     mod = imp.load_source(module_id, path, fp)
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/alembic_migrations/env.py", line 84, in <module>
>     run_migrations_online()
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/alembic_migrations/env.py", line 76, in run_migrations_online
>     context.run_migrations()
>   File "<string>", line 8, in run_migrations
>   File "/usr/lib/python2.7/site-packages/alembic/runtime/environment.py", line 797, in run_migrations
>     self.get_context().run_migrations(**kw)
>   File "/usr/lib/python2.7/site-packages/alembic/runtime/migration.py", line 312, in run_migrations
>     step.migration_fn(**kw)
>   File "/usr/lib/python2.7/site-packages/tacker/db/migration/alembic_migrations/versions/12a57080b278_alter_devices.py", line 36, in upgrade
>     nullable=False)
>   File "<string>", line 8, in alter_column
>   File "<string>", line 3, in alter_column
>   File "/usr/lib/python2.7/site-packages/alembic/operations/ops.py", line 1414, in alter_column
>     return operations.invoke(alt)
>   File "/usr/lib/python2.7/site-packages/alembic/operations/base.py", line 318, in invoke
>     return fn(self, operation)
>   File "/usr/lib/python2.7/site-packages/alembic/operations/toimpl.py", line 53, in alter_column
>     **operation.kw
>   File "/usr/lib/python2.7/site-packages/alembic/ddl/mysql.py", line 66, in alter_column
>     else existing_autoincrement
>   File "/usr/lib/python2.7/site-packages/alembic/ddl/impl.py", line 118, in _exec
>     return conn.execute(construct, *multiparams, **params)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
>     return meth(self, multiparams, params)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection
>     return connection._execute_ddl(self, multiparams, params)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 968, in _execute_ddl
>     compiled
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
>     context)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
>     exc_info
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
>     reraise(type(exception), exception, tb=exc_tb)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
>     context)
>   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
>     cursor.execute(statement, parameters)
>   File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
>     self.errorhandler(self, exc, value)
>   File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
>     raise errorclass, errorvalue
> sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1832, "Cannot change column 'device_id': used in a foreign key constraint 'deviceattributes_ibfk_1'") [SQL: u'ALTER TABLE deviceattributes MODIFY device_id VARCHAR(255) NOT NULL']
>
>
> Any hint?
>
> Regards,
> Pedro Sousa
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160629/8f613bcf/attachment.html>


More information about the OpenStack-operators mailing list