server: print log on INFO if Host reached Max Guests Limit (#3013)

This should not be in DEBUG as people would want to know that the host was skipped
because it didn't have enough slots available to run the VM.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
This commit is contained in:
Wido den Hollander 2018-11-12 07:09:17 +01:00 committed by Rohit Yadav
parent d4d91f355d
commit 44c080da11
1 changed files with 2 additions and 4 deletions

View File

@ -1126,10 +1126,8 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager,
String hypervisorVersion = host.getHypervisorVersion();
Long maxGuestLimit = _hypervisorCapabilitiesDao.getMaxGuestsLimit(hypervisorType, hypervisorVersion);
if (vmCount.longValue() >= maxGuestLimit.longValue()) {
if (s_logger.isDebugEnabled()) {
s_logger.debug("Host name: " + host.getName() + ", hostId: " + host.getId() + " already reached max Running VMs(count includes system VMs), limit is: " +
maxGuestLimit + ",Running VM counts is: " + vmCount.longValue());
}
s_logger.info("Host name: " + host.getName() + ", hostId: " + host.getId() + " already reached max Running VMs(count includes system VMs), limit: " +
maxGuestLimit + ", Running VM count: " + vmCount.longValue());
return true;
}
return false;