You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2015/03/16 08:08:02 UTC

git commit: updated refs/heads/master to 2783cf5

Repository: cloudstack
Updated Branches:
  refs/heads/master c8901a799 -> 2783cf540


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 <ra...@gmail.com>
(cherry picked from commit 659edb4d9b64377a52eb587ab07039e6badb604e)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2783cf54
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2783cf54
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2783cf54

Branch: refs/heads/master
Commit: 2783cf540b15323b9fc1e0ced0ad850f694ed479
Parents: c8901a7
Author: Bharat Kumar <bh...@citrix.com>
Authored: Tue Nov 11 19:34:35 2014 +0530
Committer: Rajani Karuturi <ra...@gmail.com>
Committed: Mon Mar 16 12:37:45 2015 +0530

----------------------------------------------------------------------
 server/src/com/cloud/vm/UserVmManagerImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2783cf54/server/src/com/cloud/vm/UserVmManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java
index eb9e0da..46275be 100644
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -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);