cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject git commit: updated refs/heads/master to a1d09ae
Date Wed, 13 Nov 2013 19:01:59 GMT
Updated Branches:
  refs/heads/master 401e0ca0b -> a1d09ae16


XS host free memory might change, if user manually changes dom0 memory,
this patch makes CS update latest XS host free memory on host connect process.


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

Branch: refs/heads/master
Commit: a1d09ae16f08c86bfca5c4a89dec371ef6d3ee67
Parents: 401e0ca
Author: Anthony Xu <anthony.xu@citrix.com>
Authored: Wed Nov 13 10:57:19 2013 -0800
Committer: Anthony Xu <anthony.xu@citrix.com>
Committed: Wed Nov 13 10:59:36 2013 -0800

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java  | 2 +-
 server/src/com/cloud/capacity/CapacityManagerImpl.java             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a1d09ae1/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 aadfc17..7a112ae 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
@@ -6035,7 +6035,7 @@ public abstract class CitrixResourceBase implements ServerResource,
HypervisorRe
             Set<VM> vms = host.getResidentVMs(conn);
             for (VM vm : vms) {
                 if (vm.getIsControlDomain(conn)) {
-                    dom0Ram = vm.getMemoryDynamicMax(conn);
+                    dom0Ram = vm.getMemoryStaticMax(conn);
                     break;
                 }
             }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a1d09ae1/server/src/com/cloud/capacity/CapacityManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/capacity/CapacityManagerImpl.java b/server/src/com/cloud/capacity/CapacityManagerImpl.java
index 70491bc..19cf70e 100755
--- a/server/src/com/cloud/capacity/CapacityManagerImpl.java
+++ b/server/src/com/cloud/capacity/CapacityManagerImpl.java
@@ -589,7 +589,7 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager,
 
         CapacityVO cpuCap = _capacityDao.findByHostIdType(host.getId(), CapacityVO.CAPACITY_TYPE_CPU);
         CapacityVO memCap = _capacityDao.findByHostIdType(host.getId(), CapacityVO.CAPACITY_TYPE_MEMORY);
-
+        memCap.setTotalCapacity(host.getTotalMemory());
         if (cpuCap != null && memCap != null){
 
             long hostTotalCpu = host.getCpus().longValue() * host.getSpeed().longValue();


Mime
View raw message