
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
Team and repository tags
CINDER
You have come across a storage service for an open cloud computing service. It has identified itself as Cinder. It was abstracted from the Nova project.
- Wiki: https://wiki.openstack.org/Cinder
- Developer docs: https://docs.openstack.org/developer/cinder
Getting Started
If you'd like to run from the master branch, you can clone the git repo:
For developer information please see HACKING.rst
You can raise bugs here http://bugs.launchpad.net/cinder
Python client
https://git.openstack.org/cgit/openstack/python-cinderclient
Description
Languages
Python
99.7%
Smarty
0.3%