Ask Your Question
0

Upgrade from Mirantis 9.0 to Mirantis 9.1 failed

asked 2016-10-19 03:28:17 -0600

lperrin gravatar image

updated 2016-10-19 03:28:49 -0600

Hello guys,

I'm trying to upgrade my Fuel master from 9.0 to 9.1 following the upgrade process (https://docs.mirantis.com/openstack/f...).

But the command " update-prepare prepare master" ends with an error cause by a deadlock during the database upgrade:

INFO  [alembic.runtime.migration] Running upgrade 675105097a69 -> f2314e5d63c9, Fuel 9.1
Traceback (most recent call last):
  File "/usr/bin/nailgun_syncdb", line 9, in <module>
    load_entry_point('nailgun==9.0.0', 'console_scripts', 'nailgun_syncdb')()
  File "/usr/lib/python2.7/site-packages/nailgun/db/sqlalchemy/__init__.py", line 178, in syncdb
    do_upgrade_head()
  File "/usr/lib/python2.7/site-packages/nailgun/db/migration/__init__.py", line 106, in do_upgrade_head
    do_upgrade_head_core()
  File "/usr/lib/python2.7/site-packages/nailgun/db/migration/__init__.py", line 102, in do_upgrade_head_core
    do_alembic_command('upgrade', ALEMBIC_CONFIG, 'head')
  File "/usr/lib/python2.7/site-packages/nailgun/db/migration/__init__.py", line 56, 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/nailgun/db/migration/alembic_migrations/env.py", line 87, in <module>
    run_migrations_online()
  File "/usr/lib/python2.7/site-packages/nailgun/db/migration/alembic_migrations/env.py", line 79, 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/nailgun/db/migration/alembic_migrations/versions/fuel_9_1.py", line 56, in upgrade
    upgrade_plugin_with_nics_and_nodes_attributes()
  File "/usr/lib/python2.7/site-packages/nailgun/db/migration/alembic_migrations/versions/fuel_9_1.py", line 207, in upgrade_plugin_with_nics_and_nodes_attributes
    server_default='{}'
  File "<string>", line 8, in add_column
  File "<string>", line 3, in add_column
  File "/usr/lib/python2.7/site-packages/alembic/operations/ops.py", line 1535, in add_column
    return operations.invoke(op)
  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 123, in add_column
    schema=schema
  File "/usr/lib/python2.7/site-packages/alembic/ddl/impl.py", line 172, in add_column
    self._exec(base.AddColumn(table_name, column, schema=schema))
  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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-19 08:28:36 -0600

lperrin gravatar image

With the help from Fuel IRC channel, I was able to complete the upgrade.

Before the step 6 described here https://docs.mirantis.com/openstack/f..., follow this procedure:

systemctl stop nailgun assassind receiverd oswl_flavor_collectord oswl_image_collectord oswl_keystone_user_collectord oswl_tenant_collectord oswl_vm_collectord oswl_volume_collectord receiverd statsenderd
systemctl stop postgresql
systemctl start postgresql
manage.py syncdb
systemctl start nailgun assassind receiverd oswl_flavor_collectord oswl_image_collectord oswl_keystone_user_collectord oswl_tenant_collectord oswl_vm_collectord oswl_volume_collectord receiverd statsenderd

Then go back to step 6 and run update-prepare prepare master

edit flag offensive delete link more

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-10-19 03:28:17 -0600

Seen: 379 times

Last updated: Oct 19 '16