Project

General

Profile

Actions

Bug #6281

closed

Attempting to remove openstack compute resource gives FK error

Added by Justice London over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I am attempting to remove an openstack compute resource which is no longer tied to any hosts and receive the following error:

PG::ForeignKeyViolation
ERROR: update or delete on table "images" violates foreign key constraint "hosts_image_id_fk" on table "hosts" DETAIL: Key (id)=(1) is still referenced from table "hosts".
app/controllers/compute_resources_controller.rb:72:in `destroy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

If you need any further details let me know. I verified and no hosts are currently using this resource.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #4416: 500 FK error when deleting old image in compute resourceClosedJoseph Magen02/23/2014Actions
Actions

Also available in: Atom PDF