]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
NetApp: Fix volume extend with E-Series
authorMichael Price <michael.price@netapp.com>
Tue, 25 Aug 2015 22:36:44 +0000 (17:36 -0500)
committerMichael Price <michael.price@netapp.com>
Wed, 16 Sep 2015 20:15:35 +0000 (20:15 +0000)
commit6984e0921e629c8b1b6e1f160f093818d233cb2f
tree20749e84861d734aade10f9c0fbfcecf075c41df
parentde64f5ad716676b7180365798efc3ea69a4fef0e
NetApp: Fix volume extend with E-Series

Thin provisioned volumes were being converted to thick provisioned
volumes by extend_volume. When thin provisioning support was added,
the extend_volume method was not updated to use the correct API
for performing the capacity expansion operation.

This patch changes the volume extension strategy when a volume is
thin provisioned to use the correct API. With a thick provisioned
volume, a clone will be created with the new capacity, and the old
volume removed, but a thin provisioned volume's capacity can simply
be expanded directly, because that is merely the capacity that the user
sees, as opposed to the backend provisioned capacity.

Closes-Bug: 1493874
Change-Id: Iec25f29381d5fba3409d1de83bf6816ae1a9ac22
cinder/tests/unit/volume/drivers/netapp/eseries/test_client.py
cinder/tests/unit/volume/drivers/netapp/eseries/test_library.py
cinder/volume/drivers/netapp/eseries/client.py
cinder/volume/drivers/netapp/eseries/library.py