Ask Your Question
0

Upgrade from newton to ocata

asked 2017-04-25 03:03:16 -0500

bardhi232 gravatar image

Hello,

I am trying to upgrade from newton to ocata. Everything goes well except the compute nodes. When i remove the newton package sources and add the ocata sources and run the command to upgrade all the packages it fails to the nova-compute upgrade. From the installation log i can understand that there is something going on with the local nova.sqlite database that it cannot be upgraded properly. I tried removing the nova.sqlite database and then the installation proceeds, but then nova-compute service doesn't work properly and i cannot manage the current VMs that have been created with the newton release. The installation log is below. If someone could help it would be great. Thank you

Reading package lists...
Building dependency tree... 
Reading state information...
nova-compute is already the newest version (2:15.0.2-0ubuntu1~cloud0).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Setting up nova-common (2:15.0.2-0ubuntu1~cloud0) ...



ERROR: could not access cell mapping database - has api db been created?
An error has occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1594, in main
  ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 644, in sync
  return migration.db_sync(version)
File "/usr/lib/python2.7/dist-packages/nova/db/migration.py", line 26, in db_sync
 return IMPL.db_sync(version=version, database=database, context=context)
File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.py", line 57, in db_sync
  repository, version)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 186, in upgrade
  return _migrate(url, repository, version, upgrade=True, err=err, **opts)
File "<decorator-gen-15>", line 2, in _migrate
File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 160, in with_engine
  return f(*a, **kw)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 366, in _migrate
 schema.runchange(ver, change, changeset.step)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 93, in runchange
 change.run(self.engine, step)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/script/py.py", line 148, in run
 script_func(engine)
File "/usr/lib/python2.7/dist-
 packages/nova/db/sqlalchemy/migrate_repo/versions/345_require_online_migration_completion.py", line 44, in upgrade
 raise exception.ValidationError(detail=msg)
ValidationError: Migration cannot continue until all these have been migrated to the api database. Please run `nova-manage db online_migrations' on Newton code before continuing.There are still 5 unmigrated flavors. 

dpkg: error processing package nova-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nova-compute:
nova-compute depends on nova-common (= 2:15.0.2-0ubuntu1~cloud0); however:
Package nova-common is not configured yet.

dpkg: error processing package nova-compute (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of nova-compute-libvirt: nova-compute-libvirt depends on nova-compute (= 2:15 ... (more)

edit retag flag offensive close merge delete

Comments

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-25 04:38:53 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-05 07:24:37 -0500

lost007 gravatar image

Sorry I don't have an answer, but can you please give me the procedure of upgrading from newton to ocata

edit flag offensive delete link more

Comments

You have to read the release notes. For example for Nova: https://docs.openstack.org/releasenot.... Skip down to Upgrade Notes.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-07 18:20:13 -0500 )edit

thanks a lot

lost007 gravatar imagelost007 ( 2017-06-08 02:34:20 -0500 )edit

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: 2017-04-25 03:03:16 -0500

Seen: 638 times

Last updated: Jun 05 '17