Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14F7210770 for ; Tue, 23 Jul 2013 22:06:49 +0000 (UTC) Received: (qmail 9775 invoked by uid 500); 23 Jul 2013 22:06:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 9753 invoked by uid 500); 23 Jul 2013 22:06:49 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 9745 invoked by uid 500); 23 Jul 2013 22:06:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 9742 invoked by uid 99); 23 Jul 2013 22:06:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 22:06:48 +0000 Date: Tue, 23 Jul 2013 22:06:48 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-2583) [Object_Store_Refactor] Failed to create snapshot from root disk of a guest VM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-2583?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13717681#comment-13717681 ]=20 ASF subversion and git services commented on CLOUDSTACK-2583: ------------------------------------------------------------- Commit 529ac6f12991370f9a5324b3b40f72b2f0601746 in branch refs/heads/master= from [~jburwell] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3D529ac6f ] - CLOUDSTACK-2583: Backports the s3xen plugin to Python 2.4 =20 > [Object_Store_Refactor] Failed to create snapshot from root disk of a gue= st VM > -------------------------------------------------------------------------= ----- > > Key: CLOUDSTACK-2583 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-258= 3 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Snapshot > Affects Versions: 4.2.0 > Environment: Build from object_store feature branch > Reporter: Sanjeev N > Assignee: John Burwell > Priority: Blocker > Fix For: 4.2.0 > > Attachments: management-server.rar > > > [Object_Store_Refactor] Failed to create snapshot from root disk of a gue= st VM > Steps to Reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1.Bring up CS in advanced zone with S3 as the secondary storage provider > 2.Deploy guest with with the default centos template template downloaded > 3.Try to take snapshot on the root disk of the guest vm > Observations: > =3D=3D=3D=3D=3D=3D2013-05-20 11:51:21,930 DEBUG [cloud.api.ApiServlet] (c= atalina-exec-13:null) =3D=3D=3DSTART=3D=3D=3D 10.146.0.15 -- GET command= =3DcreateSnapshot&volumeid=3D135a3df1-20e1-4b4b-a433-86976ddc9218&response= =3Djson&sessionkey=3DYUyQ2NNnnp%2FGwC0zjw71QxChfHQ%3D&_=3D1369045371277 > 2013-05-20 11:51:22,046 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-281:null) Seq 1-774570942: Response Received: > 2013-05-20 11:51:22,046 DEBUG [agent.transport.Request] (StatsCollector-2= :null) Seq 1-774570942: Received: { Ans: , MgmtId: 7332683579487, via: 1, = Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > 2013-05-20 11:51:22,124 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-13:null) submit async job-17, details: AsyncJobVO {id:17, userId: 2, = accountId: 2, sessionKey: null, instanceType: Snapshot, instanceId: 1, cmd:= org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdOrig= inator: null, cmdInfo: {"id":"1","response":"json","sessionkey":"YUyQ2NNnnp= /GwC0zjw71QxChfHQ\u003d","ctxUserId":"2","httpmethod":"GET","volumeid":"135= a3df1-20e1-4b4b-a433-86976ddc9218","_":"1369045371277","ctxAccountId":"2","= ctxStartEventId":"70"}, cmdVersion: 0, callbackType: 0, callbackAddress: nu= ll, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 733= 2683579487, completeMsid: null, lastUpdated: null, lastPolled: null, create= d: null} > 2013-05-20 11:51:22,127 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.146.0.15 -- GET command=3DcreateSnapshot&vol= umeid=3D135a3df1-20e1-4b4b-a433-86976ddc9218&response=3Djson&sessionkey=3DY= UyQ2NNnnp%2FGwC0zjw71QxChfHQ%3D&_=3D1369045371277 > 2013-05-20 11:51:22,131 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-4:job-17) Executing org.apache.cloudstack.api.command.user.snapshot.Cr= eateSnapshotCmd for job-17 > 2013-05-20 11:51:22,188 INFO [user.snapshot.CreateSnapshotCmd] (Job-Exec= utor-4:job-17) VOLSS: createSnapshotCmd starts:1369065082188 > 2013-05-20 11:51:22,300 DEBUG [agent.transport.Request] (Job-Executor-4:j= ob-17) Seq 1-774570943: Sending { Cmd , MgmtId: 7332683579487, via: 1, Ver= : v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CreateObjectC= ommand":{"data":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"volu= me":{"uuid":"135a3df1-20e1-4b4b-a433-86976ddc9218","volumeType":"ROOT","dat= aStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"c65= a038a-750c-3b4f-bf26-7ce3b74e1c85","id":1,"poolType":"NetworkFilesystem","h= ost":"10.147.28.7","path":"/export/home/sanjeev/pri_xen_os","port":2049}},"= name":"ROOT-3","size":21474836480,"path":"3fa9a666-20da-4adc-af07-46c92ac1b= 8f1","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3},"dataStore":{"o= rg.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"c65a038a-750c-= 3b4f-bf26-7ce3b74e1c85","id":1,"poolType":"NetworkFilesystem","host":"10.14= 7.28.7","path":"/export/home/sanjeev/pri_xen_os","port":2049}},"vmName":"i-= 2-3-VM","name":"vm1_ROOT-3_20130520155121","hypervisorType":"XenServer","id= ":1}},"wait":0}}] } > 2013-05-20 11:51:22,301 DEBUG [agent.transport.Request] (Job-Executor-4:j= ob-17) Seq 1-774570943: Executing: { Cmd , MgmtId: 7332683579487, via: 1, = Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CreateObje= ctCommand":{"data":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"v= olume":{"uuid":"135a3df1-20e1-4b4b-a433-86976ddc9218","volumeType":"ROOT","= dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"= c65a038a-750c-3b4f-bf26-7ce3b74e1c85","id":1,"poolType":"NetworkFilesystem"= ,"host":"10.147.28.7","path":"/export/home/sanjeev/pri_xen_os","port":2049}= },"name":"ROOT-3","size":21474836480,"path":"3fa9a666-20da-4adc-af07-46c92a= c1b8f1","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3},"dataStore":= {"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"c65a038a-75= 0c-3b4f-bf26-7ce3b74e1c85","id":1,"poolType":"NetworkFilesystem","host":"10= .147.28.7","path":"/export/home/sanjeev/pri_xen_os","port":2049}},"vmName":= "i-2-3-VM","name":"vm1_ROOT-3_20130520155121","hypervisorType":"XenServer",= "id":1}},"wait":0}}] } > 2013-05-20 11:51:22,301 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-290:null) Seq 1-774570943: Executing request > 2013-05-20 11:51:24,090 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-290:null) Seq 1-774570943: Response Received: > 2013-05-20 11:51:24,091 DEBUG [agent.transport.Request] (DirectAgent-290:= null) Seq 1-774570943: Processing: { Ans: , MgmtId: 7332683579487, via: 1,= Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CreateObjectA= nswer":{"data":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path"= :"021a0adf-2524-4d15-8cf6-1a09b377fd5c","id":0}},"result":true,"wait":0}}] = } > 2013-05-20 11:51:24,091 DEBUG [agent.transport.Request] (Job-Executor-4:j= ob-17) Seq 1-774570943: Received: { Ans: , MgmtId: 7332683579487, via: 1, = Ver: v1, Flags: 10, { CreateObjectAnswer } } > 2013-05-20 11:51:24,184 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job= -Executor-4:job-17) Failed to create snapshot > com.cloud.utils.exception.CloudRuntimeException: com.cloud.utils.exceptio= n.CloudRuntimeException: com.cloud.utils.exception.CloudRuntimeException: C= an't find cache storage in zone: null > at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.bac= kupSnapshot(SnapshotServiceImpl.java:303) > at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrate= gy.backupSnapshot(XenserverSnapshotStrategy.java:134) > at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrate= gy.takeSnapshot(XenserverSnapshotStrategy.java:208) > at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(Sn= apshotManagerImpl.java:1003) > at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSna= pshot(VolumeServiceImpl.java:1031) > at com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManager= Impl.java:2601) > at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshot= Cmd.execute(CreateSnapshotCmd.java:170) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.= java:437) > 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(ThreadPoolEx= ecutor.java:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-05-20 11:51:24,201 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-4:job-17) Complete async job-17, jobStatus: 2, resultCode: 530, result= : Error Code: 530 Error text: Failed to create snapshot due to an internal = error creating snapshot for volume 3 > 2.Volume state from volumes table: > mysql> select * from volumes where id=3D3\G; > *************************** 1. row *************************** > id: 3 > account_id: 2 > domain_id: 1 > pool_id: 1 > last_pool_id: NULL > instance_id: 3 > device_id: 0 > name: ROOT-3 > uuid: 135a3df1-20e1-4b4b-a433-86976ddc9218 > size: 21474836480 > folder: NULL > path: 3fa9a666-20da-4adc-af07-46c92ac1b8f1 > pod_id: NULL > data_center_id: 1 > iscsi_name: NULL > host_ip: NULL > volume_type: ROOT > pool_type: NULL > disk_offering_id: 1 > template_id: 5 > first_snapshot_backup_uuid: NULL > recreatable: 0 > created: 2013-05-20 10:20:34 > attached: NULL > updated: 2013-05-20 15:51:24 > removed: NULL > state: Ready > chain_info: NULL > update_count: 4 > disk_type: NULL > display_volume: 0 > 1 row in set (0.00 sec) > ERROR: > No query specified -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira