From: Walter A. Boring IV Date: Thu, 11 Jun 2015 17:07:23 +0000 (-0700) Subject: LVM add multiattach flag capability X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=56544a1665c3d4151c37425d48f3d8bbd4d439d9;p=openstack-build%2Fcinder-build.git LVM add multiattach flag capability 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 --- diff --git a/cinder/volume/drivers/lvm.py b/cinder/volume/drivers/lvm.py index 317d983df..ee82210e3 100644 --- a/cinder/volume/drivers/lvm.py +++ b/cinder/volume/drivers/lvm.py @@ -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)