Revision history [back]

click to hide/show revision 1
initial version

Upgrade from newton to ocata


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.0.2-0ubuntu1~cloud0); however: Package nova-compute is not configured yet.

dpkg: error processing package nova-compute-libvirt (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of nova-compute-kvm: nova-compute-kvm depends on nova-compute-libvirt (= 2:15.0.2-0ubuntu1~cloud0); however: Package nova-compute-libvirt is not configured yet.

 dpkg: error processing package nova-compute-kvm (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing: