Bug 218809

Summary: RHNSat package lookaside from a previous satellite install
Product: Red Hat Satellite 5 Reporter: Matt Domsch <matt_domsch>
Component: ServerAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED WONTFIX QA Contact: Brandon Perkins <bperkins>
Severity: medium Docs Contact:
Priority: low    
Version: 500CC: ltroan, sbenjamin, wwlinuxengineering
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-29 14:21:51 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:
Attachments:
Description Flags
satsync-lookaside.patch none

Description Matt Domsch 2006-12-07 17:13:47 UTC
Description of problem:
To populate an RHN Satellite with thousands of RPMs (mine has >40k) you must
either a) download them all over the WAN (slow and expensive), or b) download a
metric ton of content CDs, explode them, then import them (which is slow,
expensive, and requires 2X the disk space to accomplish).  As I already had a
satellite server with a 120GB of /var/satellite packages, why couldn't
satellite-sync use those?

So, here's a hackish patch to add a package lookaside.  When it wants to
download an RPM, it can look in /mnt/satellite and see if the package exists
there.  If so, don't download it but just use the "local" copy.  This sped up my
syncing from *days* to *minutes*.

Please consider something along these lines for future Satellite releases.  This
patch is a hack that works, but would be good to be a command line option,
specifying the dir (instead of hard-coding /mnt/satellite).

Version-Release number of selected component (if applicable):
RHN5

Comment 1 Matt Domsch 2006-12-07 17:13:47 UTC
Created attachment 143067 [details]
satsync-lookaside.patch

Comment 2 Red Hat Bugzilla 2007-04-12 02:01:56 UTC
User bnackash's account has been closed

Comment 3 Matt Domsch 2008-10-29 14:21:51 UTC
These have been open for years with no investigation or resolution.  Since then the code base has moved on significantly, such that many of these no longer would apply to the current spacewalk code.  I'm closing these requests in the hope they're no longer necessary, or if they are, they'll get discovered anew.