]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor Swift backup driver and introduce chunking driver
authorTom Barron <tpb@dyncloud.net>
Thu, 15 Jan 2015 23:03:16 +0000 (18:03 -0500)
committerTom Barron <tpb@dyncloud.net>
Tue, 10 Mar 2015 20:14:08 +0000 (16:14 -0400)
commit2f701a39208f9396893cd8a57165e37cfeb6fc2f
treebb8ce4594037fd6a600b3a787f35b0ad90c444ab
parentb7452ac30bc803a864600a868afd1ab647f59263
Refactor Swift backup driver and introduce chunking driver

Abstract out a "chunked" backup driver class between the top
abstract backup driver class and the Swift backup driver class
which implements common functionality for backup drivers that
store volume data in multiple "chunks" in a backup repository
when the size of the backed up cinder volume exceeds the size
of a backup repository "chunk."

The Swift driver itself is reworked to extend the chunked
backup driver and implement abstract methods defined in the
chunked backup driver.  It is expected that posix filesystem
and NFS backup drivers will also extend the chunked backup
driver.

Co-authors: Kevin Fox <kevin@efox.cc>
            Tom Barron <tpb@dyncloud.net>

Implements: blueprint chunked-backup-base-class

Change-Id: Ifbd1462ceb9b98bd8a6d72e5725399474eedf60e
cinder/backup/chunkeddriver.py [new file with mode: 0644]
cinder/backup/drivers/swift.py
cinder/tests/test_backup_swift.py