mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3042: handle System VM Scaling up of memory/CPU based on the presence of tools in the template
Signed off by : Nitin Mehta<nitin.mehta@citrix.com>
This commit is contained in:
parent
8672e0fb94
commit
f12adfff8a
|
|
@ -735,6 +735,7 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements ConsoleProxy
|
|||
|
||||
ConsoleProxyVO proxy = new ConsoleProxyVO(id, _serviceOffering.getId(), name, template.getId(), template.getHypervisorType(), template.getGuestOSId(), dataCenterId, systemAcct.getDomainId(),
|
||||
systemAcct.getId(), 0, _serviceOffering.getOfferHA());
|
||||
proxy.setDynamicallyScalable(template.isDynamicallyScalable());
|
||||
proxy = _consoleProxyDao.persist(proxy);
|
||||
try {
|
||||
_itMgr.allocate(name, template, _serviceOffering, networks, plan, null);
|
||||
|
|
|
|||
|
|
@ -1639,6 +1639,7 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
VirtualMachineName.getRouterName(id, _instance), template.getId(), template.getHypervisorType(),
|
||||
template.getGuestOSId(), owner.getDomainId(), owner.getId(), isRedundant, 0, false,
|
||||
RedundantState.UNKNOWN, offerHA, false, vpcId);
|
||||
router.setDynamicallyScalable(template.isDynamicallyScalable());
|
||||
router.setRole(Role.VIRTUAL_ROUTER);
|
||||
router = _routerDao.persist(router);
|
||||
_itMgr.allocate(router.getInstanceName(), template, routerOffering, networks, plan, null);
|
||||
|
|
|
|||
|
|
@ -573,6 +573,7 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements Secondar
|
|||
|
||||
SecondaryStorageVmVO secStorageVm = new SecondaryStorageVmVO(id, _serviceOffering.getId(), name, template.getId(), template.getHypervisorType(), template.getGuestOSId(), dataCenterId,
|
||||
systemAcct.getDomainId(), systemAcct.getId(), role, _serviceOffering.getOfferHA());
|
||||
secStorageVm.setDynamicallyScalable(template.isDynamicallyScalable());
|
||||
secStorageVm = _secStorageVmDao.persist(secStorageVm);
|
||||
try {
|
||||
_itMgr.allocate(name, template, _serviceOffering, networks, plan, null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue