mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
Signed-off-by: Carlos Herrera <cherrera@opennebula.systems>
This commit is contained in:
parent
a1adf5e064
commit
a94e2f6ee8
@ -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)
|
||||
|
||||
|
@ -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 $*
|
||||
|
@ -1 +1 @@
|
||||
../common/not_supported.sh
|
||||
../common/dummy.sh
|
Loading…
Reference in New Issue
Block a user