Bug #5949
closeddeleting org in UI does not delete corresponding lifecycle environments causing rake katello:reindex to fail
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.
Updated by Thomas McKay over 10 years ago
- Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1101642
Updated by Eric Helms over 10 years ago
- Triaged changed from No to Yes
- Target version set to 45
Updated by David Davis over 10 years ago
- Status changed from New to Assigned
- Assignee set to David Davis
Updated by David Davis over 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.
Updated by Eric Helms over 10 years ago
- Related to Feature #6180: Implement org destroy added
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13