[ https://issues.apache.org/jira/browse/CLOUDSTACK-4507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750336#comment-13750336 ]
ASF subversion and git services commented on CLOUDSTACK-4507: ------------------------------------------------------------- Commit a0344132b58b6abce54bf3e4981b8913c2552824 in branch refs/heads/4.2-forward from [~edison] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=a034413 ] CLOUDSTACK-4507: fix NPE when taking snapshot > [Automation] Failed to create snapshot in KVM with NPE > ------------------------------------------------------- > > Key: CLOUDSTACK-4507 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4507 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: KVM, Snapshot > Affects Versions: 4.2.0 > Environment: Issue found in 4.2-forword branch > hypervisor KVM (RHEL 6.3) > Reporter: Rayees Namathponnan > Assignee: edison su > Priority: Blocker > Fix For: 4.2.1 > > Attachments: KVM_Regression_26_Aug_Agent.rar, > KVM_Regression_26_Aug_MS.rar > > > Snapshot creation failed in kvm; observed below error in MS log > MS LOG > 2013-08-26 05:19:33,805 DEBUG [agent.transport.Request] > (AgentManager-Handler-10:null) Seq 1-594678743: Processing: { Ans: , MgmtId: > 29066118877352, via: 1 > , Ver: v1, Flags: 10, > [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snaps > hots/322/515/fc52fea0-bab7-4f62-88bd-a2ea0cd3ea8b","id":0}},"result":true,"wait":0}}] > } > 2013-08-26 05:19:33,806 DEBUG [agent.transport.Request] > (Job-Executor-130:job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ]) Seq > 1-594678743: Received: { Ans: , MgmtId: 29066118877352, via: 1, Ver: v1, > Flags: 10, { CopyCmdAnswer } } > 2013-08-26 05:19:33,810 DEBUG [storage.snapshot.SnapshotServiceImpl] > (Job-Executor-130:job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ]) Failed > to update snapshot state > java.lang.NullPointerException > at > org.apache.cloudstack.storage.snapshot.SnapshotObject.processEvent(SnapshotObject.java:268) > at > org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.copySnapshotAsyncCallback(SnapshotServiceImpl.java:316) > 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:616) > at > org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:142) > at > org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26) > at > org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120) > at > org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:423) > at > org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:55) > at > org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:266) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:138) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:264) > at > com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:1013) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1281) > at > com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManagerImpl.java:2703) > at > org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:170) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > 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-08-26 05:19:33,811 DEBUG [storage.snapshot.SnapshotManagerImpl] > (Job-Executor-130:job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ]) Failed > to create snapshot > com.cloud.utils.exception.CloudRuntimeException: > java.lang.NullPointerException > at > org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:281) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:138) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:264) > at > com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:1013) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1281) > at > com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManagerImpl.java:2703) > at > org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:170) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > 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-08-26 05:19:33,816 DEBUG [storage.volume.VolumeServiceImpl] > (Job-Executor-130:job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ]) Take > snapshot: 515 failed > com.cloud.utils.exception.CloudRuntimeException: Failed to create snapshot > at > com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:1040) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1281) > at > com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManagerImpl.java:2703) > at > org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:170) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > 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) > Caused by: com.cloud.utils.exception.CloudRuntimeException: > java.lang.NullPointerException > at > org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:281) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:138) > at > org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:264) > at > com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:1013) > ... 16 more > 2013-08-26 05:19:33,822 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-130:job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ]) > Complete async job-1986 = [ 3fb64232-7e58-4273-9fa1-920e03f9f57d ], > jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to > create snapshot due to an internal error creating snapshot for volume 515 > 2013-08-26 05:19:35,030 DEBUG [agent.manager.AgentManagerImpl] > (AgentManager-Handler-1:null) SeqA 6-3751: Processing Seq 6-3751: { Cmd , > MgmtId: -1, via: 6, Ver: v1, Flags: 11, > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":4,"_loadInfo":"{\n > \"connections\": []\n}","wait":0}}] } > 2013-08-26 05:19:35,034 DEBUG [agent.manager.AgentManagerImpl] > (AgentManager-Handler-1:null) SeqA 6-3751: Sending Seq 6-3751: { Ans: , > MgmtId: 29066118877352, via: 6, Ver: v1, Flags: 100010, > [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] } -- 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