Project

General

Profile

Actions

Bug #7255

closed

unable to delete puppet class

Added by Neeraj Harikrishnan over 10 years ago. Updated over 10 years ago.

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

Description

I get a error while I try to delete puppet class from foreman interface.

ActiveRecord::StatementInvalid
Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`environment_classes`, CONSTRAINT `environment_classes_puppetclass_id_fk` FOREIGN KEY (`puppetclass_id`) REFERENCES `puppetclasses` (`id`)): DELETE FROM `puppetclasses` WHERE `puppetclasses`.`id` = 86
app/controllers/puppetclasses_controller.rb:40:in `destroy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #4379: Foreign key constraint error on deleting a classResolved02/18/2014Actions
Actions

Also available in: Atom PDF