'Fetch the image from image_service and create a volume using it.'

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

    vhd_type = self._tgt_utils.get_supported_vhd_type()
    with image_utils.temporary_file(suffix='.vhd') as tmp:
        volume_path = self.local_path(volume)
        image_utils.fetch_to_vhd(context, image_service, image_id, tmp, self.configuration.volume_dd_blocksize)
        self._tgt_utils.change_wt_disk_status(volume.name, enabled=False)
        os.unlink(volume_path)
        self._vhdutils.convert_vhd(tmp, volume_path, vhd_type)
        self._vhdutils.resize_vhd(volume_path, (volume.size << 30), is_file_max_size=False)
        self._tgt_utils.change_wt_disk_status(volume.name, enabled=True)
