]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix wrong arg number for _fix_id_migration issue
authorMike Perez <thingee@gmail.com>
Tue, 28 Oct 2014 21:48:50 +0000 (14:48 -0700)
committerMike Perez <thingee@gmail.com>
Tue, 28 Oct 2014 21:48:50 +0000 (14:48 -0700)
If the provider_location doesn't contain the name of the volume, TGT and
ISER will fail on doing a id migration, due to wrong number of
arguments.

Change-Id: I420ceaf14edfb6a0e3b8fd1f50070dc70b6f16bd
Closes-Bug: #1386902

cinder/volume/iscsi.py

index 3835ff578c3f0117d4feafc4d919b1cf7e58b298..5e5e824cae3f7d0a6d36a34e003e7616077dacf6 100644 (file)
@@ -103,7 +103,7 @@ class _ExportMixin(object):
 
             msg = _('Detected inconsistency in provider_location id')
             LOG.debug('%s', msg)
-            old_name = self._fix_id_migration(context, volume)
+            old_name = self._fix_id_migration(context, volume, vg_name)
             if 'in-use' in volume['status']:
                 old_name = None
         self.create_iscsi_target(iscsi_name, iscsi_target, 0, volume_path,