Rayees Namathponnan created CLOUDSTACK-5049:
-----------------------------------------------

             Summary: [Automation] Vm migration failed in kvm with error 
"Unable to migrate due to Domain not found"
                 Key: CLOUDSTACK-5049
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5049
             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: KVM (rhel 6.3)
branch : 4.3 master
            Reporter: Rayees Namathponnan
            Priority: Blocker
             Fix For: 4.3.0


Steps to reproduce 

1 ) Create advanced zone with 2host  in kvm 
2) Deploy vm on,  first host 
3) migrate this vm to another host 

Actual result 

Host migration failed with below error 


reserved:0; movedfromreserved: false,moveToReserveredfalse
2013-11-05 15:19:31,665 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(Job-Executor-133:ctx-58343dc5) Unexpected exception while executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate due to 
Domain not found: no domain with matching uuid 
'd55da0aa-4be9-39c5-a83b-c3954b185d84'
        at 
com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1577)
        at 
com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1485)
        at 
com.cloud.vm.UserVmManagerImpl.migrateVirtualMachine(UserVmManagerImpl.java:4039)
        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: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 $Proxy168.migrateVirtualMachine(Unknown Source)
        at 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd.execute(MigrateVMCmd.java:148)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
        at 
com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
        at 
com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
        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 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:520)
        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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2013-11-05 15:19:31,667 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-133:ctx-58343dc5) Complete async job-315, jobStatus: FAILED, 
resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Unable
 to migrate due to Domain not found: no domain with matching uuid 
\u0027d55da0aa-4be9-39c5-a83b-c3954b185d84\u0027"}
2013-11-05 15:19:31,677 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-133:ctx-58343dc5) Done executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd for job-315
2013-11-05 15:19:31,681 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Job-Executor-133:ctx-58343dc5) Remove job-315 from job monitoring
2013-11-05 15:19:31,823 DEBUG [c.c.a.t.Request] (AgentManager-Handler-10:null) 
Seq 1-193923057: Processing:  { Ans: , MgmtId: 29066118877352, via: 1, Ver: v1, 
Flags: 10, [{"com.cloud.agent.api.StopAnswer":{"result":true,"wait":0}}] }




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to