Skip to content

Commit

Permalink
ovirt: Reconcile disk on USER_UPDATE_VM_DISK
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nijinashok authored and ahadas committed Nov 12, 2023
1 parent 01d5ca6 commit 3e165da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/provider/container/ovirt/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3e165da

Please sign in to comment.