[ https://issues.apache.org/jira/browse/CLOUDSTACK-7102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186626#comment-14186626 ]
Likitha Shetty commented on CLOUDSTACK-7102: -------------------------------------------- And if an attempt is made to migrate a volume (attached to a VM and present in the same datastore) to another storage, then it will fail with the below error - {noformat} INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-102:ctx-ec935ae6 10.102.192.12) Search file 2e715c4920ca47089585bf882f814bdd.vmdk on [651747c0f6a6315193ae68e3ca3d271c] i-2-3-VM ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-102:ctx-ec935ae6 10.102.192.12) Catch Exception java.lang.RuntimeException due to java.lang.RuntimeException: File [651747c0f6a6315193ae68e3ca3d271c] i-2-3-VM was not found java.lang.RuntimeException: File [651747c0f6a6315193ae68e3ca3d271c] i-2-3-VM was not found at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:336) at com.cloud.hypervisor.vmware.mo.HostDatastoreBrowserMO.searchDatastore(HostDatastoreBrowserMO.java:57) at com.cloud.hypervisor.vmware.mo.HostDatastoreBrowserMO.searchDatastore(HostDatastoreBrowserMO.java:78) at com.cloud.hypervisor.vmware.mo.DatastoreMO.fileExists(DatastoreMO.java:308) at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:4793) at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:531) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:215) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:50) 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:47) 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) {noformat} > Volume migration fails with 'VM i-2-3-VM does not exist in VMware datacenter' > expection > --------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-7102 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7102 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Storage Controller, VMware > Affects Versions: 4.2.0 > Reporter: Likitha Shetty > Assignee: Likitha Shetty > Priority: Critical > Labels: S1 > Fix For: 4.5.0 > > > Steps to reproduce > ------------------------ > 1. Set global config 'vm.instancename.flag' to true. > 2. Bring up CS in advanced zone with at-least one vmware cluster. > 3. Add two primary storages to the cluster. > 4. Deploy one guest VM. > 5. Create a volume and attach the volume to the guest VM. (Ensure the volume > is in primary storage that doesn't contain the root disk). > 6. Migrate the volume to the primary storage that contains the root disk. > Volume Migration will fail with the below error - > {noformat} > 2014-07-14 12:21:33,112 ERROR [c.c.h.v.r.VmwareResource] > (DirectAgent-398:ctx-4797dd6a 10.102.192.7, job-878/job-879, cmd: > MigrateVolumeCommand) Catch Exception java.lang.Exception due to > java.lang.Exception: VM i-2-32-VM does not exist in VMware datacenter > datacenter-30215 > java.lang.Exception: VM i-2-32-VM does not exist in VMware datacenter > datacenter-30215 > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3139) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:416) > at > com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:293) > 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) > {noformat} > -- This message was sent by Atlassian JIRA (v6.3.4#6332)