Vincent Vuong created CLOUDSTACK-7893: -----------------------------------------
Summary: snapshots - This operation cannot be performed because this VDI is in use by some other operation Key: CLOUDSTACK-7893 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7893 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Affects Versions: 4.4.0 Environment: ACS 4.4.0 Xenserver 6.2 with latest patches Reporter: Vincent Vuong Performing a snapshot failed with the following errors: cd7b4-2c57-4953-8351-9bc3c2cbea37&response=json&sessionkey=to0X92g7IoXsSJzZnvOls5XMLa0%3D&_=1415830479614 2014-11-12 14:14:52,280 WARN [o.a.c.h.x.XenServerResourceNewBase] (DirectAgent-410:ctx-48699859) No event for task OpaqueRef:3ce629b5-476d-3fc1-e022-c020a9550f21 2014-11-12 14:14:52,289 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-410:ctx-48699859) Host 10.3.11.20 OpaqueRef:97d77797-3e8a-2c45-3d08-f947a793e73a: Removing SR 2014-11-12 14:14:52,310 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-410:ctx-48699859) Host 10.3.11.20 OpaqueRef:97d77797-3e8a-2c45-3d08-f947a793e73a: Catch XenAPIException: This operation cannot be performed because this VDI is in use by some other operation 2014-11-12 14:14:52,339 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-410:ctx-48699859) Host 10.3.11.20 OpaqueRef:97d77797-3e8a-2c45-3d08-f947a793e73a: Catch XenAPIException: This operation cannot be performed because this VDI is in use by some other operation 2014-11-12 14:14:52,339 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-410:ctx-48699859) Host 10.3.11.20 OpaqueRef:97d77797-3e8a-2c45-3d08-f947a793e73a: Unable to remove SR 2014-11-12 14:14:52,339 WARN [c.c.h.x.r.XenServerStorageProcessor] (DirectAgent-410:ctx-48699859) BackupSnapshot Failed due to No event for task OpaqueRef:3ce629b5-476d-3fc1-e022-c020a9550f21 java.util.concurrent.TimeoutException: No event for task OpaqueRef:3ce629b5-476d-3fc1-e022-c020a9550f21 at org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitForTask(XenServerResourceNewBase.java:124) at com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.backupSnapshot(Xenserver625StorageProcessor.java:430) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:94) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:52) at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:546) at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61) at com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102) at com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65) 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:745) 2014-11-12 14:14:52,340 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-410:ctx-48699859) Seq 1-8100005404802551526: Response Received: 2014-11-12 14:14:52,340 DEBUG [c.c.a.t.Request] (DirectAgent-410:ctx-48699859) Seq 1-8100005404802551526: Processing: { Ans: , MgmtId: 161330254406, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"BackupSnapshot Failed due to No event for task OpaqueRef:3ce629b5-476d-3fc1-e022-c020a9550f21","wait":0}}] } 2014-11-12 14:14:52,340 DEBUG [c.c.a.t.Request] (Work-Job-Executor-93:ctx-37089b32 job-16507/job-16508 ctx-89263538) Seq 1-8100005404802551526: Received: { Ans: , MgmtId: 161330254406, via: 1, Ver: v1, Flags: 10, { CopyCmdAnswer } } 2014-11-12 14:14:52,363 DEBUG [c.c.s.s.SnapshotManagerImpl] (Work-Job-Executor-93:ctx-37089b32 job-16507/job-16508 ctx-89263538) Failed to create snapshot com.cloud.utils.exception.CloudRuntimeException: BackupSnapshot Failed due to No event for task OpaqueRef:3ce629b5-476d-3fc1-e022-c020a9550f21 at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:282) at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:137) at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:300) at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:922) 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 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 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 com.sun.proxy.$Proxy178.takeSnapshot(Unknown Source) at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1503) at com.cloud.storage.VolumeApiServiceImpl.orchestrateTakeVolumeSnapshot(VolumeApiServiceImpl.java:1738) at com.cloud.storage.VolumeApiServiceImpl.orchestrateTakeVolumeSnapshot(VolumeApiServiceImpl.java:2475) -- This message was sent by Atlassian JIRA (v6.3.4#6332)