'Return the keys and values updated from NFS for migrated volume.
This method should rename the back-end volume name(id) on the
destination host back to its original name(id) on the source host.
:param ctxt: The context used to run the method update_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):

    name_id = None
    if (original_volume_status == 'available'):
        current_name = (CONF.volume_name_template % new_volume.id)
        original_volume_name = (CONF.volume_name_template % volume.id)
        current_path = self.local_path(new_volume)
        original_path = current_path.replace(current_name, original_volume_name)
        try:
            os.rename(current_path, original_path)
        except OSError:
            LOG.error('Unable    to    rename    the    logical    volume    for    volume:    %s', volume.id)
            name_id = (new_volume._name_id or new_volume.id)
    else:
        name_id = (new_volume._name_id or new_volume.id)
    return {'_name_id': name_id, 'provider_location': new_volume.provider_location}
