Problem:
On my test instance I downloaded two Ubuntu repos with “Immedate” policy. After tests I want to reclaim my space and deleted all related CVs, repositories and products with success. Still I have 88% disk usage when I should have almost nothing.
I canceled sync of one of repos because it was hitting 98%. After hitting cancel button it immediately dropped to 88% and I cannot get rid of it.
Expected outcome:
/var/lib/pulp storage freed up
Foreman and Proxy versions:
Single instance, foreman version 3.14 Foreman and Proxy plugin versions:
Distribution and version:
Foreman hosts installed on Oracle Linux 9.5 Other relevant data:
Tried foreman-rake katello:delete_orphaned_content and also with RAILS_ENV=production, nothing helped.
It is possible you are running into the orphan protection time. By default orphans that are not yet older than the orphan protection time, are not deleted by orphan cleanup. This is to prevent orphan cleanup from deleting packages before pulp has had a chance to add them to a repo. I forget what the default orphan protection time is. There is also an option to run orphan cleanup with a protection time of zero (but I don’t remember the exact command). Alternatively, wait for the orphan protection time to run out and then re-run orphan cleanup.
The only other possibility is that the Ubuntu packages are still part of a repo, but this is not possible if you have successfully deleted your Ubuntu repositories as stated.
It will return the URI for the task created. Set the time as you need. It’s in minutes, i.e. 720 minutes aka 12 hours.
Be careful with too low numbers on production systems. As the apidoc says:
The time in minutes for how long Pulp will hold orphan Content and Artifacts before they become candidates for deletion by this orphan cleanup task. This should ideally be longer than your longest running task otherwise any content created during that task could be cleaned up before the task finishes. If not specified, a default value is taken from the setting ORPHAN_PROTECTION_TIME.
If you pick a very short time it may remove the content which is currently synced in…