From: Mike Perez Date: Thu, 12 Mar 2015 06:37:38 +0000 (-0700) Subject: Datera driver looks for lun-0 instead lun-1 now X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a4c111feb5e90ba8d17153e4d297a842b6a9d9f0;p=openstack-build%2Fcinder-build.git Datera driver looks for lun-0 instead lun-1 now In exports this changed for the Datera solution. This was done to support older systems. Closes-Bug: #1431175 Change-Id: If5ef68bd065b98d0f8b991344a1c001a21dbf4da --- diff --git a/cinder/volume/drivers/datera.py b/cinder/volume/drivers/datera.py index 8481363d8..2c3a71978 100644 --- a/cinder/volume/drivers/datera.py +++ b/cinder/volume/drivers/datera.py @@ -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