]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Datera driver looks for lun-0 instead lun-1 now
authorMike Perez <thingee@gmail.com>
Thu, 12 Mar 2015 06:37:38 +0000 (23:37 -0700)
committerMike Perez <thingee@gmail.com>
Thu, 12 Mar 2015 06:42:56 +0000 (23:42 -0700)
In exports this changed for the Datera solution. This was done to
support older systems.

Closes-Bug: #1431175
Change-Id: If5ef68bd065b98d0f8b991344a1c001a21dbf4da

cinder/volume/drivers/datera.py

index 8481363d832e5afec300b933db2571bea35ddd81..2c3a7197899e9876e171d4710a35ca0765df079f 100644 (file)
@@ -81,8 +81,9 @@ class DateraDriver(san.SanISCSIDriver):
     Version history:
         1.0 - Initial driver
         1.1 - When doing an export, look for IQN in endpoint_idents.
+        1.2 - Look for lun-0 instead of lun-1.
     """
-    VERSION = '1.1'
+    VERSION = '1.2'
 
     def __init__(self, *args, **kwargs):
         super(DateraDriver, self).__init__(*args, **kwargs)
@@ -162,7 +163,7 @@ class DateraDriver(san.SanISCSIDriver):
         iscsi_portal = export['_ipColl'][0] + ':3260'
         iqn = export['endpoint_idents'].iterkeys().next()
 
-        provider_location = '%s %s %s' % (iscsi_portal, iqn, 1)
+        provider_location = '%s %s %s' % (iscsi_portal, iqn, 0)
         model_update = {'provider_location': provider_location}
         return model_update