[ https://issues.apache.org/jira/browse/CLOUDSTACK-3257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sateesh Chodapuneedi resolved CLOUDSTACK-3257. ---------------------------------------------- Resolution: Not A Problem Fix Version/s: (was: 4.2.0) Storage live migration is not supported from a local storage datastore to local storage datastore unless both local storage datastores are attached the same ESXi host where the VM is running. This is feature limitation due to VMware's limitation that both source and target datastores are accessible to host. FS document for storage migration mentions the limiation https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enabling+Storage+XenMotion+for+XenServer#EnablingStorageXenMotionforXenServer-VMwareResourceSupport > [SM][VMWare]: migrate a virtualMachine with volumes is failing when local > storage is used > ----------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3257 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3257 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Reporter: Srikanteswararao Talluri > Assignee: Sateesh Chodapuneedi > Priority: Blocker > Attachments: mgmt_28.log.zip > > > Steps to reproduce: > 1. create a VM with its root volume and data volume on local storage. > 2. migrate it to another cluster. > 2013-06-28 13:19:42,738 INFO [vmware.mo.HostMO] (DirectAgent-3:10.147.40.30) > Creation of NFS datastore on vCenter failed. Details: vCenter API trace - > mountDatastore(). target MOR: host-8235, vmfs: false, poolHost: 10.147.40.21, > poolHostPort: 0, poolPath: datastore-8233, poolUuid: > 0bfe22ea7e0b47c395692d0236c04745. Exception mesg: An error occurred during > host configuration. > 2013-06-28 13:19:42,746 WARN [vmware.resource.VmwareResource] > (DirectAgent-3:10.147.40.30) MigrationCommand failed due to Exception: > java.lang.Exception > Message: Creation of NFS datastore on vCenter failed. > java.lang.Exception: Creation of NFS datastore on vCenter failed. > at > com.cloud.hypervisor.vmware.mo.HostMO.mountDatastore(HostMO.java:765) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:420) > at > com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186) > 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-06-28 13:19:42,753 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-3:null) Seq 5-424542266: Response Received: > 2013-06-28 13:19:42,757 DEBUG [agent.transport.Request] (DirectAgent-3:null) > Seq 5-424542266: Processing: { Ans: , MgmtId: 7566222426160, via: 5, Ver: > v1, Flags: 110, > [{"MigrateWithStorageAnswer":{"result":false,"details":"Exception: > java.lang.Exception\nMessage: Creation of NFS datastore on vCenter > failed.\nStack: java.lang.Exception: Creation of NFS datastore on vCenter > failed.\n\tat > com.cloud.hypervisor.vmware.mo.HostMO.mountDatastore(HostMO.java:765)\n\tat > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587)\n\tat > > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:420)\n\tat > > com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)\n\tat > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\n\tat > java.util.concurrent.FutureTask.run(FutureTask.java:166)\n\tat > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)\n\tat > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)\n\tat > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\n\tat > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\n\tat > java.lang.Thread.run(Thread.java:679)\n","wait":0}}] } > 2013-06-28 13:19:42,758 DEBUG [agent.transport.Request] > (Job-Executor-2:job-52) Seq 5-424542266: Received: { Ans: , MgmtId: > 7566222426160, via: 5, Ver: v1, Flags: 110, { MigrateWithStorageAnswer } } > 2013-06-28 13:19:42,758 ERROR [storage.motion.VmwareStorageMotionStrategy] > (Job-Executor-2:job-52) Migration with storage of vm VM[User|local] failed. > Details: Exception: java.lang.Exception > Message: Creation of NFS datastore on vCenter failed. > Stack: java.lang.Exception: Creation of NFS datastore on vCenter failed. > at > com.cloud.hypervisor.vmware.mo.HostMO.mountDatastore(HostMO.java:765) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:420) > at > com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186) > 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-06-28 13:19:42,763 DEBUG [agent.manager.AgentAttache] > (DirectAgent-3:null) Seq 5-424542266: No more commands found > 2013-06-28 13:19:42,765 ERROR [storage.motion.VmwareStorageMotionStrategy] > (Job-Executor-2:job-52) copy failed > com.cloud.utils.exception.CloudRuntimeException: Error while migrating the vm > VM[User|local] to host Host[-1-Routing]. Exception: java.lang.Exception > Message: Creation of NFS datastore on vCenter failed. > Stack: java.lang.Exception: Creation of NFS datastore on vCenter failed. > at > com.cloud.hypervisor.vmware.mo.HostMO.mountDatastore(HostMO.java:765) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:420) > at > com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186) > 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) > at > org.apache.cloudstack.storage.motion.VmwareStorageMotionStrategy.migrateVmWithVolumesAcrossCluster(VmwareStorageMotionStrategy.java:147) > at > org.apache.cloudstack.storage.motion.VmwareStorageMotionStrategy.copyAsync(VmwareStorageMotionStrategy.java:106) > at > org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:71) > at > org.apache.cloudstack.storage.volume.VolumeServiceImpl.migrateVolumes(VolumeServiceImpl.java:693) > at > com.cloud.storage.VolumeManagerImpl.migrateVolumes(VolumeManagerImpl.java:2172) > at > com.cloud.vm.VirtualMachineManagerImpl.migrateWithStorage(VirtualMachineManagerImpl.java:1682) > at > com.cloud.vm.UserVmManagerImpl.migrateVirtualMachineWithVolume(UserVmManagerImpl.java:4035) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd.execute(MigrateVirtualMachineWithVolumeCmd.java:137) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > 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-06-28 13:19:42,799 DEBUG [cloud.storage.VolumeManagerImpl] > (Job-Executor-2:job-52) Failed to migrated vm VM[User|local] along with its > volumes. com.cloud.utils.exception.CloudRuntimeException: Error while > migrating the vm VM[User|local] to host Host[-1-Routing]. Exception: > java.lang.Exception > Message: Creation of NFS datastore on vCenter failed. > Stack: java.lang.Exception: Creation of NFS datastore on vCenter failed. > at > com.cloud.hypervisor.vmware.mo.HostMO.mountDatastore(HostMO.java:765) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:420) > at > com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186) > 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-06-28 13:19:42,803 INFO [cloud.vm.VirtualMachineManagerImpl] > (Job-Executor-2:job-52) Migration was unsuccessful. Cleaning up: > VM[User|local] > 2013-06-28 13:19:42,803 WARN [apache.cloudstack.alerts] > (Job-Executor-2:job-52) alertType:: 17 // dataCenterId:: 1 // podId:: 1 // > clusterId:: null // message:: Unable to migrate vm i-2-10-VM from host > 10.147.40.30 in zone finaldc and pod finaldc > 2013-06-28 13:19:42,826 DEBUG [cloud.alert.AlertManagerImpl] > (Job-Executor-2:job-52) Have already sent: 1 emails for alert type '17' -- > skipping send email > 2013-06-28 13:19:42,834 DEBUG [agent.manager.AgentAttache] > (Job-Executor-2:job-52) Seq 1-1999896644: Routed from 7566222426160 > 2013-06-28 13:19:42,835 DEBUG [agent.transport.Request] > (Job-Executor-2:job-52) Seq 1-1999896644: Sending { Cmd , MgmtId: > 7566222426160, via: 1, Ver: v1, Flags: 100011, > [{"StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-2-10-VM","wait":0}}] > } > 2013-06-28 13:19:42,836 DEBUG [agent.transport.Request] > (Job-Executor-2:job-52) Seq 1-1999896644: Executing: { Cmd , MgmtId: > 7566222426160, via: 1, Ver: v1, Flags: 100011, > [{"StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-2-10-VM","wait":0}}] > } > 2013-06-28 13:19:42,837 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-71:null) Seq 1-1999896644: Executing request > 2013-06-28 13:19:42,838 INFO [vmware.resource.VmwareResource] > (DirectAgent-71:10.147.40.21) Executing resource StopCommand: > {"isProxy":false,"executeInSequence":false,"vmName":"i-2-10-VM -- 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