mirror of https://github.com/apache/cloudstack.git
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:
parent
d4d91f355d
commit
44c080da11
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue