Use the following instead to avoid the foreign key error.
$ glance-manage version_control 0 $ glance-manage db_sync
Use the following instead to avoid the foreign key error.
$ glance-manage version_control 0
$ glance-manage db_sync