'Return the update from ScaleIO migrated volume.
This method updates the volume name of the new ScaleIO volume to
match the updated volume ID.
The original volume is renamed first since ScaleIO does not allow
multiple volumes to have the same name.'

def update_migrated_volume(self, ctxt, volume, new_volume, original_volume_status):

    name_id = None
    location = None
    if (original_volume_status == 'available'):
        current_name = new_volume['id']
        new_name = volume['id']
        vol_id = new_volume['provider_id']
        LOG.info('Renaming    %(id)s    from    %(current_name)s    to    %(new_name)s.', {'id': vol_id, 'current_name': current_name, 'new_name': new_name})
        self._rename_volume(volume, ('ff' + new_name))
        self._rename_volume(new_volume, new_name)
    else:
        name_id = (new_volume['_name_id'] or new_volume['id'])
        location = new_volume['provider_location']
    return {'_name_id': name_id, 'provider_location': location}
