]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Storwize driver report capability for multiattach
authorTaoBai <baitaosh@cn.ibm.com>
Thu, 25 Jun 2015 08:49:36 +0000 (01:49 -0700)
committerTaoBai <baitaosh@cn.ibm.com>
Fri, 26 Jun 2015 05:25:22 +0000 (22:25 -0700)
The driver report the capability "multiattach=True"

Implements blueprint: multi-attach-volume

Change-Id: I2b145cac3390a84e65ef9229f9e18d236dbc96aa

cinder/volume/drivers/ibm/storwize_svc/__init__.py

index 5bd324f3a511cbe748b6c11d8a2c86e26df2a46b..50fe5d9d76cba0f025ed0c6d0feda21debab00ef 100644 (file)
@@ -1088,6 +1088,8 @@ class StorwizeSVCDriver(san.SanDriver):
         data['total_capacity_gb'] = 0  # To be overwritten
         data['free_capacity_gb'] = 0   # To be overwritten
         data['reserved_percentage'] = self.configuration.reserved_percentage
+        data['multiattach'] = (self.configuration.
+                               storwize_svc_multihostmap_enabled)
         data['QoS_support'] = True
         data['consistencygroup_support'] = True