cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [4/4] git commit: updated refs/heads/4.2 to f53a063
Date Tue, 16 Jul 2013 20:42:14 GMT
CloudStack-2155: Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule
is not honored.

Changes:
Removing the code that works with volume reservation. This is not used currently.


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

Branch: refs/heads/4.2
Commit: f53a063d1481c5a6d495efcd939197db2ab6299a
Parents: d70076e
Author: Prachi Damle <prachi@cloud.com>
Authored: Tue Jul 16 13:10:34 2013 -0700
Committer: Prachi Damle <prachi@cloud.com>
Committed: Tue Jul 16 13:41:19 2013 -0700

----------------------------------------------------------------------
 .../engine/cloud/entity/api/VMEntityManagerImpl.java        | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f53a063d/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java
----------------------------------------------------------------------
diff --git a/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java
b/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java
index 90c1db5..8336c3f 100755
--- a/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java
+++ b/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java
@@ -221,15 +221,6 @@ public class VMEntityManagerImpl implements VMEntityManager {
         VMReservationVO vmReservation = _reservationDao.findByReservationId(reservationId);
         if(vmReservation != null){
             // Pass it down
-            Long poolId = null;
-            Map<Long, Long> storage = vmReservation.getVolumeReservation();
-            if (storage != null) {
-                List<Long> volIdList = new ArrayList<Long>(storage.keySet());
-                if (volIdList != null && !volIdList.isEmpty()) {
-                    poolId = storage.get(volIdList.get(0));
-                }
-            }
-
             DataCenterDeployment reservedPlan = new DataCenterDeployment(vm.getDataCenterId(),
                     vmReservation.getPodId(), vmReservation.getClusterId(), vmReservation.getHostId(),
null, null);
             try {


Mime
View raw message