Project

General

Profile

Actions

Bug #5949

closed

deleting org in UI does not delete corresponding lifecycle environments causing rake katello:reindex to fail

Added by Thomas McKay almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

After deleting ACME_Corporation from my server through the UI, apparently successfully, a later call to 'rake katello:reindex' failed. Looking at the psql database I see there was still a Library environment in katello_environments table for ACME.

Unclear if other org-dependent objects are also orphaned.


Related issues 1 (0 open1 closed)

Related to Katello - Feature #6180: Implement org destroyClosedDavid Davis06/12/2014Actions
Actions #1

Updated by Thomas McKay almost 10 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1101642
Actions #2

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
  • Target version set to 45
Actions #3

Updated by David Davis almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to David Davis
Actions #4

Updated by David Davis almost 10 years ago

Found the problem. The good news is that other records like product are not getting orphaned. I have not looked at all records but at least there are some that aren't getting orphaned.

The bad news is that the organization destroy code (https://github.com/Katello/katello/blob/master/app/models/katello/organization_destroyer.rb) was never reimplemented for the engine. That's probably going to have to be implemented at some point (hopefully with dynflow). I may have to implement that here.

Actions #5

Updated by Eric Helms almost 10 years ago

Actions #6

Updated by David Davis almost 10 years ago

  • Status changed from Assigned to New
Actions #7

Updated by Eric Helms almost 10 years ago

  • Target version deleted (45)
Actions #8

Updated by David Davis almost 10 years ago

  • Status changed from New to Closed
Actions #9

Updated by David Davis almost 10 years ago

This was solved as part of #6180.

Actions #10

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF