Boto backend removes local cache if connection cannot be made
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
duplicity (Ubuntu) |
Fix Released
|
Medium
|
Louis Bouchard | ||
Precise |
Fix Released
|
Medium
|
Louis Bouchard | ||
Quantal |
Won't Fix
|
Medium
|
Louis Bouchard | ||
Saucy |
Fix Released
|
Medium
|
Louis Bouchard |
Bug Description
N.B. This should not be released until after deja-dup - bug 1281066.
SRU Justification
[Impact]
* When there is no connection to the S3 backend, the local cache files are deleted.
[Test Case]
1. disable the connection to S3
2. run a "collection-status" (basically I run 'duply X status')
[Regression Potential]
* Already fixed in latest duplicity. Needs to be fixed in lockstep with deja-dup as it Breaks: deja-dup (<< 27.3.1-0ubuntu2 ).
--
When there is no connection to the S3 backend, the local cache files are deleted. To reproduce:
1. disable the connection to S3
2. run a "collection-status" (basically I run 'duply X status')
You'll get a bunch of these:
Deleting local /srv/duply-
Deleting local /srv/duply-
This is fatal if you run it in a configuration using GPG and having only the public key for encryption as well as a separate signing key. Then you cannot backup any more, as the decrypted local cache has been deleted and the files on the S3 are encrypted.
Probably reason:
There is no check if the connection to the backend could be established
Workaround:
If you replace at
the line
return []
with
return None
Then duplicity will crash instead of deleting the local files. Not the proper solution but at least you can do a backup when the connection comes back up.
Related branches
- duplicity-team: Pending requested
-
Diff: 25 lines (+2/-2)2 files modifiedduplicity/backends/_boto_multi.py (+1/-1)
duplicity/backends/_boto_single.py (+1/-1)
Changed in duplicity: | |
status: | New → Confirmed |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in duplicity: | |
status: | Confirmed → Fix Committed |
assignee: | Louis Bouchard (louis-bouchard) → nobody |
Changed in duplicity (Ubuntu Precise): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in duplicity (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in duplicity (Ubuntu): | |
status: | Triaged → In Progress |
Changed in duplicity: | |
milestone: | none → 0.6.23 |
Changed in duplicity: | |
importance: | Undecided → Medium |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Changed in duplicity (Ubuntu Quantal): | |
status: | New → In Progress |
Changed in duplicity (Ubuntu Saucy): | |
status: | New → In Progress |
Changed in duplicity (Ubuntu Quantal): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in duplicity (Ubuntu Saucy): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in duplicity (Ubuntu Quantal): | |
importance: | Undecided → Medium |
Changed in duplicity (Ubuntu Saucy): | |
importance: | Undecided → Medium |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
tags: |
added: verification-done-saucy removed: verification-done |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in duplicity (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in duplicity (Ubuntu Quantal): | |
status: | In Progress → Won't Fix |
"Fix Committed"? Where can I find the fix?