From f61b3bd0beb52808383358de15df39dcaf2aa60c Mon Sep 17 00:00:00 2001 From: Mike Perez Date: Tue, 28 Oct 2014 14:48:50 -0700 Subject: [PATCH] Fix wrong arg number for _fix_id_migration issue 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/iscsi.py b/cinder/volume/iscsi.py index 3835ff578..5e5e824ca 100644 --- a/cinder/volume/iscsi.py +++ b/cinder/volume/iscsi.py @@ -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, -- 2.45.2