Public bug reported:

Ubuntu 14.04 using cloud-archive packages upgrading from kilo to liberty
  Installed: 2:8.2.0-0ubuntu1~cloud0
trusty-updates/mitaka/main amd64 Packages

neutron db migration error in prod kilo->liberty upgrade:

# neutron-db-manage upgrade head

/usr/lib/python2.7/dist-packages/alembic/util/ UserWarning: 
Revision havana referenced from havana -> 1cbdb560f806 (head), empty message is 
not present
<snip details at >
KeyError: 'havana'

packages are additive so system had migrations for 'havana' in
but current neutron-db-manage doesn't know about 'havana' so freaks out.

rm -r /usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations
apt-get install --reinstall python-neutron

then migrations work as expected.

I feel like this is a packaging bug and old migrations should be removed
on upgrade.  I could also see this as an upstream bug where code should
at least remember historic version names, but choosing to report here

** Affects: neutron (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  neutron-db-manage fails when old migrations are present

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to