Fixing some more issues in management server (do not know why this was not backported)

This commit is contained in:
abhishek 2010-08-17 10:04:09 -07:00
parent 1a0415601f
commit b0cfdf1f37
1 changed files with 7 additions and 1 deletions

8
server/src/com/cloud/server/ManagementServerImpl.java Executable file → Normal file
View File

@ -369,7 +369,8 @@ public class ManagementServerImpl implements ManagementServer {
private boolean _isHypervisorSnapshotCapable = false;
private final int _maxVolumeSizeInGb;
protected ManagementServerImpl() {
ComponentLocator locator = ComponentLocator.getLocator(Name);
_lunDao = locator.getDao(PreallocatedLunDao.class);
@ -463,6 +464,11 @@ public class ManagementServerImpl implements ManagementServer {
// Parse the max number of UserVMs and public IPs from server-setup.xml,
// and set them in the right places
String maxVolumeSizeInGbString = _configs.get("max.volume.size.gb");
int maxVolumeSizeGb = NumbersUtil.parseInt(maxVolumeSizeInGbString, 2000);
_maxVolumeSizeInGb = maxVolumeSizeGb;
_routerRamSize = NumbersUtil.parseInt(_configs.get("router.ram.size"),NetworkManager.DEFAULT_ROUTER_VM_RAMSIZE);
_proxyRamSize = NumbersUtil.parseInt(_configs.get("consoleproxy.ram.size"), ConsoleProxyManager.DEFAULT_PROXY_VM_RAMSIZE);