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
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,