[ https://issues.apache.org/jira/browse/CLOUDSTACK-1945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13642269#comment-13642269 ]
Prachi Damle commented on CLOUDSTACK-1945: ------------------------------------------ This is same as CLOUDSTACK-2158. Resolving as fixed. Commit hash: 232d44bf6e31898887b324bcdebbc659423917e4 CLOUDSTACK-2158: 'userconcentratedpod_firstfit failed to find alternate host to run VM In the applicationContext .xml , the context of the 'UserConcentratedPodPlanner' needs to include the list of allocators. This will ensure that when this component is loaded by Spring, the allocators gets initialized. Contained in branches: master Contained in no tag > Deploy VM failed when global setting "vm.allocation.algorithm" is set to > "userdispersing" > ----------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-1945 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1945 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Environment: VMware - > Build Master : Revision: 4f9bdba2815510d55cbf0727f80fe57b14023022 > Reporter: Rayees Namathponnan > Assignee: Prachi Damle > Fix For: 4.2.0 > > Attachments: CLOUDSTACK-1945.rar > > > Step 1 : Create and install a master build (Revision: > 4f9bdba2815510d55cbf0727f80fe57b14023022) > Step 2 : Create advanced zone > Step 3 : "vm.allocation.algorithm" is set to "userdispersing" > Step 4 : Deploy a VM > VM deployment failed with null pointer exception > 2013-04-04 14:58:48,483 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) DeploymentPlanner allocation algorithm: userdispersing > 2013-04-04 14:58:48,483 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) Trying to allocate a host and storage pools from > dc:1, pod:null,cluster:null, requested cpu: 1000, requested ram: 1073741824 > 2013-04-04 14:58:48,483 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) Is ROOT volume READY (pool already allocated)?: No > 2013-04-04 14:58:48,483 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) Searching all possible resources under this Zone: 1 > 2013-04-04 14:58:48,485 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) Listing clusters in order of aggregate capacity, that > have (atleast one host with) enough CPU and RAM capacity under this Zone: 1 > 2013-04-04 14:58:48,506 DEBUG [cloud.deploy.UserDispersingPlanner] > (Job-Executor-1:job-28) Applying Userdispersion heuristic to clusters for > account: 2 > 2013-04-04 14:58:48,544 DEBUG [cloud.deploy.FirstFitPlanner] > (Job-Executor-1:job-28) Checking resources in Cluster: 1 under Pod: 1 > 2013-04-04 14:58:48,546 DEBUG [cloud.vm.UserVmManagerImpl] > (Job-Executor-1:job-28) Destroying vm VM[User|a] as it failed to create on > Host with Id:null > 2013-04-04 14:58:48,556 DEBUG [cloud.capacity.CapacityManagerImpl] > (Job-Executor-1:job-28) VM state transitted from :Stopped to Error with > event: OperationFailedToErrorvm's original host id: null new host id: null > host id before state transition: null > 2013-04-04 14:58:48,591 WARN [apache.cloudstack.alerts] > (Job-Executor-1:job-28) alertType:: 8 // dataCenterId:: 1 // podId:: null // > clusterId:: null // message:: Failed to deploy Vm with Id: 9, on Host with > Id: null > 2013-04-04 14:58:48,646 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-1:job-28) Unexpected exception while executing > org.apache.cloudstack.api.command.user.vm.DeployVMCmd > java.lang.NullPointerException > at > com.cloud.deploy.FirstFitPlanner.findSuitableHosts(FirstFitPlanner.java:719) > at > com.cloud.deploy.FirstFitPlanner.checkClustersforDestination(FirstFitPlanner.java:532) > at > com.cloud.deploy.FirstFitPlanner.scanClustersForDestinationInZoneOrPod(FirstFitPlanner.java:400) > at com.cloud.deploy.FirstFitPlanner.plan(FirstFitPlanner.java:295) > at > org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:166) > at > org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3006) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2605) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2591) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:379) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > 2013-04-04 14:58:48,647 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-1:job-28) Complete async job-28, jobStatus: 2, resultCode: 530, > result: Error Code: 530 Error text: null > 2013-04-04 14:58:51,387 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) > ===START=== 10.216.132.71 -- GET > command=queryAsyncJobResult&jobId=835d0cd4-8faf-4564-93bc-fb4728a3ebec&response=json&sessionkey=wRfo5w6qeKWoA9axMX1ndfBYPQ8%3D&_=1365112505711 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira