From 3e165dad1709a0c8befefaef8d407df2716e613d Mon Sep 17 00:00:00 2001 From: Nijin Ashok Date: Fri, 10 Nov 2023 11:19:54 +0530 Subject: [PATCH] ovirt: Reconcile disk on USER_UPDATE_VM_DISK When a disk is extended in RHV, the size was not updated in the inventory causing the VM to be imported with old disk size. This is now solved by reconciling the disk on USER_UPDATE_VM_DISK. Signed-off-by: Nijin Ashok --- pkg/controller/provider/container/ovirt/model.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controller/provider/container/ovirt/model.go b/pkg/controller/provider/container/ovirt/model.go index 1ea9f4129..89f611668 100644 --- a/pkg/controller/provider/container/ovirt/model.go +++ b/pkg/controller/provider/container/ovirt/model.go @@ -996,6 +996,7 @@ func (r *DiskAdapter) Event() []int { USER_ADD_VM_FINISHED_SUCCESS, IMPORTEXPORT_IMPORT_VM, USER_REMOVE_VM, + USER_UPDATE_VM_DISK, // StorageDomain. USER_DETACH_STORAGE_DOMAIN_FROM_POOL, USER_FORCE_REMOVE_STORAGE_DOMAIN, @@ -1064,6 +1065,7 @@ func (r *DiskAdapter) Apply(ctx *Context, event *Event) (updater Updater, err er case USER_ADD_VM, USER_ADD_VM_FINISHED_SUCCESS, IMPORTEXPORT_IMPORT_VM, + USER_UPDATE_VM_DISK, USER_REMOVE_VM: err = collection.Reconcile(desired) default: