Bug 812856

Summary: packages in organization not deleted when org removed
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ServerAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 541   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 20:12:22 UTC Type: Bug
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:    
Bug Blocks: 462714    

Description Jan Hutař 2012-04-16 12:52:58 UTC
Description of problem:
When I remove organization, its packages are not deleted from /var/satellite. Though they are removed from database.


Version-Release number of selected component (if applicable):
Satellite 5.4.1 + updates
satellite-schema-5.4.0.19-1.el6sat.noarch
spacewalk-java-1.2.39-115.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Create organization with some user
2. Use that user to push packages into that org:
   # rhnpush -u jhutar -p jhutar --server=https://$(hostname)/APP /var/www/html/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm -vv --nosig
3. Ensure you can see the package in /var/satellite
   # find /var/satellite/ -name rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
4. Delete the organization
5. Check /var/satellite if package disappeared


Actual results:
Package is still there


Expected results:
Package should have been removed