cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailaja Mada (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6452) Failed to Live Migrate VM across clusters with Xenserver 6.2.5
Date Fri, 18 Apr 2014 11:45:20 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973997#comment-13973997
] 

Sailaja Mada commented on CLOUDSTACK-6452:
------------------------------------------

2014-04-18 16:46:06,148 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-38:job-191/job-192)
Unable to complete AsyncJobVO {id:192, userId: 2, accountId: 2, instanceType: null, instanceId:
null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: rO0ABXNyACVjb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZVdpdGhTdG9yYWdlsew9z6UxtXMCAANKAApkZXN0SG9zdElkSgAJc3JjSG9zdElkTAAMdm9sdW1lVG9Qb29sdAAPTGphdmEvdXRpbC9NYXA7eHIAE2NvbS5jbG91ZC52bS5WbVdvcmufmbZW8CVnawIABEoACWFjY291bnRJZEoABnVzZXJJZEoABHZtSWRMAAtoYW5kbGVyTmFtZXQAEkxqYXZhL2xhbmcvU3RyaW5nO3hwAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAAVdAAZVmlydHVhbE1hY2hpbmVNYW5hZ2VySW1wbAAAAAAAAAAEAAAAAAAAAAFzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAQdwgAAAAQAAAAAHg,
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
55355881446856, completeMsid: null, lastUpdated: null, lastPolled: null, created: Fri Apr
18 16:17:44 IST 2014}, job origin:191
com.cloud.utils.exception.CloudRuntimeException: Failed to migrated vm VM[User|i-3-21-VM]
along with its volumes. com.cloud.utils.exception.CloudRuntimeException: Error while migrating
the vm VM[User|i-3-21-VM] to host Host[-4-Routing]. Exception: com.cloud.utils.exception.CloudRuntimeException
Message: Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException:
org.apache.cloudstack.storage.to.TemplateObjectTO cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
Stack: com.cloud.utils.exception.CloudRuntimeException: Unable to get the updated VDI paths
of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:123)
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.execute(XenServer610Resource.java:357)
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:88)
        at com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:64)
        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.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:113)
        ... 16 more

        at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.migrateVolumes(VolumeOrchestrator.java:941)
        at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrateWithStorage(VirtualMachineManagerImpl.java:2138)
        at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrateWithStorage(VirtualMachineManagerImpl.java:5213)
        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:606)
        at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
        at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5309)
        at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
        at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:495)
        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 org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:452)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
2014-04-18 16:46:06,151 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-38:job-191/job-192)
Complete async job-192, jobStatus: FAILED, resultCode: 0, result: rO0ABXNyABpqYXZhLmxhbmcuUnVudGltZUV4Y2VwdGlvbp5fBkcKNIPlAgAAeHIAE2phdmEubGFuZy5FeGNlcHRpb27Q_R8-GjscxAIAAHhyABNqYXZhLmxhbmcuVGhyb3dhYmxl1cY1Jzl3uMsDAARMAAVjYXVzZXQAFUxqYXZhL2xhbmcvVGhyb3dhYmxlO0wADWRldGFpbE1lc3NhZ2V0ABJMamF2YS9sYW5nL1N0cmluZztbAApzdGFja1RyYWNldAAeW0xqYXZhL2xhbmcvU3RhY2tUcmFjZUVsZW1lbnQ7TAAUc3VwcHJlc3NlZEV4Y2VwdGlvbnN0ABBMamF2YS91dGlsL0xpc3Q7eHBxAH4AB3QKhUpvYiBmYWlsZWQgZHVlIHRvIGV4Y2VwdGlvbiBGYWlsZWQgdG8gbWlncmF0ZWQgdm0gVk1bVXNlcnxpLTMtMjEtVk1dIGFsb25nIHdpdGggaXRzIHZvbHVtZXMuIGNvbS5jbG91ZC51dGlscy5leGNlcHRpb24uQ2xvdWRSdW50aW1lRXhjZXB0aW9uOiBFcnJvciB3aGlsZSBtaWdyYXRpbmcgdGhlIHZtIFZNW1VzZXJ8aS0zLTIxLVZNXSB0byBob3N0IEhvc3RbLTQtUm91dGluZ10uIEV4Y2VwdGlvbjogY29tLmNsb3V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GFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuTWFuYWdlZENvbnRleHRSdW5uYWJsZXEAfgAWcQB-ABdzcQB-AAsAAAHEcQB-ABFxAH4AEnEAfgAXc3EAfgALAAAB13QALmphdmEudXRpbC5jb25jdXJyZW50LkV4ZWN1dG9ycyRSdW5uYWJsZUFkYXB0ZXJ0AA5FeGVjdXRvcnMuamF2YXEAfgAbc3EAfgALAAABBnQAH2phdmEudXRpbC5jb25jdXJyZW50LkZ1dHVyZVRhc2t0AA9GdXR1cmVUYXNrLmphdmFxAH4AF3NxAH4ACwAABHl0ACdqYXZhLnV0aWwuY29uY3VycmVudC5UaHJlYWRQb29sRXhlY3V0b3J0ABdUaHJlYWRQb29sRXhlY3V0b3IuamF2YXQACXJ1bldvcmtlcnNxAH4ACwAAAmd0AC5qYXZhLnV0aWwuY29uY3VycmVudC5UaHJlYWRQb29sRXhlY3V0b3IkV29ya2VycQB-ACxxAH4AF3NxAH4ACwAAAuh0ABBqYXZhLmxhbmcuVGhyZWFkdAALVGhyZWFkLmphdmFxAH4AF3NyACZqYXZhLnV0aWwuQ29sbGVjdGlvbnMkVW5tb2RpZmlhYmxlTGlzdPwPJTG17I4QAgABTAAEbGlzdHEAfgAGeHIALGphdmEudXRpbC5Db2xsZWN0aW9ucyRVbm1vZGlmaWFibGVDb2xsZWN0aW9uGUIAgMte9x4CAAFMAAFjdAAWTGphdmEvdXRpbC9Db2xsZWN0aW9uO3hwc3IAE2phdmEudXRpbC5BcnJheUxpc3R4gdIdmcdhnQMAAUkABHNpemV4cAAAAAB3BAAAAAB4cQB-ADh4
2014-04-18 16:46:06,152 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-339:ctx-e806cbaa)
9. The VM i-3-21-VM is in Stopping state
2014-04-18 16:46:06,175 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-38:job-191/job-192)
Done executing com.cloud.vm.VmWorkMigrate for job-192
2014-04-18 16:46:06,188 DEBUG [o.a.c.f.j.i.SyncQueueManagerImpl] (Work-Job-Executor-38:job-191/job-192)
Sync queue (65) is currently empty
2014-04-18 16:46:06,188 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-38:job-191/job-192)
Remove job-192 from job monitoring
2014-04-18 16:46:06,209 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-24:job-191)
Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd


