You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Please re-try when virtual disk is attached to a VM using SCSI controller.");
703
703
}
704
704
705
+
if (vdisk.second() != null && !vdisk.second().toLowerCase().startsWith("scsi"))
706
+
{
707
+
s_logger.error("Unsupported disk device bus "+ vdisk.second());
708
+
thrownewException("Unsupported disk device bus "+ vdisk.second());
709
+
}
705
710
VirtualDiskdisk = vdisk.first();
711
+
if ((VirtualDiskFlatVer2BackingInfo)disk.getBacking() != null && ((VirtualDiskFlatVer2BackingInfo)disk.getBacking()).getParent() != null)
712
+
{
713
+
s_logger.error("Resize is not supported because Disk device has Parent "+ ((VirtualDiskFlatVer2BackingInfo)disk.getBacking()).getParent().getUuid());
714
+
thrownewException("Resize is not supported because Disk device has Parent "+ ((VirtualDiskFlatVer2BackingInfo)disk.getBacking()).getParent().getUuid());
715
+
}
706
716
StringvmdkAbsFile = getAbsoluteVmdkFile(disk);
707
717
if (vmdkAbsFile != null && !vmdkAbsFile.isEmpty()) {
if (volume.getVolumeType().equals(Volume.Type.ROOT) && userVm.getPowerState()!= VirtualMachine.PowerState.PowerOff && hypervisorType == HypervisorType.VMware){
1030
+
s_logger.error(" For ROOT volume resize VM should be in Power Off state.");
1031
+
thrownewInvalidParameterValueException("VM current state is : "+userVm.getPowerState()+ ". But VM should be in "+VirtualMachine.PowerState.PowerOff+" state.");
s_logger.warn("If Root disk controller parameter is not overridden, then Root disk resize may fail because current Root disk controller value is NULL.");
s_logger.debug("Root disk size specified is " + (rootDiskSize << 30) + " and Template root disk size is " + templateVO.getSize()+" . Both are equal so no need to override");
0 commit comments