Credential table in the backed still has foreign key reference to id column in tenant table (which is dropped).
Bug #1190383 reported by
Nachiappan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Nachiappan |
Bug Description
Credential table in the backed still has foreign key reference to id column in tenant table
sqlite> .schema credential
CREATE TABLE credential (
id VARCHAR(64) NOT NULL,
user_id VARCHAR(64) NOT NULL,
project_id VARCHAR(64),
blob TEXT NOT NULL,
type VARCHAR(255) NOT NULL,
extra TEXT,
PRIMARY KEY (id),
FOREIGN KEY(user_id) REFERENCES user (id),
FOREIGN KEY(project_id) REFERENCES tenant (id)
);
There is a bug in the sql migration code where we drop the foreign key constraint.
https:/
summary: |
Credential table in the backed still has foreign key reference to id - column in tenant table + column in tenant table (which is dropped). |
Changed in keystone: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in keystone: | |
assignee: | nobody → Nachiappan (nachiappan-veerappan-nachiappan) |
Changed in keystone: | |
assignee: | Nachiappan (nachiappan-veerappan-nachiappan) → Dolph Mathews (dolph) |
Changed in keystone: | |
assignee: | Dolph Mathews (dolph) → Nachiappan (nachiappan-veerappan-nachiappan) |
Changed in keystone: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
From what i understood, is when we try to load the credential table,
https:/ /github. com/openstack/ keystone/ blob/master/ keystone/ common/ sql/migrate_ repo/versions/ 023_drop_ credential_ constraints. py#L27
since it has foreign key reference to tenant table which has been dropped in the previous migration, the credential table does not get loaded and the sql migration would have failed. So that is the reason we still observe the foreign key constraint.