Bug 1101642

Summary: deleting org in UI does not delete corresponding lifecycle environments causing rake katello:reindex to fail
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Content ManagementAssignee: David Davis <daviddavis>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: cwelton, jmontleo, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5949
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:26:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1100311    
Bug Blocks:    

Description Tom McKay 2014-05-27 16:35:59 UTC
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.

Comment 1 Tom McKay 2014-05-27 16:36:00 UTC
Created from redmine issue http://projects.theforeman.org/issues/5949

Comment 3 David Davis 2014-06-09 20:18:20 UTC
Org destroy has been pushed out to 6.0.4.

Comment 4 David Davis 2014-07-11 19:07:52 UTC
Confirmed as working as part of https://bugzilla.redhat.com/show_bug.cgi?id=1100311. QA, please verify.

Comment 6 Corey Welton 2014-08-11 20:27:09 UTC
Verified in Satellite-6.0.4-RHEL-6-20140806.0

Comment 7 Bryan Kearney 2014-09-11 12:26:00 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.