From a4c111feb5e90ba8d17153e4d297a842b6a9d9f0 Mon Sep 17 00:00:00 2001 From: Mike Perez Date: Wed, 11 Mar 2015 23:37:38 -0700 Subject: [PATCH] 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 --- cinder/volume/drivers/datera.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.45.2