]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Adds xiv_chap to xiv/ds8k driver configuration
authoralonma <alonma@il.ibm.com>
Thu, 20 Mar 2014 17:41:56 +0000 (19:41 +0200)
committeralonma <alonma@il.ibm.com>
Thu, 20 Mar 2014 18:42:39 +0000 (20:42 +0200)
In order to support CHAP, xiv_chap was added to
the driver configuration. Valid values are disabled
and enabled (default: disabled)

Change-Id: I0c68f581ad78a87a506b00ab308806f4a8fa78a8
DocImpact
Closes-Bug: #1288816

cinder/tests/test_ibm_xiv_ds8k.py
cinder/volume/drivers/ibm/xiv_ds8k.py
etc/cinder/cinder.conf.sample

index 519bc3ac09cfdd6233f5a68a3e926a9e52853fe6..1ce1d7eae1baf8bb664335773cffcf78f5c191a1 100644 (file)
@@ -124,6 +124,7 @@ class XIVDS8KVolumeDriverTest(test.TestCase):
         configuration.xiv_ds8k_proxy = \
             'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver'
         configuration.xiv_ds8k_connection_type = 'iscsi'
+        configuration.xiv_chap = 'disabled'
         configuration.san_ip = FAKE
         configuration.san_login = FAKE
         configuration.san_clustername = FAKE
index af50e22aca49466bf4612d5e1fcd1bfbe606a983..179c5d6030658a930737bfb23fa50978677faea8 100644 (file)
@@ -39,6 +39,11 @@ xiv_ds8k_opts = [
         default='iscsi',
         help='Connection type to the IBM Storage Array'
         ' (fibre_channel|iscsi)'),
+    cfg.StrOpt(
+        'xiv_chap',
+        default='disabled',
+        help='CHAP authentication mode, effective only for iscsi'
+        ' (disabled|enabled)'),
 ]
 
 CONF = cfg.CONF
@@ -71,7 +76,8 @@ class XIVDS8KDriver(san.SanDriver):
                 "xiv_ds8k_address": self.configuration.san_ip,
                 "xiv_ds8k_vol_pool": self.configuration.san_clustername,
                 "xiv_ds8k_connection_type":
-                self.configuration.xiv_ds8k_connection_type
+                self.configuration.xiv_ds8k_connection_type,
+                "xiv_chap": self.configuration.xiv_chap
             },
             LOG,
             exception,
index 88b80282260fbadbaf3aecbbe189a206b22f40e1..cfb4465b2d1f75482eaf965fb89c8d40edbddef0 100644 (file)
 # (fibre_channel|iscsi) (string value)
 #xiv_ds8k_connection_type=iscsi
 
+# CHAP authentication mode, effective only for iscsi
+# (disabled|enabled) (string value)
+#xiv_chap=disabled
+
 
 #
 # Options defined in cinder.volume.drivers.lvm