Project

General

Profile

Actions

Bug #9150

closed

Removed Distributions are not removed in elastic search

Added by Justin Sherrill over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If for some reason a new distribution gets synced down to a repo (that already had one), pulp may remove the old distribution and replace it with the new one. However we do not handle this in our elasticsearch indexing.

This can cause a content view to fail to publish because it thinks there are two distributions in the same repo with the same version and arch.

The following will reindex the distributions:


User.current = User.first
Tire.index(Katello::Distribution.index).delete
Katello::Distribution.index_all

Actions

Also available in: Atom PDF