Kilo to Liberty: migrate flavor data impossible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Critical
|
Unassigned |
Bug Description
NOTE: (in comment #9) there is a proposed solution to fix this about dropping foreign keys. This will result in a broken data model that will prevent upgrade to Newton. Please use the solution in comment #8.
Hi everyone,
I'm currently upgrading my openstack installation from kilo to liberty on Ubuntu 14.04 LTS.
I have upgraded all packets fine and tried to update database:
nova-manage db sync
which fails complaining about the flavor not been migrated and so that I should run nova-manage db migrate_flavor_data before.
I runned this command but then nova-manage complains that migrate_data_flavor is not a valid command.
Is this a real bug ? Am I missing something ?
For the upgrade, I removed the kilo sources definition in /etc/apt/
If you need more informations, feel free to ask.
I'll post more detailed informations by tomorrow.
thanks in advance for your responses and sorry for not following the guidelines.
Changed in nova: | |
importance: | Medium → Critical |
Hi,
some informations :
# dpkg -l | grep nova 0-0ubuntu2~ cloud0 all OpenStack Compute - API frontend 0-0ubuntu2~ cloud0 all OpenStack Compute - certificate management 0-0ubuntu2~ cloud0 all OpenStack Compute - common files 0-0ubuntu2~ cloud0 all OpenStack Compute - conductor service 0-0ubuntu2~ cloud0 all OpenStack Compute - Console Authenticator 0-0ubuntu2~ cloud0 all OpenStack Compute - virtual machine scheduler 0-0ubuntu2~ cloud0 all OpenStack Compute Python libraries
ii nova-api 2:12.0.
ii nova-cert 2:12.0.
ii nova-common 2:12.0.
ii nova-conductor 2:12.0.
ii nova-consoleauth 2:12.0.
ii nova-scheduler 2:12.0.
ii python-nova 2:12.0.
ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API
# nova-mange db sync versioning. api [-] 290 -> 291... flavor_ data' first. nova-manage" , line 10, in <module> python2. 7/dist- packages/ nova/cmd/ manage. py", line 1443, in main python2. 7/dist- packages/ nova/cmd/ manage. py", line 910, in sync db_sync( version) python2. 7/dist- packages/ nova/db/ migration. py", line 26, in db_sync sync(version= version, database=database) python2. 7/dist- packages/ nova/db/ sqlalchemy/ migration. py", line 106, in db_sync python2. 7/dist- packages/ migrate/ versioning/ api.py" , line 186, in upgrade python2. 7/dist- packages/ migrate/ versioning/ util/__ init__. py", line 160, in with_engine python2. 7/dist- packages/ migrate/ versioning/ api.py" , line 366, in _migrate
2015-10-30 09:06:46.364 4920 INFO migrate.
Command failed, please check log for more info
2015-10-30 09:06:46.585 4920 CRITICAL nova [-] ValidationError: There are still 2 unmigrated flavor records. Migration cannot continue until all instance flavor records have been migrated to the new format. Please run `nova-manage db migrate_
2015-10-30 09:06:46.585 4920 ERROR nova Traceback (most recent call last):
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/bin/
2015-10-30 09:06:46.585 4920 ERROR nova sys.exit(main())
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova ret = fn(*fn_args, **fn_kwargs)
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova return migration.
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova return IMPL.db_
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova version)
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova return _migrate(url, repository, version, upgrade=True, err=err, **opts)
2015-10-30 09:06:46.585 4920 ERROR nova File "<string>", line 2, in _migrate
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova return f(*a, **kw)
2015-10-30 09:06:46.585 4920 ERROR nova File "/usr/lib/
2015-10-30 09:06:46.585 4920 ERROR nova sc...