]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
CoraidDriver: Create_volume_from_snapshot of a different size
authorJean-Baptiste Ransy <jean-baptiste.ransy@alyseo.com>
Thu, 20 Jun 2013 15:39:45 +0000 (17:39 +0200)
committerJean-Baptiste Ransy <jean-baptiste.ransy@alyseo.com>
Tue, 2 Jul 2013 09:20:06 +0000 (11:20 +0200)
commit1410af4214379da13b10baec3ddb37cbce7e5eb6
tree563ace217d77821f8c5716b2233e3a89fb5fdb46
parente3abee82df2f21e2bd68118813e687dc1b82ff78
CoraidDriver: Create_volume_from_snapshot of a different size

When you create a Volume from a Snapshot, the 'size' argument for the
new volume isn't used at all.
So, the new volume created will be created (successfully but) with the
same size as the snapshot size.

Cinder think the volume has been created with the right size.

We just need to call Coraid ESM LV Resize with the REST API after
the volume has been created.

Fixes bug 1158959

Change-Id: I760fe1ba4052bb2d5b1a1a5c55c9a976522af107
cinder/tests/test_coraid.py
cinder/volume/drivers/coraid.py