Bug #17713
openReindex doesn't account for missing rpms
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