bef9086897
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
|
||
---|---|---|
.. | ||
__init__.py | ||
test_backup_ceph.py | ||
test_backup_driver_base.py | ||
test_backup_glusterfs.py | ||
test_backup_google.py | ||
test_backup_nfs.py | ||
test_backup_posix.py | ||
test_backup_swift.py | ||
test_backup_tsm.py |