cinder/cinder/tests/unit/backup/drivers
wanghao bef9086897 Support Incremental Backup Completion In RBD
Ceph RBD backend ignores the `--incremental` option when creating a
volume backup. The first backup of a given volume is always a full
backup, and each subsequent backup is always an incremental backup.
This behavior makes it impossible to remove old backups while
keeping at least one recent backup.

Since Cinder will not find the latest_backup id as parent_id if
'--incremental=False', so we can use the parent_id to ensure
whether do the full backup in rbd driver or not.

If the incremental flag '--incremental' is not specified, this
patch will always create a new full backup for rbd volume.

Closes-Bug: #1810270
Closes-Bug: #1790713
Co-Authored-By: Wanghao <sxmatch1986@gmail.com>
Co-Authored-By: Sofia Enriquez <lsofia.enriquez@gmail.com>
(cherry picked from commit 5018727f8e)

Conflicts:
	cinder/tests/unit/backup/drivers/test_backup_ceph.py
Change-Id: I516b7c82b05b26e81195f7f106d43a9e0804082d
2020-02-07 18:22:44 +00:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_backup_ceph.py Support Incremental Backup Completion In RBD 2020-02-07 18:22:44 +00:00
test_backup_driver_base.py Fix how backups handle encryption key IDs 2018-01-30 22:12:49 +00:00
test_backup_glusterfs.py Add cinder backup service initialize check 2017-07-25 16:56:27 +03:00
test_backup_google.py An alternate way to fix retype notifier test case 2018-11-19 19:20:23 +08:00
test_backup_nfs.py Merge "Fix permissions with NFS-backed snapshots and backups" 2019-01-11 07:09:53 +00:00
test_backup_posix.py Don't fail when deleting missing backup 2017-10-26 09:44:53 -05:00
test_backup_swift.py Make backup_compression_algorithm case insensitive 2019-10-07 19:43:37 +00:00
test_backup_tsm.py Remove 'ln' command from rootwrap filter 2018-12-20 21:39:26 -05:00