Skip to content

Commit f12adff

Browse files
Harikrishna Patnalanitinmeh
authored andcommitted
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>
1 parent 8672e0f commit f12adff

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ protected Map<String, Object> createProxyInstance(long dataCenterId, HypervisorT
735735

736736
ConsoleProxyVO proxy = new ConsoleProxyVO(id, _serviceOffering.getId(), name, template.getId(), template.getHypervisorType(), template.getGuestOSId(), dataCenterId, systemAcct.getDomainId(),
737737
systemAcct.getId(), 0, _serviceOffering.getOfferHA());
738+
proxy.setDynamicallyScalable(template.isDynamicallyScalable());
738739
proxy = _consoleProxyDao.persist(proxy);
739740
try {
740741
_itMgr.allocate(name, template, _serviceOffering, networks, plan, null);

‎server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,7 @@ protected DomainRouterVO deployRouter(Account owner, DeployDestination dest, Dep
16391639
VirtualMachineName.getRouterName(id, _instance), template.getId(), template.getHypervisorType(),
16401640
template.getGuestOSId(), owner.getDomainId(), owner.getId(), isRedundant, 0, false,
16411641
RedundantState.UNKNOWN, offerHA, false, vpcId);
1642+
router.setDynamicallyScalable(template.isDynamicallyScalable());
16421643
router.setRole(Role.VIRTUAL_ROUTER);
16431644
router = _routerDao.persist(router);
16441645
_itMgr.allocate(router.getInstanceName(), template, routerOffering, networks, plan, null);

‎server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ protected Map<String, Object> createSecStorageVmInstance(long dataCenterId, Seco
573573

574574
SecondaryStorageVmVO secStorageVm = new SecondaryStorageVmVO(id, _serviceOffering.getId(), name, template.getId(), template.getHypervisorType(), template.getGuestOSId(), dataCenterId,
575575
systemAcct.getDomainId(), systemAcct.getId(), role, _serviceOffering.getOfferHA());
576+
secStorageVm.setDynamicallyScalable(template.isDynamicallyScalable());
576577
secStorageVm = _secStorageVmDao.persist(secStorageVm);
577578
try {
578579
_itMgr.allocate(name, template, _serviceOffering, networks, plan, null);

0 commit comments

Comments
 (0)