'Stores image in the cache.'

def _register_image_in_cache(self, volume, image_id):

    file_name = ('img-cache-%s' % image_id)
    LOG.info('Registering    image    in    cache    %s', file_name)
    try:
        self._do_clone_rel_img_cache(volume['name'], file_name, volume['provider_location'], file_name)
    except Exception as e:
        LOG.warning('Exception    while    registering    image    %(image_id)s    in    cache.    Exception:    %(exc)s', {'image_id': image_id, 'exc': e})
