backup archives should always contain the same files

Bug #1399303 reported by Eric Snow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

...for the same juju version.

Currently we are not including four different files if they don't exist on the host (see state/backups/files.go). Instead backup should fail with a meaningful error if any of the files do not exist.

An alternative is to make it clear via a manifest file in the archive as to which files are in all archives, which are supplemental (i.e. optional) and which ones were missing. However, this only covers up the fact that some data a user may have wanted (e.g. logs) was left out.

Another alternative is to give users the option (in the CLI and API client) to allow files to be missing. The default would be to require that all files be included.

Revision history for this message
Nate Finch (natefinch) wrote :

It seems to me, as a consumer of backups, that I would not feel very trusting of a backup that didn't always contain the same stuff. If sometimes some of it could be missing, how do I know that it's not just a bug? Also, if it seems like the usefulness of any particular file in a backup is binary - either it's useful enough to backup, or it's not. It shouldn't ever just be there "some of the time if it's handy and easy to get".

I'm also definitely against any kind of manifest. The backup file should be opaque to users. It should be a blob they never need to get into. IF they ever do, it should be the exception, not the rule. At best, this kind of information about optional files should simply be in the help for backups somewhere. ...but again, the idea of optional data in backups seems incredibly wrong to me.

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.22 → 1.23
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → none
importance: High → Medium
Changed in juju-core:
status: Triaged → Won't Fix
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.