cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject git commit: updated refs/heads/master-6-17-stable to 298f521
Date Thu, 04 Jul 2013 08:54:12 GMT
Updated Branches:
  refs/heads/master-6-17-stable 7e862be24 -> 298f52161


CLOUDSTACK-3267
Improved logging by logging the memory values when exception is thrown for the constraint
Signed off by : nitin mehta<nitin.mehta@citrix.com>


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

Branch: refs/heads/master-6-17-stable
Commit: 298f52161a07c903b5b450e0c7dce1e785c0baab
Parents: 7e862be
Author: Nitin Mehta <nitin.mehta@citrix.com>
Authored: Thu Jul 4 14:22:51 2013 +0530
Committer: Nitin Mehta <nitin.mehta@citrix.com>
Committed: Thu Jul 4 14:23:26 2013 +0530

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/298f5216/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
index 11e75ab..55af908 100644
--- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
+++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
@@ -638,7 +638,8 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
         Long newDynamicMemoryMin = vmSpec.getMinRam();
         Long newDynamicMemoryMax = vmSpec.getMaxRam();
         if (staticMemoryMin > newDynamicMemoryMin || newDynamicMemoryMax > staticMemoryMax)
{
-            throw new CloudRuntimeException("Cannot scale up the vm because of memory constraint
violation: 0 <= memory-static-min <= memory-dynamic-min <= memory-dynamic-max <=
memory-static-max ");
+            throw new CloudRuntimeException("Cannot scale up the vm because of memory constraint
violation: " +
+                    "0 <= memory-static-min(" +staticMemoryMin+ ") <= memory-dynamic-min("
+newDynamicMemoryMin+ ") <= memory-dynamic-max(" +newDynamicMemoryMax+ ") <= memory-static-max("
+staticMemoryMax+ ")");
         }
 
         vm.setMemoryDynamicRange(conn, newDynamicMemoryMin, newDynamicMemoryMax);


Mime
View raw message