java.lang.RuntimeException: Job failed due to exception Failed to migrated vm VM[User|i-3-21-VM]
along with its volumes. com.cloud.utils.exception.CloudRuntimeException: Error while migrating
the vm VM[User|i-3-21-VM] to host Host[-4-Routing]. Exception: com.cloud.utils.exception.CloudRuntimeException
Message: Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException:
org.apache.cloudstack.storage.to.TemplateObjectTO cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
Stack: com.cloud.utils.exception.CloudRuntimeException: Unable to get the updated VDI paths
of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:123)
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.execute(XenServer610Resource.java:357)
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:88)
        at com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:64)
        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.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
        at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:113)
        ... 16 more

        at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:114)
        at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:495)
        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 org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:452)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
2014-04-18 16:46:06,212 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-24:job-191)
Complete async job-191, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Job
failed due to exception Failed to migrated vm VM[User|i-3-21-VM] along with its volumes. com.cloud.utils.exception.CloudRuntimeException:
Error while migrating the vm VM[User|i-3-21-VM] to host Host[-4-Routing]. Exception: com.cloud.utils.exception.CloudRuntimeException\nMessage:
Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO\nStack: com.cloud.utils.exception.CloudRuntimeException:
Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO\n\tat com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:123)\n\tat
com.cloud.hypervisor.xen.resource.XenServer610Resource.execute(XenServer610Resource.java:357)\n\tat
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:88)\n\tat
com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:64)\n\tat
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)\n\tat
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)\n\tat
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)\n\tat
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)\n\tat
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)\n\tat
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)\n\tat
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)\n\tat
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
java.lang.Thread.run(Thread.java:744)\nCaused by: java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO\n\tat com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:113)\n\t...
16 more\n"}
2014-04-18 16:46:06,219 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-a743cd36) ===START===
 10.101.255.116 -- GET  command=queryAsyncJobResult&jobId=95c99ea3-6e9c-4401-9771-03e509a3a0ee&response=json&sessionkey=5qP%2BB5fr9SME4f1oz8pAXx2lnzU%3D&_=1397819815532
2014-04-18 16:46:06,224 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-24:job-191)
Done executing org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd
for job-191


> Failed to Live Migrate VM across clusters with Xenserver 6.2.5
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6452
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6452
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller, XenServer
>    Affects Versions: 4.4.0
>            Reporter: Sailaja Mada
>            Priority: Critical
>             Fix For: 4.4.0
>
>         Attachments: migrationlogs.rar
>
>
> Steps:
> 1. Install and configure Adv zone using Xen 6.2.5 hypervisor  with 2 clusters having
1 host in each cluster
> 2. deploy Windows 2012 instance 
> 3. Live Migrate instance from cluster1 host to cluster2 
> Observation:
> Failed to Live Migrate VM across clusters with Xenserver 6.2.5
> Job failed due to exception Failed to migrated vm VM[User|i-3-21-VM] along with its volumes.
com.cloud.utils.exception.CloudRuntimeException: Error while migrating the vm VM[User|i-3-21-VM]
to host Host[-4-Routing]. Exception: com.cloud.utils.exception.CloudRuntimeException Message:
Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO Stack: com.cloud.utils.exception.CloudRuntimeException:
Unable to get the updated VDI paths of the migrated vm java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:123)
at com.cloud.hypervisor.xen.resource.XenServer610Resource.execute(XenServer610Resource.java:357)
at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:88)
at com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:64)
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.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO at com.cloud.hypervisor.xen.resource.XenServer610Resource.getUpdatedVolumePathsOfMigratedVm(XenServer610Resource.java:113)
... 16 more 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message