[
https://issues.apache.org/jira/browse/CLOUDSTACK-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727442#comment-13727442
]
Rajesh Battala commented on CLOUDSTACK-4027:
--------------------------------------------
Oh ok. if its shared Algorithm it should be a Util Library(Generalized) class
instead of Specialized class.
> [Automation] Failed to create snapshot from volume in KVM
> ----------------------------------------------------------
>
> Key: CLOUDSTACK-4027
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4027
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API, Snapshot
> Affects Versions: 4.2.0
> Environment: KVM
> 4.2 build
> Reporter: Rayees Namathponnan
> Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: management-server.rar
>
>
> Found with regression test
> integration.component.test_resource_limits.TestResourceLimitsAccount.test_03_snapshots_per_account
> Steps to reproduce
> Step 1 Create snapshot from volume;
> Result
> Snapshot creation failed with error "Failed to create snapshot due to an
> internal error creating snapshot for volume 1455"
> Observed below error in MS log
> 2013-07-05 19:05:20,766 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-179:null) Ping from 52
> 2013-07-05 19:05:20,927 DEBUG [agent.transport.Request]
> (AgentManager-Handler-3:null) Seq 4-1845370539: Processing: { Ans: , MgmtId:
> 29066118877352, via: 4, Ver: v1, Flags: 1
> 0,
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"org.libvirt.LibvirtException:
> Domain snapshot not found: no domain snapshot with matching
> name '9d438e67-ce49-4ad3-9d0f-2a2b3072b7c2'","wait":0}}] }
> 2013-07-05 19:05:20,927 DEBUG [agent.transport.Request]
> (Job-Executor-27:job-4370 = [ 841b1e74-7fd1-4e64-ac53-7c2f4748711b ]) Seq
> 4-1845370539: Received: { Ans: , MgmtId: 290
> 66118877352, via: 4, Ver: v1, Flags: 10, { CopyCmdAnswer } }
> 2013-07-05 19:05:20,938 DEBUG [storage.snapshot.SnapshotManagerImpl]
> (Job-Executor-27:job-4370 = [ 841b1e74-7fd1-4e64-ac53-7c2f4748711b ]) Failed
> to create snapshot
> com.cloud.utils.exception.CloudRuntimeException:
> org.libvirt.LibvirtException: Domain snapshot not found: no domain snapshot
> with matching name '9d438e67-ce49-4ad3-9d0f-2a2b30
> 72b7c2'
> at
> org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:286)
> at
> org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:127)
> at
> org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:245)
> at
> com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:991)
> at
> org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1255)
> at
> com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManagerImpl.java:2660)
> 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-07-05 19:05:20,943 DEBUG [storage.volume.VolumeServiceImpl]
> (Job-Executor-27:job-4370 = [ 841b1e74-7fd1-4e64-ac53-7c2f4748711b ]) Take
> snapshot: 1455 failed: com.cloud.utils.exception.CloudRuntimeException:
> Failed to create snapshot
> 2013-07-05 19:05:20,948 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-27:job-4370 = [ 841b1e74-7fd1-4e64-ac53-7c2f4748711b ])
> Complete async job-4370 = [ 841b1e74-7fd1-4e64-ac53-7c2f4748711b ],
> jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to
> create snapshot due to an internal error creating snapshot for volume 1455
> 2013-07-05 19:05:21,000 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-15:null) Ping from 5
> 2013-07-05 19:05:23,735 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-3:null) StorageCollector is running...
> 2013-07-05 19:05:24,328 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null)
> ===START=== 10.216.51.148 -- GET
> command=queryAsyncJobResult&jobId=841b1e74-7fd1-4e64-ac53-7c2f4748711b&response=json&sessionkey=XWEd98YnNp1xr5YTHgH%2F6%2Be1fKw%3D&_=1375409175659
>
--
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