nova-cloud-controller needs to run `nova-manage db migrate_flavor_data` on upgrade from kilo -> liberty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-cloud-controller (Juju Charms Collection) |
Fix Released
|
Critical
|
Liam Young |
Bug Description
The nova-cloud-
The following must be run when upgrading from kilo to liberty *before* the packages are upgraded to liberty.
nova-manage db migrate_flavor_data
If not the db migrate step fails leaving the upgrade process stranded.
2016-05-11 12:19:37.136 150521 INFO migrate.
2016-05-11 12:19:37.142 150521 INFO migrate.
2016-05-11 12:19:37.142 150521 INFO migrate.
2016-05-11 12:19:37.149 150521 INFO migrate.
2016-05-11 12:19:37.149 150521 INFO migrate.
2016-05-11 12:19:37.154 150521 INFO migrate.
2016-05-11 12:19:37.154 150521 INFO migrate.
2016-05-11 12:19:37.159 150521 INFO migrate.
2016-05-11 12:19:37.160 150521 INFO migrate.
2016-05-11 12:19:37.164 150521 INFO migrate.
2016-05-11 12:19:37.165 150521 INFO migrate.
2016-05-11 12:19:37.170 150521 INFO migrate.
2016-05-11 12:19:37.170 150521 INFO migrate.
2016-05-11 12:19:37.175 150521 INFO migrate.
2016-05-11 12:19:37.175 150521 INFO migrate.
2016-05-11 12:19:37.179 150521 INFO migrate.
2016-05-11 12:19:37.180 150521 INFO migrate.
2016-05-11 12:19:37.184 150521 INFO migrate.
2016-05-11 12:19:37.184 150521 INFO migrate.
2016-05-11 12:19:37.189 150521 INFO migrate.
2016-05-11 12:19:37.189 150521 INFO migrate.
2016-05-11 12:19:37.204 150521 CRITICAL nova [-] ValidationError: There are still 97 unmigrated flavor records. Migration cannot continue until all instance flavor records have been migrated to the new format. Please run `nova-manage db migrate_
2016-05-11 12:19:37.204 150521 ERROR nova Traceback (most recent call last):
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/bin/
2016-05-11 12:19:37.204 150521 ERROR nova sys.exit(main())
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova ret = fn(*fn_args, **fn_kwargs)
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova return migration.
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova return IMPL.db_
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova version)
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova return _migrate(url, repository, version, upgrade=True, err=err, **opts)
2016-05-11 12:19:37.204 150521 ERROR nova File "<string>", line 2, in _migrate
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova return f(*a, **kw)
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova schema.
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova change.
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova script_func(engine)
2016-05-11 12:19:37.204 150521 ERROR nova File "/usr/lib/
2016-05-11 12:19:37.204 150521 ERROR nova raise exception.
2016-05-11 12:19:37.204 150521 ERROR nova ValidationError: There are still 97 unmigrated flavor records. Migration cannot continue until all instance flavor records have been migrated to the new format. Please run `nova-manage db migrate_
2016-05-11 12:19:37.204 150521 ERROR nova
With the liberty packages installed there is no way to recover.
Potential workaround:
Create a trusty container; add kilo cloud-archive and install nova-common
steal nova.conf from nova-cc unit
Add extra permission to mysql db to allow access from your container
And then run the required flavor migrate thing from a kilo install
Then re-commence the db-migrate on the nova-cc units...
You'll have to do that by hand as the charm will only run that codepath if the binaries register as upgrade eligible which then won't any longer
On kilo nova-manage db migrate_flavor_data
And then on liberty nova-manage db sync
Possible related bug: https:/
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 16.07 |
tags: | added: backport-potential |
tags: | added: openstack |
tags: | added: canonical-bootstack |
Changed in nova-cloud-controller (Juju Charms Collection): | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Thanks, FTR was able to migrate the schema the above workaround