]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
add ability to clone images
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 14 Aug 2012 19:27:48 +0000 (12:27 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 15 Aug 2012 21:32:19 +0000 (14:32 -0700)
commitedc11101cbc06bdce95b10cfd00a4849f6c01b33
treefe9f52bd18508fb72abb2d087ff1e105bfd88379
parent87ba5de73e82ae1a68a23c3eb245fac68597c3e3
add ability to clone images

Given the backend location from Glance, drivers can determine
whether they can clone or otherwise efficiently create a volume
from the image without downloading all the data from Glance.

For now implement cloning for the RBD driver. There's already a
Glance backend that stores images as RBD snapshots, so they're
ready to be cloned into volumes. Fall back to copying all the
data if cloning is not possible.

Change-Id: I71a8172bd22a5bbf64d4c68631630125fcc7fd34
Implements: blueprint efficient-volumes-from-images
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cinder/tests/test_rbd.py [new file with mode: 0644]
cinder/volume/api.py
cinder/volume/driver.py
cinder/volume/manager.py