<div dir="ltr">Hi Pedro,<div><br></div><div>We have a bug against this,</div><div><br></div><div><a href="https://bugs.launchpad.net/tacker/+bug/1594807">https://bugs.launchpad.net/tacker/+bug/1594807</a><br></div><div><br></div><div>.. and a fix is in the works. Meanwhile, the workaround is to downgrade to an older MariaDB version.</div><div><br></div><div>- Sridhar</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 10:27 AM, Pedro Sousa <span dir="ltr"><<a href="mailto:pgsousa@gmail.com" target="_blank">pgsousa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all, </div><div><br></div><div>I'm trying to install tacker on mitaka Centos 7.2 RDO following this howto: <a href="http://docs.openstack.org/developer/tacker/install/manual_installation.html" target="_blank">http://docs.openstack.org/developer/tacker/install/manual_installation.html</a>. </div><div><br></div><div>I'm having a DB error when I run the command "tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head":</div><div><br></div><div><div style="color:rgb(0,0,0);font-family:'Trebuchet MS',sans-serif;font-size:15px;background:rgb(240,240,240)"><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px">root@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, <a href="http://CONF.command.name" target="_blank">CONF.command.name</a>)
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
**<a href="http://operation.kw" target="_blank">operation.kw</a>
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']
</pre></div></div><div><br></div><div>Any hint?</div><div><br></div><div>Regards,</div><div>Pedro Sousa</div><div><br></div></div>
<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br></div>