'Return model update for migrated volume.
:param volume: The original volume that was migrated to this backend
:param new_volume: The migration volume object that was created on
this backend as part of the migration process
:param original_volume_status: The status of the original volume
:returns: model_update to update DB with any needed changes'

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

    original_volume_name = volume.get('id')
    current_name = new_volume.get('id')
    provider_id = new_volume.get('provider_id')
    LOG.debug('update_migrated_volume:    %(current)s    to    %(original)s', {'current': current_name, 'original': original_volume_name})
    if original_volume_name:
        with self._client.open_connection() as api:
            scvolume = api.find_volume(current_name, provider_id)
            if (scvolume and api.rename_volume(scvolume, original_volume_name)):
                model_update = self._create_replications(api, new_volume, scvolume)
                model_update['_name_id'] = None
                model_update['provider_id'] = scvolume['instanceId']
                return model_update
    LOG.error('Unable    to    rename    the    logical    volume    for    volume:    %s', original_volume_name)
    return {'_name_id': (new_volume['_name_id'] or new_volume['id'])}
