Sateesh Chodapuneedi created CLOUDSTACK-3733:
------------------------------------------------

             Summary: vm live migration fails with ClassCastException from 
VMinstanceVO to UserVmVO
                 Key: CLOUDSTACK-3733
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3733
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: Future
            Reporter: Sateesh Chodapuneedi
            Priority: Blocker
             Fix For: Future


1) Deployed advanced zone over VMware.
2) Created user instance
3) Live migration of user instance inside the cluster failed with following 
exception.

ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-1:job-19 = [ 
956296bf-44a2-4830-b02f-acac6cf835b5 ]) Unexpected exception while executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
java.lang.ClassCastException: 
com.cloud.vm.VMInstanceVO$$EnhancerByCGLIB$$48068e18 cannot be cast to 
com.cloud.vm.UserVmVO
        at 
com.cloud.storage.VolumeManagerImpl.prepareForMigration(VolumeManagerImpl.java:2324)
        at 
com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1533)
        at 
com.cloud.vm.UserVmManagerImpl.migrateVirtualMachine(UserVmManagerImpl.java:3874)
        at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd.execute(MigrateVMCmd.java:148)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
        at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:538)
        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:1146)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
INFO  [vmware.resource.VmwareResource] (DirectAgent-30:10.102.192.2) Executing 
resource NetworkUsageCommand 
INFO  [vmware.resource.VmwareResource] (DirectAgent-109:10

--
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

Reply via email to