mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-7348 InvalidParameter Exception while executing scale vm.
We do not throw the exceptions any more, so added info in the logs to say what happend to this command. Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com> (cherry picked from commit 659edb4d9b64377a52eb587ab07039e6badb604e)
This commit is contained in:
parent
c8901a7990
commit
2783cf540b
@ -1364,7 +1364,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
||||
Account caller = CallContext.current().getCallingAccount();
|
||||
VMInstanceVO vmInstance = _vmInstanceDao.findById(vmId);
|
||||
if (vmInstance.getHypervisorType() != HypervisorType.XenServer && vmInstance.getHypervisorType() != HypervisorType.VMware) {
|
||||
throw new InvalidParameterValueException("This operation not permitted for this hypervisor of the vm");
|
||||
s_logger.info("Scaling the VM dynamically is not supported for VMs running on Hypervisor "+vmInstance.getHypervisorType());
|
||||
throw new InvalidParameterValueException("Scaling the VM dynamically is not supported for VMs running on Hypervisor "+vmInstance.getHypervisorType());
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(caller, null, true, vmInstance);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user