Project

Profile

Help

Issue #2621

closed

Syncing an immediate repo with 'on_demand' overridden no longer populates the catalog

Added by jsherril@redhat.com about 7 years ago. Updated about 5 years ago.

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

Description

Prior to https://github.com/pulp/pulp_rpm/pull/1000

the following steps:

pulp-admin rpm repo create --repo-id=justin3 --feed=https://copr-be.cloud.fedoraproject.org/results/jmracek/dnf-search/fedora-25-x86_64/ --download-policy=immediate
pulp-admin rpm repo sync run --repo-id=justin3

# locate the package dnf-2.1.0-1.git.16.54a97bb.fc25
find /var/lib/pulp/content/units/rpm | grep 54a97bb

# See if its in the catalog (it shouldn't be)
mongo pulp_database
db.lazy_content_catalog.find({"path": "/var/lib/pulp/content/units/rpm/b2/6de2a5eaec4d2637d6e022e6ca9b36a8a6ab9063036033a613017f7e979478/dnf-2.1.0-1.git.16.54a97bb.fc25.noarch.rpm"})

# reset revision #, to force a sync
mongo pulp_database --eval 'db.repo_importers.update({"scratchpad": {$ne: null}}, {$set: {"scratchpad.repomd_revision": null}}, {"multi":true})'

#set to on demand and resync
pulp-admin rpm repo update --download-policy=on_demand --repo-id=justin3
pulp-admin rpm repo sync run --repo-id=justin3

#check the content catalog again:
mongo pulp_database
db.lazy_content_catalog.find({"path": "/var/lib/pulp/content/units/rpm/b2/6de2a5eaec4d2637d6e022e6ca9b36a8a6ab9063036033a613017f7e979478/dnf-2.1.0-1.git.16.54a97bb.fc25.noarch.rpm"})

would result in the catalog being populated. Now it does not. This prevents us from verifying the checksums of all rpms on an immediate repo.

Also available in: Atom PDF