Problem:
I attempted to add a very large (https://rpm.grafana.com/) repo to my Foreman server, it chewed through a couple of hundred GBytes of space overnight then crashed out with an out of space error. I’ve deleted the repo (it was never added to any Content View or connected to any other part of the Foreman ecosystem, and I’ve tried running foreman-rake katello:delete_orphaned_content and also (foreman-rake katello:regenerate_repo_metadata) in between times, but it doesn’t look like the bulk of the space has been reclaimed.
I’ve also tried running the following command, which I found on this bug report, but it doesn’t return any items.
PulpcoreClient::DistributionsApi.new(PulpcoreClient::ApiClient.new(SmartProxy.pulp_primary.pulp3_configuration(PulpcoreClient::Configuration))).list(per_page: 1000).results.map(&:pulp_href) - ::Katello::Pulp3::DistributionReference.select(:href).pluck(:href)
Is there anything else I can do to try and reclaim this space?
Thanks.
*I’ve also since readded the repo, to a different Product, with an on-demand package download policy to minimise space, I think this was before I turned my attention to clearing down the space, just in case that’s of any relevance.
Expected outcome:
Reclaim space from lost repos.
Foreman and Proxy versions:
Foreman 3.12/Katello 4.14
Distribution and version:
Alma 9