Project

Profile

Help

Story #2211

As a user, I can sync a distribution unit with the existing yum_importer without requiring yum metadata

Added by mhrivnak about 5 years ago. Updated over 2 years ago.

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

100%

Estimated time:
Platform Release:
2.11.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 7
Quarter:

Description

This comes from a need by katello to sync kickstart trees for Project Atomic. For all of pulp's life, it has assumed that a "distribution" unit must be part of a yum repository. Atomic has proven that to not be true.

In the face of some unfortunate work-arounds, I did a quick investigation to see how close the current yum_importer is to being able to sync a distribution with no yum metadata present. It turned out to be very easy, and I had a working PoC in about 10 minutes.

The existing logic for skipping yum-related steps was easy to use. We just need to change the error handling when repomd.xml can't be found, so that instead of failing the task, it sets the "skip_repomd_steps" flag and allows the distribution sync to continue.

Turning the PoC into a PR will be very easy.

Here is a repo to test with that does not have yum metadata: https://ci.centos.org/artifacts/sig-atomic/centos-continuous/images-alpha/installer/latest/images/

And here is one that does have yum metadata (the case we've always handled): http://mirror.cs.vt.edu/pub/CentOS/7/os/x86_64/

To test:

  • create a yum repo in pulp with a feed to the above repo, or a similar one
  • sync the repo
  • verify that the repo contains 1 distribution unit after the sync runs

Checklist

Associated revisions

Revision 221e9779 View on GitHub
Added by mhrivnak about 5 years ago

yum_importer can sync a distribution that does not also have yum repo metadata

This was prompted by the need to sync kickstart trees related to Project Atomic, which do not have yum repository metadata in the kickstart directory.

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

History

#1 Updated by jortel@redhat.com about 5 years ago

  • Groomed changed from No to Yes

#2 Updated by Anonymous about 5 years ago

  • Sprint/Milestone set to 25

#3 Updated by mhrivnak about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mhrivnak

#4 Updated by mhrivnak about 5 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by mhrivnak about 5 years ago

  • Checklist item When no yum metadata is present but a kickstart tree is, the yum importer will create a distribution unit. set to Done
  • Checklist item When no yum metadata is present, and no treeinfo file is present, the error handling remains the same as before. set to Done

#6 Updated by mhrivnak about 5 years ago

  • Description updated (diff)

#7 Updated by mhrivnak about 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#8 Updated by mhrivnak about 5 years ago

  • Platform Release set to 2.11.0

#9 Updated by semyers almost 5 years ago

  • Status changed from MODIFIED to 5

#11 Updated by pcreech over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter about 4 years ago

  • Tags deleted (2.11)

#13 Updated by bmbouter over 3 years ago

  • Sprint set to Sprint 7

#14 Updated by bmbouter over 3 years ago

  • Sprint/Milestone deleted (25)

#15 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF