]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix ScaleIO driver provisioning key
authorXing Yang <xing.yang@emc.com>
Mon, 16 Nov 2015 04:43:25 +0000 (23:43 -0500)
committerXing Yang <xing.yang@emc.com>
Mon, 16 Nov 2015 04:44:42 +0000 (23:44 -0500)
In the ScaleIO Cinder volume driver, the parameter 'sio:provisioning'
is wrong. It should be 'sio:provisioning_type' instead. As a result of
this error, the volume is always provisioned as 'thick' even if user
wants to provision a 'thin' volume.

This patch corrects this parameter.

Closes-Bug: #1519611
Change-Id: I7c3b0256af3c30c2f375c0f9373646d3f58cd0d0

cinder/volume/drivers/emc/scaleio.py

index 8b3f68c8d01707a9a91514acb03888bb309b25ed..b9cb44ae20ae3e34f31a37c906e4ba01052128d2 100644 (file)
@@ -77,7 +77,7 @@ STORAGE_POOL_NAME = 'sio:sp_name'
 STORAGE_POOL_ID = 'sio:sp_id'
 PROTECTION_DOMAIN_NAME = 'sio:pd_name'
 PROTECTION_DOMAIN_ID = 'sio:pd_id'
-PROVISIONING_KEY = 'sio:provisioning'
+PROVISIONING_KEY = 'sio:provisioning_type'
 IOPS_LIMIT_KEY = 'sio:iops_limit'
 BANDWIDTH_LIMIT = 'sio:bandwidth_limit'