500 on resource deletes from foreign key constraint error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
craton |
New
|
Undecided
|
Unassigned |
Bug Description
Currently when one tries to delete a resource that still has associated children, we get a 500 back from the API:
$ craton region-delete 1
ERROR: Internal Server Error (HTTP 500) (Request-ID: req-9eab3920-
Error:
2017-02-26 16:52:43.514 193 ERROR craton.
It seems this was addressed already for hosts (https:/
Perhaps, for the higher-level resources, we should err on the side of messaging about needing to delete children rather than just blowing away a potentially large amount of data by accident?
Should be fixed by https:/ /review. openstack. org/#/c/ 441644/