weizhouapache commented on code in PR #10603:
URL: https://github.com/apache/cloudstack/pull/10603#discussion_r2007440003
##########
server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java:
##########
@@ -203,8 +203,7 @@ public List<Host> allocateTo(VirtualMachineProfile
vmProfile, DeploymentPlan pla
if (clusterHosts.isEmpty()) {
- logger.error("No suitable host found for vm [{}] with tags [{}].",
vmProfile, hostTagOnOffering);
- throw new CloudRuntimeException(String.format("No suitable host
found for vm [%s].", vmProfile));
+ logger.warn("No suitable host found for VM [{}] with tags {} in
{}.", vmProfile, hostTagOnOffering, paramAsStringToLog);
Review Comment:
it looks like `return null;` appears in #8611 but is missing
@Pearl1594
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]