Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Mirantis fuel 9 update to 9.1 result in an error

I am running into a serious error while truing to update Fuel 9 from 9 to 9.1. I am following the guide but when I run this step:

update-prepare prepare master

I get an error message 10 mintutes after:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
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/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, cause=cause)
  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)
sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) deadlock detected
DETAIL:  Process 21789 waits for AccessExclusiveLock on relation 16893 of database 16388; blocked by process 23420.
Process 23420 waits for AccessShareLock on relation 17749 of database 16388; blocked by process 21789.
HINT:  See server log for query details.
[SQL: "ALTER TABLE releases ADD COLUMN nic_attributes TEXT DEFAULT '{}' NOT NULL"]

Tried rebooting fuel before applying and same error again. Any help would be appreciated.

Mirantis fuel 9 update to 9.1 result in an error

I am running into a serious error while truing trying to update Fuel 9 from 9 to 9.1. I am following the guide but when I run this step:

update-prepare prepare master

I get an error message 10 mintutes after:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
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/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, cause=cause)
  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)
sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) deadlock detected
DETAIL:  Process 21789 waits for AccessExclusiveLock on relation 16893 of database 16388; blocked by process 23420.
Process 23420 waits for AccessShareLock on relation 17749 of database 16388; blocked by process 21789.
HINT:  See server log for query details.
[SQL: "ALTER TABLE releases ADD COLUMN nic_attributes TEXT DEFAULT '{}' NOT NULL"]

Tried rebooting fuel before applying and same error again. Any help would be appreciated.

Mirantis fuel Fuel 9 update to 9.1 result in an error

I am running into a serious error while trying to update Fuel 9 from 9 to 9.1. I am following the guide (https://docs.mirantis.com/openstack/fuel/fuel-9.1/release-notes/index.html) but when I run this step:step 6:

update-prepare prepare master

I get an error message 10 mintutes after:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
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/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, cause=cause)
  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)
sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) deadlock detected
DETAIL:  Process 21789 waits for AccessExclusiveLock on relation 16893 of database 16388; blocked by process 23420.
Process 23420 waits for AccessShareLock on relation 17749 of database 16388; blocked by process 21789.
HINT:  See server log for query details.
[SQL: "ALTER TABLE releases ADD COLUMN nic_attributes TEXT DEFAULT '{}' NOT NULL"]

Tried rebooting fuel before applying and same error again. Any help would be appreciated.

Mirantis Fuel fuel 9 update to 9.1 result in an error

I am running into a serious error while trying to update Fuel 9 from 9 to 9.1. I am following the guide (https://docs.mirantis.com/openstack/fuel/fuel-9.1/release-notes/index.html) but when I run this step 6:

update-prepare prepare master

I get an error message 10 mintutes after:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
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/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, cause=cause)
  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)
sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) deadlock detected
DETAIL:  Process 21789 waits for AccessExclusiveLock on relation 16893 of database 16388; blocked by process 23420.
Process 23420 waits for AccessShareLock on relation 17749 of database 16388; blocked by process 21789.
HINT:  See server log for query details.
[SQL: "ALTER TABLE releases ADD COLUMN nic_attributes TEXT DEFAULT '{}' NOT NULL"]

Tried rebooting fuel before applying and same error again. Any help would be appreciated.