deb-cinder/cinder
Gorka Eguileor 535e717970 NFS Backup: Fix overwritting backups
When using the NFS backup driver if we do multiple backups using the
same container we end up overwriting older backups.

The issue comes from a misunderstanding in the Posix backup driver of
the purpose of the "prefix" metadata used in the ChunkedBackupDriver
base class.

This prefix is for the name of the backup objects to store, but unlike
the prefix for the volumes, here it must be unique as the base driver
will only add numbers to identify the chunk (for the volume we add the
volume id).  Unfortunately the Posix driver just assumed that the prefix
had the same meaning as the prefix for volumes thus making one backups
override one another.

This patch changes the prefix generated by the Posix driver so we have
the following format: "volume_$VOL_ID_$TIMESTAMP_backup_$BACK_ID", thus
allowing multiple backups in the same container.

The new name is backward compatible with existing backups because the
new prefix will only be used on new backups as the prefix for already
existing backups is stored in the DB.

Change-Id: I2903c27633facde6370d95ba0b9e06025ccaef26
Closes-Bug: #1628768
2017-05-18 10:38:58 +02:00
..
api Merge "Don't return empty volume_image_metadata when list volume" 2017-05-17 20:08:57 +00:00
backup NFS Backup: Fix overwritting backups 2017-05-18 10:38:58 +02:00
brick Give more time for LVM deactivation 2017-04-28 14:14:16 -05:00
cmd Merge "Make cinder-manage online migrations more verbose" 2017-03-27 10:14:48 +00:00
common Modernize the nova client in cinder 2017-05-07 19:22:03 +02:00
compute Modernize the nova client in cinder 2017-05-07 19:22:03 +02:00
config genopts: Fix python 3 compat, sort options 2017-05-04 14:30:21 -04:00
consistencygroup Merge "Add quota limit check and enhance roll back for cg create" 2017-03-20 13:13:08 +00:00
db Merge "Fix host check in is_backend_frozen" 2017-05-03 21:04:40 +00:00
group Fix for Group API update to include check policy 2017-04-13 03:54:43 -04:00
hacking Remove hacking check for log translation 2017-03-18 03:00:12 -05:00
image Merge "qemu_img_info: report 'luks' images as 'raw'" 2017-05-02 17:31:46 +00:00
interface Fix some format error in docstrings 2017-03-30 10:01:18 +08:00
keymgr Remove log translations 2017-03-19 14:59:57 +00:00
locale Imported Translations from Zanata 2016-10-15 07:34:30 +00:00
message Improve help for periodic message_reap_interval 2017-04-19 10:03:52 -05:00
objects Trivial fix typos while reading code 2017-05-04 10:27:57 +07:00
scheduler Modernize the nova client in cinder 2017-05-07 19:22:03 +02:00
tests NFS Backup: Fix overwritting backups 2017-05-18 10:38:58 +02:00
transfer Trivial fix typos while reading code 2017-05-04 10:27:57 +07:00
volume Merge "Fix forceful deletion of Consistency Group for GPFS Driver" 2017-05-18 07:21:10 +00:00
wsgi Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
zonemanager Fix some format error in docstrings 2017-03-30 10:01:18 +08:00
__init__.py Set EVENTLET_NO_GREENDNS for IPv6 and dnspython compat 2016-11-11 13:19:07 -06:00
context.py Remove log translations 2017-03-19 14:59:57 +00:00
coordination.py Remove log translations 2017-03-19 14:59:57 +00:00
exception.py Implementation of cinder driver for Veritas HyperScale 2017-03-28 21:40:51 +05:30
flow_utils.py Fix logging traceback in service logs 2016-12-20 12:39:07 +05:30
i18n.py Remove log translations 2017-03-19 14:59:57 +00:00
manager.py Remove log translations 2017-03-19 14:59:57 +00:00
opts.py Dell EMC: Moved SC driver under dell_emc 2017-05-15 13:15:54 -05:00
policy.py Use to_policy_values for enforcing policy 2016-09-13 01:13:15 +00:00
quota.py Remove log translations 2017-03-19 14:59:57 +00:00
quota_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
rpc.py Merge "Remove old oslo.messaging transport aliases" 2017-03-27 16:34:25 +00:00
service.py Use HostAddressOpt for opts that accept IP and hostnames 2017-04-05 22:19:06 -04:00
ssh_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
test.py Trivial fix typos while reading code 2017-05-04 10:27:57 +07:00
utils.py Merge "validate_integer doesn't check non int properly" 2017-05-02 17:46:52 +00:00
version.py