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 09E0D10563 for ; Wed, 14 Aug 2013 21:59:50 +0000 (UTC) Received: (qmail 74315 invoked by uid 500); 14 Aug 2013 21:59:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 74290 invoked by uid 500); 14 Aug 2013 21:59: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 74257 invoked by uid 500); 14 Aug 2013 21:59:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 74239 invoked by uid 99); 14 Aug 2013 21:59:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 21:59:49 +0000 Date: Wed, 14 Aug 2013 21:59:49 +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-4318) [Object_Store_Refactor] Failed to delete snapshot copied to Staging storage during snapshot creation 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-4318?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13740256#comment-13740256 ]=20 ASF subversion and git services commented on CLOUDSTACK-4318: ------------------------------------------------------------- Commit dd6b245221ff10452263b20ed1ad41c75856451f in branch refs/heads/master= from [~edison] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3Ddd6b245 ] CLOUDSTACK-4318: clean up snapshot stored in staging area, after backup sna= pshot to object store =20 > [Object_Store_Refactor] Failed to delete snapshot copied to Staging stora= ge during snapshot creation > -------------------------------------------------------------------------= --------------------------- > > Key: CLOUDSTACK-4318 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-431= 8 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: KVM, Snapshot, Storage Controller > Affects Versions: 4.2.0 > Environment: Latest build from ACS 4.2 branch > Storage:S3 for Secondary, NFS for staging and Local for Primary storage > Cluster: KVM > Reporter: Sanjeev N > Assignee: Min Chen > Priority: Critical > Fix For: 4.2.0 > > > Failed to delete snapshot copied to Staging storage during snapshot creat= ion. During snapshot creation process snapshot will be copied to Staging st= orage and from there to S3. Once the snapshot is backed up to S3 CS tries t= o delete the snapshot from the staging storage.=20 > Steps to Reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1.Bring up CS with kvm cluster using S3 for Secondary, NFS for staging an= d Local for Primary storage > 2. Deploy guest vm with root and data disk > 3.Take snapshot of the data disk > Observations: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > After snapshot is backed up CS sends deleteCommand to delete the snapsho= t from staging storge. > 2013-08-14 06:11:52,573 DEBUG [agent.transport.Request] (AgentManager-Han= dler-5:null) Seq 1-1253835537: Processing: { Ans: , MgmtId: 6615759585382,= via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyC= mdAnswer":{"newData":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{= "path":"snapshots/2/13/6d2f2c58-03a4-4406-b738-73ed00c74f6a","id":0}},"resu= lt":true,"wait":0}}] } > 2013-08-14 06:11:52,573 DEBUG [agent.transport.Request] (Job-Executor-22:= job-32 =3D [ 5daad4d3-7a5b-4aff-ace9-d417bee0565e ]) Seq 1-1253835537: Rece= ived: { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 10, { CopyCm= dAnswer } } > 2013-08-14 06:11:52,580 DEBUG [agent.transport.Request] (Job-Executor-22:= job-32 =3D [ 5daad4d3-7a5b-4aff-ace9-d417bee0565e ]) Seq 3-1833173012: Send= ing { Cmd , MgmtId: 6615759585382, via: 3, Ver: v1, Flags: 100011, [{"org.= apache.cloudstack.storage.command.DeleteCommand":{"data":{"org.apache.cloud= stack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/13","volume":{"uuid= ":"0023a635-b1ca-499d-91b3-ddca2a4fa84d","volumeType":"DATADISK","dataStore= ":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"a01b8b56-= 4987-4843-be07-e48f1c584498","id":1,"poolType":"Filesystem","host":"10.147.= 40.14","path":"/var/lib/libvirt/images","port":0}},"name":"DATA-8","size":5= 368709120,"path":"8a8b01a1-898a-498f-9b13-ca8b873586c5","volumeId":13,"vmNa= me":"i-2-8-VM","accountId":2,"format":"QCOW2","id":13,"hypervisorType":"KVM= "},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/e= xport/home/sanjeev/sec_kvm_os","_role":"ImageCache"}},"vmName":"i-2-8-VM","= name":"HourlyDaily_DATA-8_20130814101143","hypervisorType":"KVM","id":7}},"= wait":0}}] } > 2013-08-14 06:11:52,665 DEBUG [agent.transport.Request] (AgentManager-Han= dler-7:null) Seq 3-1833173012: Processing: { Ans: , MgmtId: 6615759585382,= via: 3, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false= ,"details":"failed to delete snapshot /mnt/SecStorage/0049354e-1f59-33c2-8b= b6-760c9b2fa6ad/snapshots/2/*13* , err=3DFailed to delete file /mnt/SecStor= age/0049354e-1f59-33c2-8bb6-760c9b2fa6ad/snapshots/2/*13*, err=3Drm: cannot= remove `/mnt/SecStorage/0049354e-1f59-33c2-8bb6-760c9b2fa6ad/snapshots/2/1= 3': Is a directory","wait":0}}] } -- 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