]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
rbd: update volume<->image copying
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 13 Feb 2013 02:18:39 +0000 (18:18 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 13 Feb 2013 19:13:29 +0000 (11:13 -0800)
commit029435c9288d82dee5dd1113c3553ddb5b97c740
tree04003f493f2edf2d0749e7d859df5cc33967b736
parent275ce2d171d847ede99162a3dbf85d87999a7298
rbd: update volume<->image copying

Use fetch_to_raw() to convert from any format when
copying an image.

Fix two bugs in copy_image_to_volume():
 1) use rbd format 2 if supported
 2) resize to match the expected volume size

Also implement copy_volume_to_image().

Change-Id: I5589666c33ead087876e850363ad869050120882
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cinder/tests/test_rbd.py
cinder/volume/drivers/rbd.py