mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-8911: VM start job got stuck in loop looking for suitable host
This commit is contained in:
parent
3ded3e9000
commit
2d34036a28
@ -297,6 +297,7 @@ public class FirstFitAllocator extends AdapterBase implements HostAllocator {
|
||||
s_logger.debug("Host name: " + host.getName() + ", hostId: " + host.getId() +
|
||||
" already has max Running VMs(count includes system VMs), skipping this and trying other available hosts");
|
||||
}
|
||||
avoid.addHost(host.getId());
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -305,6 +306,7 @@ public class FirstFitAllocator extends AdapterBase implements HostAllocator {
|
||||
ServiceOfferingDetailsVO groupName = _serviceOfferingDetailsDao.findDetail(serviceOfferingId, GPU.Keys.pciDevice.toString());
|
||||
if(!_resourceMgr.isGPUDeviceAvailable(host.getId(), groupName.getValue(), offeringDetails.getValue())){
|
||||
s_logger.info("Host name: " + host.getName() + ", hostId: "+ host.getId() +" does not have required GPU devices available");
|
||||
avoid.addHost(host.getId());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user