From 56544a1665c3d4151c37425d48f3d8bbd4d439d9 Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Thu, 11 Jun 2015 10:07:23 -0700 Subject: [PATCH] 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 --- cinder/volume/drivers/lvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.45.2