You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Rayees Namathponnan (JIRA)" <ji...@apache.org> on 2013/04/05 00:08:15 UTC
[jira] [Commented] (CLOUDSTACK-1604) deploy VM failed when global
setting "vm.allocation.algorithm" is set to "userdispersing"
[ https://issues.apache.org/jira/browse/CLOUDSTACK-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622866#comment-13622866 ]
Rayees Namathponnan commented on CLOUDSTACK-1604:
-------------------------------------------------
Still i am facing this issue with master build
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)
> deploy VM failed when global setting "vm.allocation.algorithm" is set to "userdispersing"
> -----------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-1604
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1604
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Management Server
> Affects Versions: 4.1.0, 4.2.0
> Environment: Hypervisor: KVM
> advanced zone
> Reporter: Srikanteswararao Talluri
> Assignee: Prachi Damle
> Priority: Critical
> Fix For: 4.1.0, 4.2.0
>
>
> deploy VM failed when global setting "vm.allocation.algorithm" is set to "userdispersing"
> When the same global setting is set to "random" , deploy VM is working fine.
> ======================================================
> submit async job-13, details: AsyncJobVO {id:13, userId: 2, accountId: 2, sessionKey: null, instanceType: null, instanceId: 6, cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdOriginator: null, cmdInfo: {"id":"6","response":"json","templateId":"365af95a-87fa-11e2-ae52-06ecde000018","sessionkey":"YL/4qtwgnFGy7iCjJPHZUGQd0bc\u003d","ctxUserId":"2","networkIds":"f2069501-ac19-49ea-b595-547320c13184","hypervisor":"KVM","serviceOfferingId":"0030656b-fb83-4d5b-8e58-8cdab88af071","_":"1362743622784","ctxAccountId":"2","ctxStartEventId":"17","zoneId":"371976d5-d065-4eb6-81d3-a229b7f90ce7"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 7614406590488, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-03-08 22:50:43,240 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END=== 10.252.249.183 -- GET command=deployVirtualMachine&zoneId=371976d5-d065-4eb6-81d3-a229b7f90ce7&templateId=365af95a-87fa-11e2-ae52-06ecde000018&hypervisor=KVM&serviceOfferingId=0030656b-fb83-4d5b-8e58-8cdab88af071&networkIds=f2069501-ac19-49ea-b595-547320c13184&response=json&sessionkey=YL%2F4qtwgnFGy7iCjJPHZUGQd0bc%3D&_=1362743622784
> 2013-03-08 22:50:43,242 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-13) Executing org.apache.cloudstack.api.command.user.vm.DeployVMCmd for job-13
> 2013-03-08 22:50:43,265 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-2:job-13) InfrastructureEntity name is:com.cloud.offering.ServiceOffering
> 2013-03-08 22:50:43,277 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-2:job-13) ControlledEntity name is:com.cloud.template.VirtualMachineTemplate
> 2013-03-08 22:50:43,291 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-03-08 22:50:43,296 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-2:job-13) ControlledEntity name is:com.cloud.network.Network
> 2013-03-08 22:50:43,384 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-2:job-13) Service SecurityGroup is not supported in the network id=204
> 2013-03-08 22:50:43,402 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-2:job-13) Service SecurityGroup is not supported in the network id=204
> 2013-03-08 22:50:43,455 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-2:job-13) Destroying vm VM[User|9bd96ef0-a0ad-4abe-8980-02e4e648e9b4] as it failed to create on Host with Id:null
> 2013-03-08 22:50:43,485 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-13) 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-03-08 22:50:43,499 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-03-08 22:50:43,564 INFO [user.vm.DeployVMCmd] (Job-Executor-2:job-13) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|9bd96ef0-a0ad-4abe-8980-02e4e648e9b4]Scope=interface com.cloud.dc.DataCenter; id=1
> 2013-03-08 22:50:43,565 INFO [user.vm.DeployVMCmd] (Job-Executor-2:job-13) Unable to create a deployment for VM[User|9bd96ef0-a0ad-4abe-8980-02e4e648e9b4]
> com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|9bd96ef0-a0ad-4abe-8980-02e4e648e9b4]Scope=interface com.cloud.dc.DataCenter; id=1
> at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:186)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:40)
> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at $Proxy321.reserveVirtualMachine(Unknown Source)
> at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
> at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2917)
> at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2516)
> at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2502)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.event.ActionEventInterceptor.AroundAnyMethod(ActionEventInterceptor.java:53)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:40)
> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at $Proxy260.startVirtualMachine(Unknown Source)
> at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:379)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:40)
> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
> 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:679)
> 2013-03-08 22:50:43,568 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-13) Complete async job-13, jobStatus: 2, resultCode: 530, result: Error Code: 533 Error text: Unable to create a deployment for VM[User|9bd96ef0-a0ad-4abe-8980-02e4e648e9b4]
> 2013-03-08 22:50:43,916 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 1 routers to update status.
> 2013-03-08 22:50:43,919 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> 2013-03-08 22:50:43,978 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 1 routers to update status.
> 2013-03-08 22:50:43,981 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMon
--
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