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:06:49 UTC

git commit: updated refs/heads/4.5 to 659edb4

Repository: cloudstack
Updated Branches:
  refs/heads/4.5 b4a5a32a7 -> 659edb4d9


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>


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

Branch: refs/heads/4.5
Commit: 659edb4d9b64377a52eb587ab07039e6badb604e
Parents: b4a5a32
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:34:43 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/659edb4d/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 b9ed37e..e82a210 100755
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -1358,7 +1358,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);