]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add support for backing up volume metadata
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Tue, 15 Oct 2013 18:01:06 +0000 (19:01 +0100)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Sat, 15 Feb 2014 12:24:52 +0000 (12:24 +0000)
commit432a47cbc03414ca7ee6565c9dbcc91d7bf675fb
treec2a8b132949e9827e13c6815f09fd111f81cfdc7
parent58ae3f2842183adc62d78147e1fc09a6434eae41
Add support for backing up volume metadata

This commit adds a new versioned api to the backup driver base
class which all backup driver implementations should use in order
to support backing up volume metadata as well as data. The general
rule here is that we backup all metadata from a set of db tables
and can then be selective about what we restore.

As part of this commit, Ceph backup driver implements the new api
to backup volume metadata (including glance metadata) thus
supporting restoring volumes as bootable.

It is expected that the other backup driver implementations will
follow suit and adopt this approach.

Implements: blueprint cinder-backup-volume-metadata-support
Fixes: bug 1137908
Change-Id: Icf2f1202d827d2435e09f5dad0f6f022f35dceee
cinder/backup/driver.py
cinder/backup/drivers/ceph.py
cinder/backup/drivers/swift.py
cinder/backup/drivers/tsm.py
cinder/exception.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_backup_driver_base.py [new file with mode: 0644]
etc/cinder/cinder.conf.sample