]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix backup metadata import missing fields
authorGorka Eguileor <geguileo@redhat.com>
Sun, 12 Jul 2015 11:30:03 +0000 (13:30 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 1 Sep 2015 13:26:44 +0000 (15:26 +0200)
commitdbdb4cda00c01ed2ae5181e78559777216e0aa5f
tree060e9c4d6bcf0ece534e168aa6a1814173e75a8f
parent126e4f215e5fc0275a3c660990504b4e758de099
Fix backup metadata import missing fields

When importing backup metadata only required fields were being imported,
and all other fields were being ignored.

This led to some serious problems when importing backups back, since
you would lose not only the original Volume ID, but also relevant parent
id information needed to restore incremental backups.

This patch fixes this by importing everything back and creating backup
records with the right ID.

Closes-Bug: #1455043
Closes-Bug: #1476416
Depends-On: Id7ab6e174c1fe85772477f03059c4f457c5c8b17
Change-Id: Ia42ba73e9078d993c63f8e16308151ad11721ea9
cinder/backup/api.py
cinder/backup/manager.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/objects/backup.py
cinder/tests/unit/api/contrib/test_backups.py
cinder/tests/unit/objects/test_backup.py
cinder/tests/unit/test_backup.py
cinder/tests/unit/utils.py
tools/lintstack.py