Ask Your Question
0

Mirantis Fuel 9 update to 9.1 result in an error

asked 2016-10-17 07:32:57 -0500

bmaltais gravatar image

updated 2016-10-18 13:23:26 -0500

rbowen gravatar image

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/f...) 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 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2016-10-19 08:31:53 -0500

lperrin gravatar image

Hello,

I got the same error and with help from Fuel IRC channel, I was able to solve it:

Before running update-prepare prepare master, run these commands to pass the deadlock:

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

Comments

The update finished without errors but the UI and the CLI does not show that the current version is 9.1:

[root@fuel ~]# fuel fuel-version api: '1' auth_required: true feature_groups: - experimental - advanced openstack_version: mitaka-9.0 release: '9.0'

Is there anything wrong?

carlosedp gravatar imagecarlosedp ( 2016-10-26 08:09:35 -0500 )edit

Yes I was asking the same question, it is kind of weird

Sofiane68 gravatar imageSofiane68 ( 2016-11-02 10:13:05 -0500 )edit
0

answered 2016-10-24 11:23:42 -0500

bmaltais gravatar image

updated 2016-10-24 11:27:44 -0500

Thank you @lperrin for the answer. It did not fully fixed the issue with the steps provided... but the following steps did:

yum-config-manager --add-repo=http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/updates/x86_64/

rpm --import http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/updates/RPM-GPG-KEY-mos9.0

yum clean all

yum install python-cudet

update-prepare prepare master

At that point you get the error. Move on with the following:

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

update-prepare prepare master

After that, no more errors. Many thanks for the list of commands.

edit flag offensive delete link more
0

answered 2016-10-25 22:05:23 -0500

updated 2016-10-25 22:06:20 -0500

Hi,

In my case the error when running the 'update-prepare prepare master' how ever the scripts will recreate/replace a new /root/.config/fuel/fuel_client.yaml using default password 'admin'.

If you changed the default password to a new password this cause the script prompt for authentication failure.

My work around:

  1. remove the fuel_client.yaml
  2. use watch command to monitor the file creation 'watch -n 1 'ls -l /root/.config/fuel/' . Once you notice the file has been created, change the password to your password defined before for accessing fuel web.
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-17 07:32:57 -0500

Seen: 849 times

Last updated: Oct 25 '16