juju create-backup does not safeguard against using up all of the disk space on controller units

Bug #1693780 reported by Barry Price
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Ian Booth

Bug Description

In an HA Juju 2.1.3 environment, I ran:

$ juju create-backup --filename mybackup.tgz

The size of Juju's data store (/var/lib/juju/db) in that environment was 25GB, but none of the three HA controllers had more than 15GB available disk space.

Fortunately I noticed before we hit ENOSPACE, and managed to kill it with / at 99% full.

The create-backup routine should make a conservative guess at how much disk space will be required, and refuse to run unless the amount of free space on the target partition is greater than that number.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: enable-ha ensure-availability improvement usability
tags: added: backup-restore
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1693780] Re: juju create-backup does not safeguard against using up all of the disk space on controller units

we should decide on backup-restore or restore-backup but not mix them.

On Jan 4, 2018 00:45, "Heather Lanigan" <email address hidden> wrote:

> ** Tags added: backup-restore
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1693780
>
> Title:
> juju create-backup does not safeguard against using up all of the disk
> space on controller units
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1693780/+subscriptions
>

Revision history for this message
John A Meinel (jameinel) wrote :

I think it is sane to have us check that the target directory for the backup has at least as much free space as the size of the Mongo Database that we are backing up (ignoring the backups database itself).
We can allow passing a flag like "--ignore-free-space" to 'juju create-backup' in case we get that estimate wrong and the user needs to do it anyway. But by default, we can do some quick checks to make sure that we have a strong expectation of not filling our whole disk and breaking the backup in the first place.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.19
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Revision history for this message
Ian Booth (wallyworld) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
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.