Bug #22322
closedUnable to delete the host on foreman
Description
Hello All,
I am getting below error during deletion of my host. can you please assist me to reproduce this issue.
Error Message on foreman along with past bin.
https://pastebin.com/YpwMBADL
Warning!
Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`tokens`, CONSTRAINT `tokens_host_id_fk` FOREIGN KEY (`host_id`) REFERENCES `hosts` (`id`)): DELETE FROM `hosts` WHERE `hosts`.`type` IN ('Host::Managed') AND `hosts`.`id` = 110827
Thanks,
Tarak
Files
Updated by Ohad Levy over 6 years ago
- Status changed from New to Resolved
This has been fixed a long time ago, please upgrade your foreman instance.
Updated by tarak sinha over 6 years ago
Ohad Levy wrote:
This has been fixed a long time ago, please upgrade your foreman instance.
Hi, Ohad,
Thanks for your prompt response, but this issue is happening in only from one datacenter, all the other hosts are good to delete.
Can you share me the request which was previously closed.
Thanks