'Fetch the image from image_service and write it to the volume.'

def copy_image_to_volume(self, context, volume, image_service, image_id):

    volume_path = self.local_path(volume)
    volume_format = self.get_volume_format(volume, qemu_format=True)
    self._delete(volume_path)
    image_utils.fetch_to_volume_format(context, image_service, image_id, volume_path, volume_format, self.configuration.volume_dd_blocksize)
    self._vhdutils.resize_vhd(self.local_path(volume), (volume.size * units.Gi), is_file_max_size=False)
