Tables are generated outside of migration process
Bug #824794 reported by
Rick Harris
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Jay Pipes |
Bug Description
Currently SQLALchemy is 'nice' enough to create tables for us if they are not present. In theory this would be great, except that it messes up our migrations.
The reason is, when SQLAlchemy autogenerates the tables, it doesn't include a schema_
The solution here is probably to disable the autocreation of tables.
Changed in glance: | |
status: | Triaged → In Progress |
Changed in glance: | |
milestone: | essex-1 → essex-2 |
Changed in glance: | |
milestone: | essex-2 → essex-3 |
Changed in glance: | |
milestone: | essex-3 → essex-4 |
Changed in glance: | |
milestone: | none → 2012.1 |
To post a comment you must log in.
I think the solution here is not to disable the autocreation of tables but instead to put a try: except block around the code in db_sync in nova-manage that catches the predictable table already exists error, and simply sets the the schema_version record to the last DB version in the migrate_repo... I'll have a stab at this.