]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
LVM add multiattach flag capability
authorWalter A. Boring IV <walter.boring@hp.com>
Thu, 11 Jun 2015 17:07:23 +0000 (10:07 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 17 Jun 2015 16:15:46 +0000 (09:15 -0700)
This patch adds reporting of the multiattach capability
in the lvm driver.   Currently the Cinder scheduler does filtering
on hosts at create time for the --allow-multiattach option being
passed into the create request from the client.   In order for someone
to be able to create an LVM volume that can do multiattach, the LVM
driver needs to report the capability.

This patch's purpose is to allow LVM volumes to be multiattachable
for the folks working on the Nova patches to get Nova to do multiattach.
Without this patch, they can't do end to end testing.

Change-Id: I91942569a12d7c7637c7d9ffb8bbff0daeaf6a97

cinder/volume/drivers/lvm.py

index 317d983df3084f245a31bd3f0903cbeeed97d107..ee82210e3bc889b0e040a682a3669cf6dfce2d9f 100644 (file)
@@ -240,7 +240,8 @@ class LVMVolumeDriver(driver.VolumeDriver):
             thick_provisioning_support=not thin_enabled,
             total_volumes=total_volumes,
             filter_function=self.get_filter_function(),
-            goodness_function=self.get_goodness_function()
+            goodness_function=self.get_goodness_function(),
+            multiattach=True
         ))
         data["pools"].append(single_pool)