mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
d70076e6a5
commit
f53a063d14
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue