Project

Profile

Help

Story #6353

closed

As a user, I can mirror RPM repository content and metadata

Added by dkliban@redhat.com over 4 years ago. Updated over 3 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 98
Quarter:

Description

Motivation

  • Clients installing packages from RPM mirrors hosted by Pulp don't have access to the original metadata provided in the remote repository.
  • There are problems with caching and/or load-balancing if multiple instances of pulp produce different metadata syncing from the same remote repository.
  • If a repo contains duplicated content under different paths, such repo can't be synced at all, unless a path is a part of the content natural key.

Proposed solution.

Add ability to create repository versions that contain the original metadata from the remote repository.

This could be accomplished by the following:

  • Have a way to distinguish between repositories with managed content and with the exact mirror (e.g. create a repository with exact_mirror=True or a new dedicated repository type, RpmMirrorRepository)
  • For such repos, create a publication at sync time (includes published artifacts and metadata).
  • For such repos, publish is no-op and always returns the existing publication for the requested repo version.
  • For such repos, no modifications are allowed except the sync in mirror mode.

Pros

Cons

  • doesn't solve the problem of various relative paths for the same content in general way
  • a separate code path (at times) to handle this type of repositories.

Related issues

Related to Pulp - Story #5200: Support 'mirrored' metadataCLOSED - WONTFIX

Actions
Related to Pulp - Story #8687: DeclarativeVersion API doesn't accomodate metadata mirroring use casesCLOSED - DUPLICATE

Actions
Related to RPM Support - Story #8673: Auto-publishing should be more fault-tolerantCLOSED - DUPLICATE

Actions
Related to Pulp - Story #8856: As a user, I have a convenient UX for mirroring repositoriesCLOSED - DUPLICATE

Actions
Blocked by Pulp - Story #7815: As a plugin writer, pulpcore ensures that a job working directory is set/removed properlyCLOSED - CURRENTRELEASEdalley

Actions

Also available in: Atom PDF