Error from Rushi's output while running "cinder-manage db sync 24" from 25:
OperationalError: (OperationalError) (1025, "Error on rename of './cinder/#sql-2423_62' to './cinder/snapshots' (errno: 150)") '\nALTER TABLE snapshots DROP COLUMN cgsnapshot_id' ()
2014-09-11 18:05:55.095 TRACE cinder
The reason that drop column failed was because of the foreign key constraint. MySQL cannot drop column until the foreign key constraint is removed. So the solution is to remove the foreign key first, and then drop the column.
Reproduced this on a fresh devstack install.
Error from Rushi's output while running "cinder-manage db sync 24" from 25: #sql-2423_ 62' to './cinder/ snapshots' (errno: 150)") '\nALTER TABLE snapshots DROP COLUMN cgsnapshot_id' ()
OperationalError: (OperationalError) (1025, "Error on rename of './cinder/
2014-09-11 18:05:55.095 TRACE cinder
The reason that drop column failed was because of the foreign key constraint. MySQL cannot drop column until the foreign key constraint is removed. So the solution is to remove the foreign key first, and then drop the column.