CLOUDSTACK-4313

Wrong error message is throwing on failure of dynamic scale up operation. Fix it.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
This commit is contained in:
Nitin Mehta 2013-08-16 12:57:14 +05:30
parent baf859166b
commit 088ce975c6

View File

@ -1248,7 +1248,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
// Don't allow to scale when (Any of the new values less than current values) OR (All current and new values are same)
if( (newSpeed < currentSpeed || newMemory < currentMemory || newCpu < currentCpu)
|| ( newSpeed == currentSpeed && newMemory == currentMemory && newCpu == currentCpu)){
throw new InvalidParameterValueException("Only scaling up the vm is supported, new service offering should have both cpu and memory greater than the old values");
throw new InvalidParameterValueException("Only scaling up the vm is supported, new service offering(speed="+ newSpeed + ",cpu=" + newCpu + ",memory=," + newMemory + ")" +
" should have at least one value(cpu/ram) greater than old value and no resource value less than older(speed="+ currentSpeed + ",cpu=" + currentCpu + ",memory=," + currentMemory + ")");
}
// Check resource limits