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 #1

Updated by Neeraj Harikrishnan over 10 years ago

Please close I found the original bug. Sorry

Actions #2

Updated by Anonymous over 10 years ago

Could you please give us the number of that bug, so we can set this report as a duplicate?

Actions #3

Updated by Neeraj Harikrishnan over 10 years ago

Bug #4379

Actions #4

Updated by Anonymous over 10 years ago

  • Is duplicate of Bug #4379: Foreign key constraint error on deleting a class added
Actions #5

Updated by Anonymous over 10 years ago

  • Status changed from New to Duplicate

thanks!

Actions

Also available in: Atom PDF