summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Pchelintsev <Ivan.Pchelintsev@dell.com>2020-06-02 16:36:53 +0300
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2020-06-03 22:55:21 +0000
commit89bdebd2a92f83a199c86855a63fd3deab9a489c (patch)
tree53f6af29fe94b09607b984409cfa8b841d97454e
parent6de15e346bdd5986f67dc7c79ddb5e407880e3e0 (diff)
downloadcinder-89bdebd2a92f83a199c86855a63fd3deab9a489c.tar.gz
Remove VxFlex OS credentials from connection_properties
VxFlex OS password is not stored in block_device_mapping table. Instead of this passwords are stored in separate file and are retrieved during each attach/detach operation. The stable/queens branch is in Extended Maintenance mode and is no longer released from. If you decide to apply this patch to your deployment, you must make a corresponding change to the os-brick library. You can find the os-brick patch for stable/queens here: https://review.opendev.org/#/c/733104 Additionally, you must deploy a new configuration file on compute nodes, cinder nodes, and anywhere you would perform a volume attachment in your deployment. See the documentation change on this patch for details about the new config file. See OSSN-0086 for more information about this change: https://wiki.openstack.org/wiki/OSSN/OSSN-0086 Closes-Bug: #1823200 Change-Id: I831321d12a6df2b950f05e2452710b9ae105ada4
-rw-r--r--cinder/volume/drivers/dell_emc/scaleio/driver.py6
-rw-r--r--doc/source/configuration/block-storage/drivers/dell-emc-scaleio-driver.rst27
2 files changed, 30 insertions, 3 deletions
diff --git a/cinder/volume/drivers/dell_emc/scaleio/driver.py b/cinder/volume/drivers/dell_emc/scaleio/driver.py
index 12c92b284..02766d552 100644
--- a/cinder/volume/drivers/dell_emc/scaleio/driver.py
+++ b/cinder/volume/drivers/dell_emc/scaleio/driver.py
@@ -145,9 +145,10 @@ class ScaleIODriver(driver.VolumeDriver):
2.0.2: Added consistency group support to generic volume groups
2.0.3: Added cache for storage pool and protection domains info
2.0.4: Added compatibility with os_brick>1.15.3
+ 2.0.4.1: Fix for Bug #1823200. See OSSN-0086 for details.
"""
- VERSION = "2.0.4"
+ VERSION = "2.0.4.1"
# ThirdPartySystems wiki
CI_WIKI_NAME = "DELL_EMC_ScaleIO_CI"
@@ -221,8 +222,7 @@ class ScaleIODriver(driver.VolumeDriver):
'serverIP': self.server_ip,
'serverPort': self.server_port,
'serverUsername': self.server_username,
- 'serverPassword': self.server_password,
- 'serverToken': self.server_token,
+ 'config_group': self.configuration.config_group,
'iopsLimit': None,
'bandwidthLimit': None,
}
diff --git a/doc/source/configuration/block-storage/drivers/dell-emc-scaleio-driver.rst b/doc/source/configuration/block-storage/drivers/dell-emc-scaleio-driver.rst
index e8da78049..efc82e52d 100644
--- a/doc/source/configuration/block-storage/drivers/dell-emc-scaleio-driver.rst
+++ b/doc/source/configuration/block-storage/drivers/dell-emc-scaleio-driver.rst
@@ -202,6 +202,33 @@ parameters as follows:
san_password = SIO_PASSWD
san_thin_provision = false
+Connector configuration
+~~~~~~~~~~~~~~~~~~~~~~~
+
+Before using attach/detach volume operations VxFlex OS connector must be
+properly configured. On each node where VxFlex OS SDC is installed do the
+following:
+
+#. Create ``/opt/emc/scaleio/openstack/connector.conf`` if it does not
+ exist.
+
+ .. code-block:: console
+
+ $ mkdir -p /opt/emc/scaleio/openstack
+ $ touch /opt/emc/scaleio/openstack/connector.conf
+
+#. For each VxFlex OS section in the ``cinder.conf`` create the same section in
+ the ``/opt/emc/scaleio/openstack/connector.conf`` and populate it with
+ passwords. Example:
+
+ .. code-block:: ini
+
+ [vxflexos]
+ san_password = SIO_PASSWD
+
+ [vxflexos-new]
+ san_password = SIO2_PASSWD
+
Configuration options
~~~~~~~~~~~~~~~~~~~~~