Bug #5949
closed
deleting org in UI does not delete corresponding lifecycle environments causing rake katello:reindex to fail
Added by Thomas McKay over 10 years ago.
Updated over 6 years ago.
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.
- Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1101642
- Triaged changed from No to Yes
- Target version set to 45
- Status changed from New to Assigned
- Assignee set to David Davis
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.
- Status changed from Assigned to New
- Target version deleted (
45)
- Status changed from New to Closed
This was solved as part of #6180.
- Translation missing: en.field_release set to 13
Also available in: Atom
PDF