]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
swift backup service checks version during restore
authorStephen Mulcahy <stephen.mulcahy@hp.com>
Mon, 4 Mar 2013 16:10:34 +0000 (16:10 +0000)
committerStephen Mulcahy <stephen.mulcahy@hp.com>
Mon, 4 Mar 2013 16:12:41 +0000 (16:12 +0000)
commit15962a4d13334b2265120e67ab4222b119e95c3e
tree186156b6665cd3d56402c3603e1614ab335dd417
parentf211c150cb60615fc4352bb4145dd15cac0d3fd1
swift backup service checks version during restore

Modified swift backup service to check metadata version during restore
and raise an error if the backup version isn't a version that the
service knows how to handle. The versions which can be handled are
described in a dictionary mapping versions to methods which can handle
them. This will facilitate graceful handling of newer backup formats by
the swift backup service when we introduce changes.

Fixes bug: 1136174

Change-Id: Id7d05848fd448ce21f641e5cd6945477702cbe38
cinder/backup/services/swift.py
cinder/tests/backup/fake_swift_client.py
cinder/tests/test_backup_swift.py