From aa8544d3d8ab55967bf2b1e1659f32c8a2c56dbe Mon Sep 17 00:00:00 2001 From: Arik Hadas Date: Wed, 24 Jul 2024 11:11:06 +0300 Subject: [PATCH] ovirt: preserve disk's serial In oVirt, the 'serial' of disks is set to their disk ID. We have noticed that it could be useful for users to preserve the serial that is set in oVirt in order to maintain correlations between disks and their configuration within the guest operating system so we now provide the 'serial' as an input to KubeVirt to achieve this. [1] https://github.com/oVirt/ovirt-engine/blame/ovirt-engine-4.5.3.z/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/builder/vminfo/LibvirtVmXmlBuilder.java#L2215 Signed-off-by: Arik Hadas --- pkg/controller/plan/adapter/ovirt/builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/plan/adapter/ovirt/builder.go b/pkg/controller/plan/adapter/ovirt/builder.go index bc6f5f0e3..a2c8cc55f 100644 --- a/pkg/controller/plan/adapter/ovirt/builder.go +++ b/pkg/controller/plan/adapter/ovirt/builder.go @@ -479,6 +479,7 @@ func (r *Builder) mapDisks(vm *model.Workload, persistentVolumeClaims []*core.Pe Bus: cnv.DiskBus(bus), }, }, + Serial: da.Disk.ID, } } volume := cnv.Volume{