mirror of https://github.com/apache/cloudstack.git
remove capacity
This commit is contained in:
parent
2827ab2e25
commit
f3c7012508
|
|
@ -262,7 +262,8 @@ public class AlertManagerImpl implements AlertManager {
|
|||
Map<Long, ServiceOfferingVO> offeringsMap = new HashMap<Long, ServiceOfferingVO>();
|
||||
for (ServiceOfferingVO offering : offerings) {
|
||||
offeringsMap.put(offering.getId(), offering);
|
||||
}
|
||||
}
|
||||
/*
|
||||
for (HostVO host : hosts) {
|
||||
if (host.getType() != Host.Type.Routing) {
|
||||
continue;
|
||||
|
|
@ -311,7 +312,7 @@ public class AlertManagerImpl implements AlertManager {
|
|||
CapacityVO newCPUCapacity = new CapacityVO(host.getId(), host.getDataCenterId(), host.getPodId(), cpu, (long)(host.getCpus()*host.getSpeed()* _cpuOverProvisioningFactor), CapacityVO.CAPACITY_TYPE_CPU);
|
||||
newCapacities.add(newMemoryCapacity);
|
||||
newCapacities.add(newCPUCapacity);
|
||||
}
|
||||
} */
|
||||
|
||||
// Calculate storage pool capacity
|
||||
List<StoragePoolVO> storagePools = _storagePoolDao.listAll();
|
||||
|
|
|
|||
|
|
@ -363,6 +363,7 @@ public class MauriceMoss implements VmManager, ClusterManagerListener {
|
|||
throw e;
|
||||
} catch (StorageUnavailableException e) {
|
||||
s_logger.warn("Unable to contact storage.", e);
|
||||
avoids.addCluster(dest.getCluster().getId());
|
||||
continue;
|
||||
}
|
||||
_networkMgr.prepare(vmProfile, dest, context);
|
||||
|
|
|
|||
Loading…
Reference in New Issue