Delete endpoint_group should remove project_endpoint_group at first
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Dave Chen | ||
Kilo |
Fix Released
|
Medium
|
Dolph Mathews |
Bug Description
Since the endpoint_group_id of table project_
{"error": {"message": "An unexpected error prevented the server from fulfilling your request: (IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`keystone`
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | liberty-1 → 8.0.0 |
This issue can be addressed easily by adjust current code a little bit.
https:/ /github. com/openstack/ keystone/ blob/master/ keystone/ contrib/ endpoint_ filter/ backends/ sql.py# L148
Swith the sequence between "_delete_ endpoint_ group_associati on_by_endpoint_ group" and "session. delete( endpoint_ group_ref) " will work.
related BP: ondelete-cascade
Reference: https:/ /blueprints. launchpad. net/keystone/ +spec/ondelete- cascade