OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.23k stars 478 forks source link

Allow MEMORY_RESIZE_MODE to be set via API Call #6593

Open dann1 opened 4 months ago

dann1 commented 4 months ago

Description Changing the MEMORY_RESIZE_MODE to an existing VM only has the libvirt/KVM limitation of the VM being POWEROFF/undefined. Once the VM instance exists in OpenNebula, it is not possible to change the resize mode with an API Call, like one.vm.update because the resize mode lives on the VM.TEMPLATE section instead of the VM.USER_TEMPLATE section.

This results in the need to undeploy the VM which might not be feasible or hack the VM instance template with onedb update-body which is a risky alternative.

Use case Allow to change the memory resize mode of existing VM instances without hacky workarounds.

Interface Changes

Progress Status