From bfdb90ed620d6ef424188e187593940867dbaca5 Mon Sep 17 00:00:00 2001
From: Eric Young <eric.young@emc.com>
Date: Fri, 5 Jan 2018 17:24:13 -0500
Subject: [PATCH] ScaleIO: Enable multiattach for volumes

Enable the multiattach capability to allow volumes
to be attached to more than one instance

Change-Id: I1db2771f7c970341f62271a857795d413a506a34
---
 cinder/volume/drivers/dell_emc/scaleio/driver.py         | 2 ++
 .../scaleio-enable-multiattach-e7d84ffa282842e9.yaml     | 9 +++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 releasenotes/notes/scaleio-enable-multiattach-e7d84ffa282842e9.yaml

diff --git a/cinder/volume/drivers/dell_emc/scaleio/driver.py b/cinder/volume/drivers/dell_emc/scaleio/driver.py
index 8f426b7a912..3b9281ac32a 100644
--- a/cinder/volume/drivers/dell_emc/scaleio/driver.py
+++ b/cinder/volume/drivers/dell_emc/scaleio/driver.py
@@ -986,6 +986,7 @@ class ScaleIODriver(driver.VolumeDriver):
         stats['consistent_group_snapshot_enabled'] = True
         stats['thick_provisioning_support'] = True
         stats['thin_provisioning_support'] = True
+        stats['multiattach'] = True
         pools = []
 
         free_capacity = 0
@@ -1054,6 +1055,7 @@ class ScaleIODriver(driver.VolumeDriver):
                     'reserved_percentage': 0,
                     'thin_provisioning_support': True,
                     'thick_provisioning_support': True,
+                    'multiattach': True,
                     'provisioned_capacity_gb': provisioned_capacity,
                     'max_over_subscription_ratio':
                         self.configuration.max_over_subscription_ratio
diff --git a/releasenotes/notes/scaleio-enable-multiattach-e7d84ffa282842e9.yaml b/releasenotes/notes/scaleio-enable-multiattach-e7d84ffa282842e9.yaml
new file mode 100644
index 00000000000..e0e1c1cce95
--- /dev/null
+++ b/releasenotes/notes/scaleio-enable-multiattach-e7d84ffa282842e9.yaml
@@ -0,0 +1,9 @@
+---
+features:
+  - |
+    The multiattach capability has been enabled and verified
+    as working with the ScaleIO driver. It is the users’
+    responsibility to add some type of exclusion (at the file
+    system or network file system layer) to prevent multiple
+    writers from corrupting data on the volume.
+