backups fail if there are any directories in the backup directory
Bug #1603126 reported by
Tom Haddon
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If there are any directories in the current backup directory, it will fail to run:
$ python /var/lib/
Traceback (most recent call last):
File "/var/lib/
remove(
OSError: [Errno 21] Is a directory: '/srv/mnt/
This can happen if a previous run has failed for some reason, and will prevent any further runs from completing.
Related branches
lp:~evarlast/charms/trusty/mongodb/fix-backup
- Stuart Bishop (community): Approve
- Brad Crittenden (community): Approve
- Cory Johns (community): Needs Information
- Review Queue (community): Needs Fixing (automated testing)
- Marco Ceppi: Pending requested
- Charles Butler: Pending requested
-
Diff: 47 lines (+11/-3)2 files modifiedhooks/hooks.py (+1/-1)
templates/backup.py.tpl (+10/-2)
Changed in mongodb (Juju Charms Collection): | |
status: | New → Fix Committed |
Changed in mongodb (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.