juju-upgrader should check disk space and manage juju backups

Bug #1816517 reported by Paul Gear
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juju Upgrader
Fix Released
Undecided
Unassigned

Bug Description

For disk space, comparing free space with the amount of space used by mongodb would be a good start.

For backups, running 'juju list-backups' and if the latest version is older than 1 day, running 'juju remove-backup --keep-latest' would make sense. If the latest backup is newer than 1 day, perhaps alert the user and suggest the --no-backup flag?

Tags: canonical-is

Related branches

Revision history for this message
Loïc Gomez (kotodama) wrote :

juju-upgrader is filling up disk space, as it's not removing old backups.

It should remove very old backups before running a new backup preemptively of the upgrade, as we're very unlikely to restore a backup from previous upgrades.

Changed in juju-upgrader:
status: New → Confirmed
Loïc Gomez (kotodama)
tags: added: canonical-is
Revision history for this message
Loïc Gomez (kotodama) wrote :

Hmm actually this bug might be unrelated, opened LP:1990812 instead.

Revision history for this message
Haw Loeung (hloeung) wrote :

I'm going to close this off - per LP:1990812, we only keep one copy of the latest backup so this should be good enough.

It's hard to tell how much space is required otherwise and Juju no longer stores backups in the DB so `juju list-backups` doesn't work anymore.

Changed in juju-upgrader:
status: Confirmed → 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.