Upgrade from newton to ocata
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 ...
Perhaps a bug: https://bugs.launchpad.net/ubuntu/+so....