cleanup repos regularly
Closed, ResolvedPublic

Description

aptly does not clean itself

there needs to be a regular measure of repo_cleanup.rb + restarting the aptly service

sitter created this task.Mar 31 2017, 8:36 AM
scarlettclark closed this task as Resolved.Jun 13 2017, 3:55 PM
bshah added a subscriber: bshah.Jun 13 2017, 4:53 PM
21:28 <bshah> there is also a step which needs to be done manually typically.. aptly db cleanup
21:28 <bshah> https://www.aptly.info/doc/aptly/db/cleanup/ 
21:29 <bshah> otherwise this build (mgmt_repo_cleanup_*) just removes them from published repository and not from the actual disk
21:29 <bshah> but bad thing is.. aptly db cleanup have no api endpoint

So, as I understand once mgmt_repo_cleanup is finishes, you need to stop aptly api service, run aptly db cleanup command and then restart api service..