]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add support for z/VM driver.
authorYi Chun, Huang <hychuang@cn.ibm.com>
Thu, 29 May 2014 10:10:50 +0000 (06:10 -0400)
committerYi Chun, Huang <hychuang@cn.ibm.com>
Thu, 29 May 2014 10:10:50 +0000 (06:10 -0400)
Add 'FCP' into connection_info in initialize_connection
in order to support IBM z/VM hypervisors. This change only
because z/VM need FCP(fibre channel port) info while other
platform don't need it. It will not have side effect
to other platforms since they can safely ignore it.

Change-Id: Ib2d72969608a84a7a200b96da3eefb3ccc13a096
Closes-Bug: #1323993

cinder/volume/drivers/ibm/storwize_svc/__init__.py

index e2bd9ea9b7ce40e216a6edf96280926e34b3b465..79ee5e26998fc493616bf5bfb92edb469ac35855 100644 (file)
@@ -431,6 +431,10 @@ class StorwizeSVCDriver(san.SanDriver):
                 i_t_map = self._make_initiator_target_map(connector['wwpns'],
                                                           conn_wwpns)
                 properties['initiator_target_map'] = i_t_map
+
+                # specific for z/VM, refer to cinder bug 1323993
+                if "zvm_fcp" in connector:
+                    properties['zvm_fcp'] = connector['zvm_fcp']
         except Exception:
             with excutils.save_and_reraise_exception():
                 self.terminate_connection(volume, connector)