ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
VMware 6.5
CloudStack 4.14
SUMMARY
When trying to resize ROOT volume of a VM in VMware, CloudStack checks for VM status and force user to power it off before ROOT disk resize.
But I can expand ROOT disk without need to power off the VM from vSphere 6.5 UI.
It seems this constrain is not necessary.
The line of code which causes this result:
|
if (volume.getVolumeType().equals(Volume.Type.ROOT) && userVm.getPowerState() != VirtualMachine.PowerState.PowerOff && hypervisorType == HypervisorType.VMware) { |
STEPS TO REPRODUCE
Create a new VM
Check VM is powered on
Resize ROOT disk
EXPECTED RESULTS
ROOT disk resize successfully.
ACTUAL RESULTS
Error message that ask to power off the VM before resize.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
VMware 6.5
CloudStack 4.14
SUMMARY
When trying to resize ROOT volume of a VM in VMware, CloudStack checks for VM status and force user to power it off before ROOT disk resize.
But I can expand ROOT disk without need to power off the VM from vSphere 6.5 UI.
It seems this constrain is not necessary.
The line of code which causes this result:
cloudstack/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
Line 1095 in 58a0a7b
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS