Project

General

Profile

Actions

Bug #3468

closed

host deletion fails when token exists

Added by Martin Bacovsky over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This has happened when I tried to destroy the host


x ERROR: update or delete on table "hosts" violates foreign key constraint "tokens_host_id_fk" on table "tokens" DETAIL: Key (id)=(63) is still referenced from table "tokens".

If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
PG::Error
ERROR: update or delete on table "hosts" violates foreign key constraint "tokens_host_id_fk" on table "tokens" DETAIL: Key (id)=(63) is still referenced from table "tokens".
app/controllers/hosts_controller.rb:120:in `destroy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #3379: It's not possible to destroy hosts that have entries in the tokens tableRejectedSam Kottler10/21/2013Actions
Actions

Also available in: Atom PDF