CLOUDSTACK-7763 Reservations for VMware VMs remain after dynamic scaling

This commit is contained in:
Bharat Kumar 2014-10-22 11:29:22 +05:30 committed by Kishan Kavala
parent cf27ecd91d
commit ea99ff1c86

View File

@ -1281,7 +1281,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
VmwareHypervisorHost hyperHost = getHyperHost(context);
VirtualMachineMO vmMo = hyperHost.findVmOnHyperHost(cmd.getVmName());
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
int ramMb = (int)(vmSpec.getMinRam() / (1024 * 1024));
int ramMb = getReservedMemoryMb(vmSpec);
long hotaddIncrementSizeInMb;
long hotaddMemoryLimitInMb;
long requestedMaxMemoryInMb = vmSpec.getMaxRam() / (1024 * 1024);