Bug #38205
openOrphan 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."
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.