juju-upgrader should check disk space and manage juju backups
Bug #1816517 reported by
Paul Gear
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?
Related branches
~hloeung/juju-upgrader:cleanup
- Loïc Gomez: Approve (+1)
- Canonical IS Reviewers: Pending requested
-
Diff: 88 lines (+30/-0)2 files modifiedjuju-upgrader (+5/-0)
juju_utils.py (+25/-0)
tags: | added: canonical-is |
To post a comment you must log in.
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.