]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Incremental backup improvements for L
authorwanghao <wanghao749@huawei.com>
Thu, 4 Jun 2015 09:50:12 +0000 (17:50 +0800)
committerwanghao <wanghao749@huawei.com>
Wed, 26 Aug 2015 06:33:14 +0000 (14:33 +0800)
commitbc804e79f5333d1aae82ec03bda1f905469ddf04
tree9e000457700528d6e480fce77f2c93a17ff32890
parenta953ecea5b4ad74ae28c8306b88e01ae6be23740
Incremental backup improvements for L

1. Add 'is_incremental=True' and 'has_dependent_backups=True/False' to
response body of querying.
2. Add parent_id to notification system.

Since we need to get volume has_dependent_backups value when querying
volume detail list, to reduce the performance impact, add index to
parent_id column in backup table.

APIImpact

When showing backup detail it will return additional info
"is_incremental": True/False and "has_dependent_backups": True/False

DocImpact
Change-Id: Id2fbf5616ba7bea847cf0443006800db89dd7c35
Implements:  blueprint cinder-incremental-backup-improvements-for-l
13 files changed:
cinder/api/views/backups.py
cinder/backup/manager.py
cinder/db/sqlalchemy/migrate_repo/versions/054_add_has_dependent_backups_column_to_backups.py [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/objects/backup.py
cinder/tests/unit/api/contrib/test_backups.py
cinder/tests/unit/fake_backup.py
cinder/tests/unit/objects/test_backup.py
cinder/tests/unit/test_backup.py
cinder/tests/unit/test_db_api.py
cinder/tests/unit/test_migrations.py
cinder/tests/unit/test_volume_utils.py
cinder/volume/utils.py