Story #236
closed
Don't re-download rpms if they exist on disk
Status:
CLOSED - CURRENTRELEASE
Tags:
Documentation, Pulp 2
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)
- Platform Release set to 2.8.0
- Groomed set to No
- Sprint Candidate set to Yes
- 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
- 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.
- Priority changed from Normal to High
- Platform Release deleted (
2.8.0)
- Blocked by Task #1600: Store content using consistent and deterministic paths added
- Blocked by Task #1601: Migrate /var/lib/pulp/content to new 2.8 storage paths. added
- Description updated (diff)
- Private changed from Yes to No
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.
These checklist items have been moved to #1603.
- Sprint Candidate changed from Yes to No
- Sprint/Milestone set to 24
- Sprint Candidate changed from No to Yes
- Status changed from NEW to ASSIGNED
- Assignee set to mhrivnak
- Sprint/Milestone changed from 24 to 25
- Related to Issue #2177: download_repo task fails to mark some units as downloaded added
- Status changed from ASSIGNED to POST
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Platform Release set to 2.9.3
- Status changed from MODIFIED to 5
- Status changed from 5 to CLOSED - CURRENTRELEASE
- Sprint/Milestone deleted (
25)
Also available in: Atom
PDF
Adds docs for re-using files on disk when DB is lost
fixes #236 https://pulp.plan.io/issues/236