Database downgrade fails on SQLite

Bug #1350918 reported by Simon Chang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Won't Fix
Low
Unassigned

Bug Description

The 009_add_deleted_flag_to_instance.py script in migrate_repo fails to downgrade a SQLite database properly. The instances.drop_column('deleted') line in the downgrade() function actually drops the instance table before dropping the "deleted" column. The instance table shouldn't have been deleted in the first place.

Error trace:
http://paste.openstack.org/show/89406/

Steps to replicate the issue:
1) Comment out the sql_connection line in /etc/trove/trove.conf, forcing trove-manage to use the default SQLite database option.
2) trove-manage db_sync
3) trove-manage db_downgrade 8

Simon Chang (changsimon)
Changed in trove:
assignee: nobody → Simon Chang (changsimon)
Changed in trove:
status: New → Triaged
importance: Undecided → Medium
milestone: none → ongoing
Changed in trove:
milestone: ongoing → juno-rc1
Changed in trove:
milestone: juno-rc1 → ongoing
Revision history for this message
Amrith Kumar (amrith) wrote :

Updating importance to "Low" (bugscrub, 2014-10-23)

Changed in trove:
importance: Medium → Low
Revision history for this message
Amrith Kumar (amrith) wrote :

Simon, any updates on this?

Revision history for this message
Simon Chang (changsimon) wrote :

There has been proposals that openstack as a whole shouldn't support downgrade. I think we should set the status of this one to 'Won't Fix'.

Revision history for this message
Amrith Kumar (amrith) wrote :

Thanks Simon, good point.

Changed in trove:
status: Triaged → Won't Fix
milestone: ongoing → none
assignee: Simon Chang (changsimon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.