Project

General

Profile

Actions

Bug #38205

open

Orphan deletion fails with "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."

Added by dstephens1980 please_edit_me 10 days ago. Updated 9 days ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Specs:
OS - EL8
CPU - 4 core
RAM - 20GB
Storage - 1TB for /var
Foreman - 3.11.0
Katello - 4.13.0
Pulpcore - 2.0.1

Issue:
CLI execution of "foreman-rake katello:delete_orphaned_content" starts the expected cleanup task which then fails with "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."

Expectation:
Orphaned content is cleaned off disk

Notes:
We do NOT use Content Views, all client machines use the Default Content View from the Library. This was done as we could find no way to automate creation/publication of a Content View every time a repo was sync'd. Since the Default View does auto-update after a repository sync we simply use that, so there is no "distribution" to update. Thinking more about this it might be expected behavior and if so don't hesitate to tear me a new one :) Please let me know if I need to clarify or provide more data.

Actions

Also available in: Atom PDF