'Copies the remote cached image to the provided volume.
Executes the copy offload binary which copies the cached image to
the destination path of the provided volume. Also registers the new
copy of the image as a cached image.'

def _copy_from_remote_cache(self, volume, image_id, cache_copy):

    (nfs_share, file_name) = cache_copy
    col_path = self.configuration.netapp_copyoffload_tool_path
    (src_ip, src_path) = self._get_source_ip_and_path(nfs_share, file_name)
    (dest_ip, dest_path) = self._get_destination_ip_and_path(volume)
    self._execute(col_path, src_ip, dest_ip, src_path, dest_path, run_as_root=False, check_exit_code=0)
    self._register_image_in_cache(volume, image_id)
    LOG.debug('Copied    image    from    cache    to    volume    %s    using    copy    offload.', volume['id'])
