]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Clone volume with right size with SolidFire
authorMathieu Gagné <mgagne@iweb.com>
Sat, 31 Aug 2013 01:59:59 +0000 (21:59 -0400)
committerMathieu Gagné <mgagne@iweb.com>
Sat, 31 Aug 2013 02:03:53 +0000 (22:03 -0400)
commit0a87ff988cd21586daeb6ed886e44aedaa49c320
tree96ca7184dea4d81431cc928b984d9427764a92a3
parent432f819b467236ab41d6c9ac30f669f18ae55dd3
Clone volume with right size with SolidFire

It is possible to clone a volume with a size greater than
the source volume. When using the SolidFire driver, the volume size
was not passed in the call made to the SolidFire API when
cloning a volume.

It resulted in a cloned volume having the same size as the source
volume but the correct size in the Cinder database.

This changes makes sure the cloned volume has the correct size
by explicitly passing the requested size when calling
the SolidFire API and cloning the volume.

Fixes: bug #1219105
Change-Id: I5628c7fa922780d6b0601e2daa79310a61085edc
cinder/volume/drivers/solidfire.py