Project

General

Profile

Actions

Bug #17713

open

Reindex doesn't account for missing rpms

Added by John Mitsch over 7 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
easy
Triaged:
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

Actions #1

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release set to 114
  • Difficulty set to easy
Actions

Also available in: Atom PDF