Project

Profile

Help

Issue #6399

When remote repository has directory structure pulp distribution generate wrong metadata

Added by ppicka over 1 year ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When remote repository has directory structure e.g. RPM packages is in 'Packages' folder Pulp sync it well but after publish/distribution this repository primary.xml still has as location path 'Packages/pgk.rpm' but file itself is in root directory of PULPs' directory. It means that yum fail installation from this repository with '404 - Not Found'

Findings:

  • at publish artifacts [0] here it is the base path of package
  • at create metadata [1] it has full relative path of original repository root dir

Tested with CentOS7 repository [2]

[0] https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/app/tasks/publishing.py#L109 [1] https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/app/tasks/publishing.py#L259 [2] http://mirror.centos.org/centos/7.7.1908/os/x86_64/

Associated revisions

Revision 8a0a3239 View on GitHub
Added by ppicka over 1 year ago

Alphabetical directory structure by default

Publish repository with directory structure sorter by first letter under 'Packages' directory.

Adjust docs scripts and tests to reflect the change. Added 'django' as test requirement.

/Packages/[a-z]/*.rpm /repodata

closes: #4445 closes: #6399

https://pulp.plan.io/issues/4445 https://pulp.plan.io/issues/6399

History

#1 Updated by pulpbot over 1 year ago

  • Status changed from NEW to POST

#2 Updated by ttereshc over 1 year ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 69

#3 Updated by rchan over 1 year ago

  • Sprint deleted (Sprint 69)

#4 Updated by ppicka over 1 year ago

  • Status changed from POST to MODIFIED

#5 Updated by dalley over 1 year ago

  • Sprint/Milestone set to Pulp RPM 3.3.0

#6 Updated by dalley over 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF