Project

Profile

Help

Story #236

closed

Don't re-download rpms if they exist on disk

Added by jsherril@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.9.3
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Documentation, Pulp 2
Sprint:
Sprint 7
Quarter:

Description

If a content unit exists on disk but is not on the DB, Pulp re-downloads the content at sync time.

Pulp should instead recognize that a rpm plugin unit (rpm, srpm, drpm, distribution) is on disk and use that to create the unit in the database from. The result would be that content which exists on disk is not re-downloaded.

Steps to Reproduce:
1. Sync a large repo
2. Watch it take a while
3. Clear your mongo db
4. rerun pulp-manage-db
5. Sync the same repo
6. Watch it take the same amount of time (all the files are on the file system, so it should take the same amount of time)


Related issues

Related to Pulp - Issue #2177: download_repo task fails to mark some units as downloadedCLOSED - WONTFIXActions
Blocked by Pulp - Task #1600: Store content using consistent and deterministic pathsCLOSED - CURRENTRELEASE

Actions
Blocked by Pulp - Task #1601: Migrate /var/lib/pulp/content to new 2.8 storage paths.CLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Actions #1

Updated by mhrivnak about 9 years ago

  • Platform Release set to 2.8.0
  • Groomed set to No
  • Sprint Candidate set to Yes
Actions #3

Updated by bmbouter almost 9 years ago

  • Subject changed from RFE: Don't re-download rpms if they exist on disk to Don't re-download rpms if they exist on disk
Actions #4

Updated by mhrivnak almost 9 years ago

  • Priority changed from High to Normal
  • Groomed changed from No to Yes
  • Tags Documentation added

This is a documentation task with the checklist items above.

Document what to backup from mongodb, but we should probably avoid documenting specific commands that can change over time.

Actions #5

Updated by jortel@redhat.com almost 9 years ago

  • Priority changed from Normal to High
  • Platform Release deleted (2.8.0)
Actions #6

Updated by bmbouter almost 9 years ago

  • Blocked by Task #1600: Store content using consistent and deterministic paths added
Actions #7

Updated by bmbouter almost 9 years ago

  • Blocked by Task #1601: Migrate /var/lib/pulp/content to new 2.8 storage paths. added
Actions #8

Updated by bmbouter almost 9 years ago

  • Description updated (diff)
  • Private changed from Yes to No
Actions #9

Updated by bmbouter almost 9 years ago

I want to know if there is a way this could be a platform functionality. Perhaps platform could provide a hook which plugin writers could call.

Actions #11

Updated by bmbouter almost 9 years ago

These checklist items have been moved to #1603.

Actions #13

Updated by mhrivnak over 8 years ago

  • Sprint Candidate changed from Yes to No
Actions #14

Updated by Anonymous over 8 years ago

  • Sprint/Milestone set to 24
  • Sprint Candidate changed from No to Yes
Actions #15

Updated by mhrivnak over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mhrivnak
Actions #16

Updated by mhrivnak over 8 years ago

  • Sprint/Milestone changed from 24 to 25
Actions #17

Updated by mhrivnak about 8 years ago

  • Related to Issue #2177: download_repo task fails to mark some units as downloaded added
Actions #18

Updated by mhrivnak about 8 years ago

  • Status changed from ASSIGNED to POST

Added by mhrivnak about 8 years ago

Revision 3dd7cefc | View on GitHub

Adds docs for re-using files on disk when DB is lost

fixes #236 https://pulp.plan.io/issues/236

Added by mhrivnak about 8 years ago

Revision 3dd7cefc | View on GitHub

Adds docs for re-using files on disk when DB is lost

fixes #236 https://pulp.plan.io/issues/236

Actions #19

Updated by mhrivnak about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #20

Updated by semyers about 8 years ago

  • Platform Release set to 2.9.3
Actions #21

Updated by semyers about 8 years ago

  • Status changed from MODIFIED to 5
Actions #22

Updated by semyers about 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #25

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 7
Actions #26

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (25)
Actions #27

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF