Project

General

Profile

Bug #17713

Reindex doesn't account for missing rpms

Added by John Mitsch over 2 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

To reproduce:

THIS WILL REMOVE ALL YOUR PACKAGES IN PULP!!

mongo pulp_database --eval "db.units_distribution.drop();db.units_docker_blob.drop();db.units_docker_image.drop();db.units_docker_manifest.drop();db.units_docker_tag.drop();db.units_drpm.drop();db.units_erratum.drop();db.units_iso.drop();db.units_package_category.drop();db.units_package_environment.drop();db.units_package_group.drop();db.units_puppet_module.drop();db.units_rpm.drop();db.units_srpm.drop();db.units_yum_repo_metadata_file.drop();db.repo_content_units.drop();"

mongo pulp_database --eval 'db.repo_importers.update({}, {$set: {"scratchpad.repomd_revision": null}}, {multi: true});'

This deletes all units for a repository in pulp

Then run katello:reindex

package counts still show packages

The package counts should reflect what is in pulp

History

#1 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 114
  • Difficulty set to easy

Also available in: Atom PDF