Red Hat Bugzilla – Bug 1253006
Reindex needs to handle bad errata and package/packagegroups etc
Last modified: 2017-02-23 14:48:10 EST
The reindex task assumes that [Katello::Package, Katello::PuppetModule, Katello::Distribution, Katello::PackageGroup, Katello::Erratum] all have an "each" method in the case of on error. This causes an additional error thrown every time indexing one of those items fail. We just need to report the exception at the bulk level in those cases and not try to index one at a time.
Also we need to handle errata that point to repo memberships that do not exist in katello (as in we need to ignore those associations). This can happen either when user directly create/syncs a private repo via pulp-admin OR deletes a repo and for some reason the membership did not get updated.
Created from redmine issue http://projects.theforeman.org/issues/11140
Upstream bug assigned to firstname.lastname@example.org
*** This bug has been marked as a duplicate of bug 1253010 ***