Project

General

Profile

Bug #5949

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

Added by Thomas McKay over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
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

Related to Katello - Feature #6180: Implement org destroyClosed2014-06-12

History

#1 Updated by Thomas McKay over 6 years ago

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

#2 Updated by Eric Helms over 6 years ago

  • Target version set to 45
  • Triaged changed from No to Yes

#3 Updated by David Davis over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to David Davis

#4 Updated by David Davis over 6 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.

#5 Updated by Eric Helms over 6 years ago

#6 Updated by David Davis over 6 years ago

  • Status changed from Assigned to New

#7 Updated by Eric Helms over 6 years ago

  • Target version deleted (45)

#8 Updated by David Davis over 6 years ago

  • Status changed from New to Closed

#9 Updated by David Davis over 6 years ago

This was solved as part of #6180.

#10 Updated by Eric Helms about 6 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF