From: Walter A. Boring IV Date: Wed, 13 May 2015 16:24:49 +0000 (-0700) Subject: 3PAR enable multiattach capability reporting X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5f0bd84fc0f6c4db32ec2c73b9ff3a25fbcf35c0;p=openstack-build%2Fcinder-build.git 3PAR enable multiattach capability reporting 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 --- diff --git a/cinder/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py index ff52768d5..9b2d70afe 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_common.py +++ b/cinder/volume/drivers/san/hp/hp_3par_common.py @@ -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)