Fixed the issue - VM deployment for local service offering for Root and with data disk(shared), was deploying data disk to local disk too. Currently there is no way to let the planner know multiple pool information, hence letting the planner search for a pool always during VM deployment.

This commit is contained in:
Prachi Damle 2013-04-10 10:46:53 -07:00
parent ed79b8bf14
commit ee0a91d111
2 changed files with 21 additions and 20 deletions

View File

@ -207,7 +207,7 @@ public class VMEntityManagerImpl implements VMEntityManager {
} }
DataCenterDeployment plan = new DataCenterDeployment(vm.getDataCenterId(), vmReservation.getPodId(), vmReservation.getClusterId(), DataCenterDeployment plan = new DataCenterDeployment(vm.getDataCenterId(), vmReservation.getPodId(), vmReservation.getClusterId(),
vmReservation.getHostId(), poolId , null); vmReservation.getHostId(), null , null);
VMInstanceVO vmDeployed = _itMgr.start(vm, params, _userDao.findById(new Long(caller)), _accountDao.findById(vm.getAccountId()), plan); VMInstanceVO vmDeployed = _itMgr.start(vm, params, _userDao.findById(new Long(caller)), _accountDao.findById(vm.getAccountId()), plan);

View File

@ -157,7 +157,8 @@ public class FirstFitPlanner extends PlannerBase implements DeploymentPlanner {
if(plan.getHostId() != null && haVmTag == null){ if(plan.getHostId() != null && haVmTag == null){
Long hostIdSpecified = plan.getHostId(); Long hostIdSpecified = plan.getHostId();
if (s_logger.isDebugEnabled()){ if (s_logger.isDebugEnabled()){
s_logger.debug("DeploymentPlan has host_id specified, making no checks on this host, looks like admin test: "+hostIdSpecified); s_logger.debug("DeploymentPlan has host_id specified, choosing this host and making no checks on this host: "
+ hostIdSpecified);
} }
HostVO host = _hostDao.findById(hostIdSpecified); HostVO host = _hostDao.findById(hostIdSpecified);
if (s_logger.isDebugEnabled()) { if (s_logger.isDebugEnabled()) {