]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add interface class for backup drivers
authorMarc Koderer <m.koderer@telekom.de>
Thu, 27 Jun 2013 10:05:56 +0000 (12:05 +0200)
committerMarc Koderer <m.koderer@telekom.de>
Mon, 8 Jul 2013 09:26:56 +0000 (11:26 +0200)
commite2a58aa47dc94fecf314d7b7c786d8feccfc0946
tree48591f5f0c1d0dcd524483ce457043a9419a8f49
parentfaffe83d88276633fb701996b0e44f34b7a2daa0
Add interface class for backup drivers

This fix introduces an interface class to define the structure of all backup
drivers. It also renames backup/service to backup/driver.
To be backward compatible a mapping functionality is introduced to map old
backup services to backup drivers.

Implements: blueprint refactor-backup-service

Change-Id: Ic3fca567111f4bd1b221689c73cd5c3bab4a777b
12 files changed:
cinder/backup/driver.py [new file with mode: 0644]
cinder/backup/drivers/__init__.py [moved from cinder/backup/services/__init__.py with 100% similarity]
cinder/backup/drivers/ceph.py [moved from cinder/backup/services/ceph.py with 97% similarity]
cinder/backup/drivers/swift.py [moved from cinder/backup/services/swift.py with 98% similarity]
cinder/backup/manager.py
cinder/tests/backup/fake_service.py
cinder/tests/conf_fixture.py
cinder/tests/fake_flags.py
cinder/tests/test_backup.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_backup_swift.py
etc/cinder/cinder.conf.sample