Project

General

Profile

Actions

Bug #35457

closed

Investigation: does Katello properly remove content units when they are removed from a Pulp repository during syncing?

Added by Ian Ballou over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Custom repositories don't always keep every old content unit, so content units can be removed during syncs. An upstream user is hitting an issue where filtered CV publishing is failing due to content units in the DB that don't exist in Pulp. I think it's likely that Pulp removed the units during a sync but Katello failed to remove them from its DB.

We should test that, if a repo removes content units, Katello also removes them from the DB. We should also test this for package groups because they were the target content unit type in the issue.

Perhaps we could improve filtered content view publishing so that 404s are handled. That might require Pulp changes, but it's worth investigating.


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #35120: Retain packages on Repository removes RPMs from Pulp but not from KatelloClosedSamir JhaActions
Actions #2

Updated by Ian Ballou over 1 year ago

  • Triaged changed from No to Yes

Potentially related fixed issue: https://projects.theforeman.org/issues/35120

Actions #3

Updated by Ian Ballou over 1 year ago

This issue seems to be more specific to package groups than we originally thought.

The user has reported that, at sync time of EPEL-next, a package group got updated. In Pulp, a new package group content unit was created and it was indexed by Katello into the repository. Eventually, some weeks later, it seems the duplicate disappears from Pulp and causes filtered CV publishing issues due to the orphan left in the Katello repo.

I'm guessing that orphan cleanup may be deleting the repository version that held the old package group. I propose that we should try to reproduce it and update the existing package group rather than keeping around the old duplicate if the package group receives an update. That is what we do for errata.

Actions #4

Updated by Ian Ballou over 1 year ago

  • Status changed from New to Duplicate
Actions #5

Updated by Ian Ballou over 1 year ago

  • Is duplicate of Bug #35120: Retain packages on Repository removes RPMs from Pulp but not from Katello added
Actions #6

Updated by Ian Ballou over 1 year ago

  • Target version changed from Katello 4.5.1 to Katello Recycle Bin
Actions

Also available in: Atom PDF