Bug 1108370

Summary: [RFE] Enable Proxy to pre-cache rpms
Product: [Community] Spacewalk Reporter: Stephen Herr <sherr>
Component: Proxy ServerAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.2   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-proxy-2.2.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 08:40:51 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: 737830, 1119298    

Description Stephen Herr 2014-06-11 20:26:06 UTC
Enable the user to pre-load RPMs into Proxy. The RPMs should be stored in a non-expiring cache. This will allow the user to reduce network bandwidth required and increase RPM retrieval speeds in the case of a slow network.

This feature would be dependent on getting bug 1104375 and bug 1105273 fixed.

Comment 1 Stephen Herr 2014-06-11 20:31:25 UTC
With the two bugs in comment 0 fixed the already-existing rhn_package_manager option --copyonly will create the cache described above.

I have updated the man page to explain this feature, and added a new option --from-export which allows rhn_package_manager to read / cache rpms from a channel dump.

Committing to Spacewalk master:
c100889386a750af811635713f578eea35e930b9

Comment 2 Stephen Herr 2014-06-20 20:17:45 UTC
I have added the ability to serve files from proxy's local cache for kickstarts.

Committing to Spacewalk master:
9b70213ac58c1c42efc02d58699710f9a983f811
9b70213ac58c1c42efc02d58699710f9a983f811

Comment 3 Stephen Herr 2014-06-20 21:03:20 UTC
And commit:
7d92813f1354a88dff351019998dabda6757b69c

Checkstyle fix and adding back in a bit of error handling that was removed to make debugging easier.

Comment 4 Stephen Herr 2014-06-23 14:53:56 UTC
Adding a user-friendly option to package_manager:
610f7462e93f3098222d5473341e433c4788d67c

Comment 5 Stephen Herr 2014-06-23 18:05:49 UTC
Checkstyle fix:
a425230bcff903d33203ac75e218c734a89b4802

Comment 6 Milan Zázrivec 2014-07-17 08:40:51 UTC
Spacewalk 2.2 has been released:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22