test_db_sync_downgrade_then_upgrade fails no such index: ix_images_deleted
Bug #737990 reported by
Ewan Mellor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Jay Pipes |
Bug Description
test_db_
OperationalError: (OperationalError) no such index: ix_images_deleted u'\nDROP INDEX ix_images_deleted' ()
when using virtualenv on Ubuntu 10.10 and lp:glance revno 90.
Note that https:/
Note also that Jay Pipes seems to have reported something along these lines against sqlalchemy-migrate: http://
Changed in glance: | |
importance: | Undecided → High |
assignee: | nobody → Jay Pipes (jaypipes) |
milestone: | none → cactus-2011-04-07 |
Changed in glance: | |
milestone: | cactus-2011-04-07 → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Yup, and not a single comment back from any of the SA-migrate people. It's been very frustrating. :(
The reason this happens is two-fold: SQLite does not support DROP COLUMN and sa-migrate attempts to work around this with a hack that creates a temporary table with the new schema and then drops the old one.
I'm working on the whole migration functionality in a branch. Hopefully, we'll have this resolved soon...
Note that we've been unable to reproduce this in any non-SQLite data store. If you've seen this happen in MySQL or PostgreSQL, please do let us know!