keystone-manage db_sync with DB2 fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Brant Knudson |
Bug Description
I set up my system with DB2 according to https:/
Ran keystone-manage db_sync, and got this error:
...
File "/opt/stack/
legacy_
...
sqlalchemy.
ibm_db_
[IBM][CLI Driver]
The statement failed because the table or column cannot be renamed.
SQLSTATE=42986 SQLCODE=-750 'RENAME TABLE endpoint TO endpoint_v2' ()
The problem is that DB2 will not allow you to rename a table if it's got a constraint on it (a unique or foreign key constraint). See
http://
The suggested fix for this is to drop the unique or FK constraints before renaming and then restoring the FK constraints.
The FK constraint problem affects migrations 11 and 13. The unique constraint problem affects migration 16.
The next problem is that the upgrade process deadlocks in migration 16. This is because with DB2 a lock is held in upgrade_
Also ran into a similar problem as mysql on migration 23, but ayoung has a fix for this.
Changed in keystone: | |
assignee: | nobody → Brant Knudson (blk-u) |
Changed in keystone: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in keystone: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | havana-2 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/32191
Review: https:/