[
https://issues.apache.org/jira/browse/CLOUDSTACK-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728832#comment-13728832
]
Rajesh Battala commented on CLOUDSTACK-4027:
--------------------------------------------
I have enabled the snapshot flag in Global settings.
{ "listvolumesresponse" : { "count":1 ,"volume" : [
{"id":"50f7bff5-863a-4246-bf67-1026ef80a224","name":"kvm1","zoneid":"6a24e6cb-4ad1-4a68-a941-b61222fe8080","zonename":"myzone","type":"DATADISK","deviceid":1,"virtualmachineid":"ef30c6e9-0763-4328-b60c-14676d67c5ea","vmname":"ef30c6e9-0763-4328-b60c-14676d67c5ea","vmstate":"Running","size":2147483648,"created":"2013-08-02T16:02:29+0530","state":"Ready","account":"admin","domainid":"9acea9c8-fa9a-11e2-8c7f-d661bebc235b","domain":"ROOT","storagetype":"shared","hypervisor":"KVM","diskofferingid":"0f1d7fd2-e000-43f2-8bf8-ae5e80071436","diskofferingname":"Small","diskofferingdisplaytext":"Small
Disk, 5
GB","storage":"ps_kvm","attached":"2013-08-02T16:25:33+0530","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true}
] } }
{ "listsnapshotsresponse" : { "count":2 ,"snapshot" : [
{"id":"58f0d1ef-9090-4342-b50f-64042964f6ac","account":"admin","domainid":"9acea9c8-fa9a-11e2-8c7f-d661bebc235b","domain":"ROOT","snapshottype":"MANUAL","volumeid":"50f7bff5-863a-4246-bf67-1026ef80a224","volumename":"kvm1","volumetype":"DATADISK","created":"2013-08-04T15:32:45+0530","name":"ef30c6e9-0763-4328-b60c-14676d67c5ea_kvm1_20130804100245","intervaltype":"MANUAL","state":"BackedUp","tags":[]},
{"id":"771d0779-841a-41e4-a29e-173498169b90","account":"admin","domainid":"9acea9c8-fa9a-11e2-8c7f-d661bebc235b","domain":"ROOT","snapshottype":"MANUAL","volumeid":"50f7bff5-863a-4246-bf67-1026ef80a224","volumename":"kvm1","volumetype":"DATADISK","created":"2013-08-03T09:34:56+0530","name":"ef30c6e9-0763-4328-b60c-14676d67c5ea_kvm1_20130803040456","intervaltype":"MANUAL","state":"BackedUp","tags":[]}
] } }
am able to take MULTIPLE snapshot on for the volume attached to the kvm
instance.
> [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
> Assignee: Rajesh Battala
> 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