Actions
Story #8313
closedAs an admin I have a way to delete repo versions from push repo so I can free some disk space
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
GalaxyNG
Sprint:
Sprint 99
Quarter:
Description
Problem statement¶
- There is no way to free some disc space because we do not allow repo versions removal from push repos. Deleting entire repo is not a viable option.
- There is no way to delete certain repo versions if there is no longer need to keep them.
(Note: Orphan clean up is still expected to be run in order to remove artifacts from the fs.)
Solution¶
- Enable DELETE on the push repo versions endpoint and allow removal of any versions except the latest one.
- might bring complexity in the logic. Add validation on the distribution update call to disallow repo_version update
- change in access policy
- After each push operation remove all repo versions except the latest one. As a result each push operation will always result into one version.
- this approach will close forever the door for us for adding 'rollback' capabilities for push repos
- this behaviour might be considered as unwanted/confusing. Other operations like tag/untag/manifest removal will still produce a new version and will not clean up previous ones ( behaviour discrepancy)
- Leave this to pulpcore which will introduce retain N repo-version option. For pulp container push repos by default there will retained only 1 version https://pulp.plan.io/issues/8368
Actions
Added PUT/PATCH method to the container-push repository.
closes #8313
Required PR: https://github.com/pulp/pulpcore/pull/1378