You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Srikanteswararao Talluri (JIRA)" <ji...@apache.org> on 2013/12/13 16:42:09 UTC

[jira] [Created] (CLOUDSTACK-5495) [Automation] Unable to stop VM

Srikanteswararao Talluri created CLOUDSTACK-5495:
----------------------------------------------------

             Summary: [Automation] Unable to stop VM
                 Key: CLOUDSTACK-5495
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5495
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.3.0
         Environment: XenServer 6.2
advanced zone

            Reporter: Srikanteswararao Talluri
            Priority: Blocker
             Fix For: 4.3.0



Unable to Stop VM - error is hit multiple times during automation run

Here is the stack trace:
===END===  10.147.38.149 -- GET  signature=ObNDNvmDCDDBoa%2FJ%2BFOtWBiGH%2BA%3D&apiKey=-neX9tpPuZ8bg04MAmolZWYSQkgjXMRmPNxou5hJcwAUk9Ti3nQj2ii_W4WylGRUwOjo1PW233odZZUX0-1dbg&command=queryAsyncJobResult&response=json&jobid=144b5660-716f-449c-9b52-f18ba738ad28
2013-12-14 00:52:18,153 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-375:ctx-3500a12b) VM destroy failed in Stop i-271-491-QA Command due to null
You gave an invalid object reference.  The object may have recently been deleted.  The class parameter gives the type of reference given, and the handle parameter echoes the bad value given.
        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
        at com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
        at com.xensource.xenapi.VM.getPowerState(VM.java:746)
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:4168)
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:492)
        at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
        at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
        at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
        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-12-14 00:52:18,161 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-375:ctx-3500a12b) 10. The VM i-271-491-QA is in Running state
2013-12-14 00:52:18,161 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-375:ctx-3500a12b) Seq 1-494866421: Response Received:
2013-12-14 00:52:18,161 DEBUG [c.c.a.t.Request] (DirectAgent-375:ctx-3500a12b) Seq 1-494866421: Processing:  { Ans: , MgmtId: 6631563722783, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StopAnswer":{"platform":"viridian:true;acpi:1;apic:true;pae:true;nx:true","result":false,"details":"Stop VM failed","wait":0}}] }
2013-12-14 00:52:18,161 DEBUG [c.c.a.t.Request] (Job-Executor-71:ctx-aedce201 ctx-ee5f8ea3) Seq 1-494866421: Received:  { Ans: , MgmtId: 6631563722783, via: 1, Ver: v1, Flags: 10, { StopAnswer } }
2013-12-14 00:52:18,173 WARN  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-71:ctx-aedce201 ctx-ee5f8ea3) Unable to stop vm VM[User|QA-b6e685bf-4ba1-4572-8728-3bfd0106f6d7]
2013-12-14 00:52:18,187 DEBUG [c.c.v.d.VMInstanceDaoImpl] (Job-Executor-71:ctx-aedce201 ctx-ee5f8ea3) Unable to update VM[User|QA-b6e685bf-4ba1-4572-8728-3bfd0106f6d7]: DB Data={Host=null; State=Stopped; updated=5; time=Sat Dec 14 00:52:17 IST 2013} New Data: {Host=1; State=Running; updated=5; time=Sat Dec 14 00:52:17 IST 2013} Stale Data: {Host=1; State=Stopping; updated=4; time=Sat Dec 14 00:51:52 IST 2013}
2013-12-14 00:52:18,196 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-71:ctx-aedce201) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.StopVMCmd
com.cloud.utils.exception.CloudRuntimeException: Unable to stop VM[User|QA-b6e685bf-4ba1-4572-8728-3bfd0106f6d7]
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1396)
        at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStop(VirtualMachineManagerImpl.java:1256)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1228)
        at com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1111)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:248)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
        at com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3382)
        at sun.reflect.GeneratedMethodAccessor774.invoke(Unknown Source)
        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:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy170.stopVirtualMachine(Unknown Source)
        at org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:118)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
        at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
                                                                                                                                                                                                                          2833,64-71     5%

I will attach management server logs 



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)