Project

General

Profile

Bug #4221

Unable to delete Compute Resource/Deassociate Compute Profile

Added by Dmitry Sakun about 5 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Sam Kottler
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I'm getting the following error message when trying to delete VMware compute resource:

----
ERROR: update or delete on table "compute_resources" violates foreign key constraint "compute_attributes_compute_resource_id_fk" on table "compute_attributes" DETAIL: Key (id)=(3) is still referenced from table "compute_attributes".
----

If Compute Resource is not associated with any Compute Profiles deletion works just fine but it looks like it's not possible to deassociate compute profile.


Related issues

Related to Foreman - Feature #3178: add ability to apply a virtual hardware template at hostgroup levelClosed2013-10-01

Associated revisions

Revision 6e7682a9 (diff)
Added by Sam Kottler about 5 years ago

Fixes #4221: add :dependent => :destroy for compute profiles on compute resource

Revision f08281a7 (diff)
Added by Sam Kottler almost 5 years ago

Fixes #4221: add :dependent => :destroy for compute profiles on compute resource

(cherry picked from commit 6e7682a967c9e3dc37d244146b22d7dc2cb7103e)

History

#1 Updated by Dominic Cleal about 5 years ago

  • Related to Feature #3178: add ability to apply a virtual hardware template at hostgroup level added

#2 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) changed from 4 to 5

#3 Updated by Dominic Cleal about 5 years ago

  • Target version set to 1.9.1

#4 Updated by Sam Kottler about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Sam Kottler

#5 Updated by Sam Kottler about 5 years ago

  • Status changed from Assigned to Ready For Testing

#6 Updated by Sam Kottler about 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF