]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
3PAR enable multiattach capability reporting
authorWalter A. Boring IV <walter.boring@hp.com>
Wed, 13 May 2015 16:24:49 +0000 (09:24 -0700)
committerWalter A. Boring IV (hemna) <walter.boring@hp.com>
Fri, 12 Jun 2015 16:03:18 +0000 (16:03 +0000)
This patch enables the reporting of the
multiattach capability in get_volume_stats.
The scheduler currently filters on the capability
for drivers that support/don't support that ability
to do more than one attachment for a volume.
By reporting multiattach = True, it lets the scheduler
know this driver allows attaching a volume more than once.

Change-Id: Ia18414bbadff14777c2266b681c03c76a2aa6889

cinder/volume/drivers/san/hp/hp_3par_common.py

index ff52768d5c0603de1a96017569642229ec2719af..9b2d70afefb8893693764e25bc574cc16ea52775 100644 (file)
@@ -175,10 +175,11 @@ class HP3PARCommon(object):
         2.0.40 - Make the 3PAR drivers honor the pool in create  bug #1432876
         2.0.41 - Only log versions at startup.  bug #1447697
         2.0.42 - Fix type for snapshot config settings. bug #1461640
+        2.0.43 - Report the capability of supporting multiattach
 
     """
 
-    VERSION = "2.0.42"
+    VERSION = "2.0.43"
 
     stats = {}
 
@@ -743,7 +744,8 @@ class HP3PARCommon(object):
                     'total_volumes': total_volumes,
                     'capacity_utilization': capacity_utilization,
                     'filter_function': filter_function,
-                    'goodness_function': goodness_function
+                    'goodness_function': goodness_function,
+                    'multiattach': True,
                     }
 
             pools.append(pool)