1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

F #1542: vCenter hot disk resize (#4199)

Signed-off-by: Carlos Herrera <cherrera@opennebula.systems>
This commit is contained in:
Carlos J. Herrera 2020-02-17 10:48:23 -05:00 committed by GitHub
parent a1adf5e064
commit a94e2f6ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -55,11 +55,6 @@ one_vm = VCenterDriver::VIHelper.one_item(OpenNebula::VirtualMachine, vmid)
vm_ref = one_vm['DEPLOY_ID']
begin
# This action is only possible when VM in ACTIVE / DISK_RESIZE_POWEROFF
if one_vm['LCM_STATE'].to_i != 63
raise "'disk-resize' operation not supported for vCenter running VMs."
end
vi_client = VCenterDriver::VIClient.new_from_host(host_id)
vm = VCenterDriver::VirtualMachine.new(vi_client, vm_ref, vmid)

View File

@ -27,6 +27,6 @@ LOCAL_ACTIONS="${LOCAL_ACTIONS},post,clean"
LOCAL_ACTIONS="${LOCAL_ACTIONS},snapshotcreate,snapshotrevert,snapshotdelete"
LOCAL_ACTIONS="${LOCAL_ACTIONS},attach_nic,detach_nic,reset"
LOCAL_ACTIONS="${LOCAL_ACTIONS},prereconfigure,reconfigure"
LOCAL_ACTIONS="${LOCAL_ACTIONS},attach_disk,detach_disk"
LOCAL_ACTIONS="${LOCAL_ACTIONS},attach_disk,detach_disk,resize_disk"
exec $MAD_LOCATION/one_vmm_exec -l $LOCAL_ACTIONS $*

View File

@ -1 +1 @@
../common/not_supported.sh
../common/dummy.sh