Ask Your Question

Upgrade from newton to ocata

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

bardhi232 gravatar image


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/", line 1594, in main
  ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/python2.7/dist-packages/nova/cmd/", line 644, in sync
  return migration.db_sync(version)
File "/usr/lib/python2.7/dist-packages/nova/db/", 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/", line 57, in db_sync
  repository, version)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/", 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/", line 160, in with_engine
  return f(*a, **kw)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/", line 366, in _migrate
 schema.runchange(ver, change, changeset.step)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/", line 93, in runchange, step)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/script/", line 148, in run
File "/usr/lib/python2.7/dist-
 packages/nova/db/sqlalchemy/migrate_repo/versions/", 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


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

1 answer

Sort by ยป oldest newest most voted

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

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


You have to read the release notes. For example for Nova: Skip down to Upgrade Notes.

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

thanks a lot

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-25 03:03:16 -0600

Seen: 764 times

Last updated: Jun 05 '17