Librarian doesn't remove expired files

Bug #290744 reported by Stuart Bishop
6
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Stuart Bishop

Bug Description

LibraryFileAlias records can be given an expiry date, but the Librarian Garbage Collector never removes them.

For every LibraryFileContent, if there are no unexpired LibraryFileAlias records referencing it it should get its 'deleted' flag set. The existing rules will take care of the rest.

Stuart Bishop (stub)
Changed in launchpad:
status: New → Triaged
assignee: nobody → stub
Revision history for this message
Stuart Bishop (stub) wrote :

Should be a simple fix, but it needs solid tests. Losas can increase importance if disk usage starts scaring them again.

Changed in launchpad:
importance: Undecided → Medium
Stuart Bishop (stub)
Changed in launchpad-foundations:
milestone: none → 2.1.12
Stuart Bishop (stub)
Changed in launchpad-foundations:
milestone: 2.1.12 → 2.2.1
Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Triaged → In Progress
Revision history for this message
Tom Haddon (mthaddon) wrote :

We are back to 3% free disk space on the librarian server.

Changed in launchpad-foundations:
importance: Medium → Critical
Revision history for this message
Tom Haddon (mthaddon) wrote :

Based on current space usage estimates, we're going to run out in about 2-3 weeks.

Revision history for this message
Stuart Bishop (stub) wrote :

Landed as r7509.

Relevant changed files are lib/canonical/librarian/librariangc.py and cronscripts/librarian-gc.py if you want to avoid a full cherry pick - just copying them to mizuho and running the garbage collector once should free up some space and keep us alive until next full rollout.

Changed in launchpad-foundations:
status: In Progress → Fix Committed
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

That was cherry-picked to Mizuho today.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.