Issue #2094


Most DRPMs are missing after a sync

Added by over 6 years ago. Updated almost 4 years ago.

Start date:
Due date:
Estimated time:
2. Medium
Platform Release:
Sprint Candidate:
Pulp 2


When syncing, a user noticed that even though there are ~1000 DRPMs, only ~220 get synced. I was able to reproduce this on 2.8.6 (there's no option for 2.8.6 in the "Version" field).

To reproduce:

#. pulp-admin rpm repo create --repo-id el6-updates --download-policy on_demand --feed
#. pulp-admin rpm repo sync run --repo-id el6-updates
#. Note the large number of missing DRPMs

There is nothing in the logs that indicates something went wrong.

Actions #1

Updated by mhrivnak over 6 years ago

  • Status changed from NEW to CLOSED - NOTABUG

Most of the drpms listed in the HTML directory index for that repo are not present in the XML metadata. The crude parsing method below shows about 234 drpms in the XML metadata.

$ curl -s | zgrep "<newpackage"| wc -l

For any DRPMs not listed in the prestodelta file, pulp (or any other client) does not have a way to find them.

So it appears that pulp is working correctly, and the creator of that repo chose to not keep older drpms in the repo's metadata.

Actions #2

Updated by over 6 years ago

  • Status changed from CLOSED - NOTABUG to NEW

That is not how prestodelta.xml works and Pulp is not working correctly. See

curl -s | zgrep "</delta>"| wc -l
Actions #3

Updated by mhrivnak over 6 years ago

Ah, very interesting. So pulp has been parsing these incorrectly for a very long time. I'm surprised it took this long to notice. Looking at the the parsing logic, it assumes only one file per "newpackage" entry, and uses whatever the first "delta" match is returned by ElementTree.

Correcting that could be a pretty big change. The filename is part of the unit key, so at least the modeling can probably stay the same. But parsing in the importer will have to be improved to iterate over all the delta entries, and then the distributor will need to sort all the units by "newpackage" (which is not in the unit key, but does get saved on the model) so it can publish the deltas together.

Actions #4

Updated by over 6 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
  • Tags Pulp 3 Prefactor added

There is a workaround which is that the yum user download and install a whole package instead of the delta.

Actions #5

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3 Prefactor)
Actions #6

Updated by bmbouter almost 4 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #7

Updated by bmbouter almost 4 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF