abh1sar commented on code in PR #12232:
URL: https://github.com/apache/cloudstack/pull/12232#discussion_r2654492079


##########
server/src/main/java/com/cloud/hypervisor/KVMGuru.java:
##########
@@ -132,7 +132,8 @@ protected void setVmQuotaPercentage(VirtualMachineTO to, 
VirtualMachineProfile v
             VirtualMachine vm = vmProfile.getVirtualMachine();
             HostVO host = hostDao.findById(vm.getHostId());
             if (host == null) {
-                throw new CloudRuntimeException("Host with id: " + 
vm.getHostId() + " not found");
+                logger.warn("Host is not available. Skipping CPU quota 
calculation for VM: {}", vm);

Review Comment:
   ```suggestion
                   logger.warn("Host is not available. Skipping setting CPU 
quota percentage for VM: {}", vm);
   ```



-- 
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]

Reply via email to