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 8472510F70 for ; Fri, 26 Jul 2013 00:51:48 +0000 (UTC) Received: (qmail 33967 invoked by uid 500); 26 Jul 2013 00:51:48 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 33949 invoked by uid 500); 26 Jul 2013 00:51:48 -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 33941 invoked by uid 500); 26 Jul 2013 00:51:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 33936 invoked by uid 99); 26 Jul 2013 00:51:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 00:51:48 +0000 Date: Fri, 26 Jul 2013 00:51:48 +0000 (UTC) From: "edison su (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-3756) Object_Store_Refactor - [KVM] Deletion of Scheduled Snapshot Fails - Affects Snapshot Retention Policy. 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-3756?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] edison su resolved CLOUDSTACK-3756. ----------------------------------- Resolution: Fixed fixed by 7ee655f5cd51bab1a5d654ce02a8ebb09d47f9a3 =20 > Object_Store_Refactor - [KVM] Deletion of Scheduled Snapshot Fails - Affe= cts Snapshot Retention Policy. > -------------------------------------------------------------------------= ------------------------------ > > Key: CLOUDSTACK-3756 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-375= 6 > 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 > Reporter: Chandan Purushothama > Assignee: edison su > Priority: Critical > Fix For: 4.2.0 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > During the creation of a Hourly Snapshot - NPE is thrown: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 2013-07-23 14:51:47,359 DEBUG [agent.transport.Request] (Job-Executor-26:= job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Seq 1-710935896: Sendi= ng { Cmd , MgmtId: 7471666038533, via: 1, Ver: v1, Flags: 100011, [{"org.a= pache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudst= ack.storage.to.SnapshotObjectTO":{"path":"/mnt/ef3dea99-0a1b-35b9-87ec-d8ca= be7ed9c1/906ec8f4-e625-4943-aedd-aff3444150b9/d3b4dcd2-ae74-45cc-bf43-a61d1= 3309e72","volume":{"uuid":"031802d8-c10a-4038-9acf-b86eba54b647","volumeTyp= e":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO= ":{"uuid":"ef3dea99-0a1b-35b9-87ec-d8cabe7ed9c1","id":1,"poolType":"Network= Filesystem","host":"10.223.110.232","path":"/export/home/chandan/campocr-19= 5-103/primarykvm","port":2049}},"name":"ROOT-6","size":147456,"path":"906ec= 8f4-e625-4943-aedd-aff3444150b9","volumeId":6,"vmName":"i-3-6-JULYLAST","ac= countId":3,"format":"QCOW2","id":6},"parentSnapshotPath":"/mnt/ef3dea99-0a1= b-35b9-87ec-d8cabe7ed9c1/906ec8f4-e625-4943-aedd-aff3444150b9/d9190a5c-84a8= -4928-be9f-6755e1b0d1e6","dataStore":{"org.apache.cloudstack.storage.to.Pri= maryDataStoreTO":{"uuid":"ef3dea99-0a1b-35b9-87ec-d8cabe7ed9c1","id":1,"poo= lType":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/cha= ndan/campocr-195-103/primarykvm","port":2049}},"vmName":"i-3-6-JULYLAST","n= ame":"Atoms-VM-1_ROOT-6_20130723215146","hypervisorType":"KVM","id":11}},"d= estTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapsh= ots/3/6","volume":{"uuid":"031802d8-c10a-4038-9acf-b86eba54b647","volumeTyp= e":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO= ":{"uuid":"ef3dea99-0a1b-35b9-87ec-d8cabe7ed9c1","id":1,"poolType":"Network= Filesystem","host":"10.223.110.232","path":"/export/home/chandan/campocr-19= 5-103/primarykvm","port":2049}},"name":"ROOT-6","size":147456,"path":"906ec= 8f4-e625-4943-aedd-aff3444150b9","volumeId":6,"vmName":"i-3-6-JULYLAST","ac= countId":3,"format":"QCOW2","id":6},"parentSnapshotPath":"snapshots/3/6/d91= 90a5c-84a8-4928-be9f-6755e1b0d1e6","dataStore":{"com.cloud.agent.api.to.Nfs= TO":{"_url":"nfs://10.223.110.232/export/home/chandan/campocr-195-103/secon= dary/","_role":"Image"}},"vmName":"i-3-6-JULYLAST","name":"Atoms-VM-1_ROOT-= 6_20130723215146","hypervisorType":"KVM","id":11}},"executeInSequence":fals= e,"wait":21600}}] } > 2013-07-23 14:52:50,158 DEBUG [agent.transport.Request] (Job-Executor-26:= job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Seq 1-710935896: Recei= ved: { Ans: , MgmtId: 7471666038533, via: 1, Ver: v1, Flags: 10, { CopyCmd= Answer } } > 2013-07-23 14:52:50,232 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job= -Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Max snaps= : 2 exceeded for snapshot policy with Id: 3. Deleting oldest snapshot: 5 > 2013-07-23 14:52:50,277 DEBUG [cloud.user.AccountManagerImpl] (Job-Execut= or-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Access to com.cl= oud.storage.SnapshotVO$$EnhancerByCGLIB$$59847169@f1779fa granted to Acct[3= -atoms] by DomainChecker_EnhancerByCloudStack_ccb7a71 > 2013-07-23 14:52:50,315 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job= -Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Max snaps= : 2 exceeded for snapshot policy with Id: 3. Deleting oldest snapshot: 7 > 2013-07-23 14:52:50,321 DEBUG [cloud.user.AccountManagerImpl] (Job-Execut= or-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Access to com.cl= oud.storage.SnapshotVO$$EnhancerByCGLIB$$59847169@1db4492d granted to Acct[= 3-atoms] by DomainChecker_EnhancerByCloudStack_ccb7a71 > 2013-07-23 14:52:50,346 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job= -Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Max snaps= : 2 exceeded for snapshot policy with Id: 3. Deleting oldest snapshot: 8 > 2013-07-23 14:52:50,353 DEBUG [cloud.user.AccountManagerImpl] (Job-Execut= or-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Access to com.cl= oud.storage.SnapshotVO$$EnhancerByCGLIB$$59847169@7bca0fdb granted to Acct[= 3-atoms] by DomainChecker_EnhancerByCloudStack_ccb7a71 > 2013-07-23 14:52:50,361 DEBUG [storage.snapshot.XenserverSnapshotStrategy= ] (Job-Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) del= ete snapshot chain for snapshot: 8 > 2013-07-23 14:52:50,363 DEBUG [storage.snapshot.XenserverSnapshotStrategy= ] (Job-Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Sna= pshot: 8 doesn't have children, so it's ok to delete it and its parents > 2013-07-23 14:52:50,383 DEBUG [agent.manager.AgentAttache] (Job-Executor-= 26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Request seq: 103953= 2322 > 2013-07-23 14:52:50,383 DEBUG [agent.manager.AgentAttache] (Job-Executor-= 26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) waiting to send 103= 9532322 > 2013-07-23 14:52:50,383 DEBUG [agent.manager.AgentAttache] (Job-Executor-= 26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) entering synchroniz= e block for sending 1039532322 > 2013-07-23 14:52:50,383 DEBUG [agent.transport.Request] (Job-Executor-26:= job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Seq 3-1039532322: Send= ing { Cmd , MgmtId: 7471666038533, via: 3, Ver: v1, Flags: 100011, [{"org.= apache.cloudstack.storage.command.DeleteCommand":{"data":{"org.apache.cloud= stack.storage.to.SnapshotObjectTO":{"path":"snapshots/3/6/99b5f9f3-9c6d-4db= 7-af19-05106fe6e1cc","volume":{"uuid":"031802d8-c10a-4038-9acf-b86eba54b647= ","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.Primar= yDataStoreTO":{"uuid":"ef3dea99-0a1b-35b9-87ec-d8cabe7ed9c1","id":1,"poolTy= pe":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/chanda= n/campocr-195-103/primarykvm","port":2049}},"name":"ROOT-6","size":147456,"= path":"906ec8f4-e625-4943-aedd-aff3444150b9","volumeId":6,"vmName":"i-3-6-J= ULYLAST","accountId":3,"format":"QCOW2","id":6},"dataStore":{"com.cloud.age= nt.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/chandan/campocr-= 195-103/secondary/","_role":"Image"}},"vmName":"i-3-6-JULYLAST","name":"Ato= ms-VM-1_ROOT-6_20130723195146","hypervisorType":"KVM","id":8}},"wait":0}}] = } > 2013-07-23 14:52:56,181 DEBUG [agent.transport.Request] (Job-Executor-26:= job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Seq 3-1039532322: Rece= ived: { Ans: , MgmtId: 7471666038533, via: 3, Ver: v1, Flags: 10, { Answer= } } > 2013-07-23 14:52:56,195 DEBUG [storage.snapshot.XenserverSnapshotStrategy= ] (Job-Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Fai= led to delete snapshot: > java.lang.NullPointerException > at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrate= gy.deleteSnapshot(XenserverSnapshotStrategy.java:192) > at com.cloud.storage.snapshot.SnapshotManagerImpl.deleteSnapshot(= SnapshotManagerImpl.java:496) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$= InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:12= 5) > at com.cloud.storage.snapshot.SnapshotManagerImpl.postCreateRecur= ringSnapshotForPolicy(SnapshotManagerImpl.java:467) > at com.cloud.storage.snapshot.SnapshotManagerImpl.postCreateSnaps= hot(SnapshotManagerImpl.java:448) > at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(Sn= apshotManagerImpl.java:999) > at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSna= pshot(VolumeServiceImpl.java:1185) > at com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManager= Impl.java:2654) > at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshot= Cmd.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(ThreadPoolEx= ecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-07-23 14:52:56,195 DEBUG [storage.snapshot.XenserverSnapshotStrategy= ] (Job-Executor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Fai= led to change snapshot state: java.lang.NullPointerException > 2013-07-23 14:52:56,292 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Complete async= job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ], jobStatus: 1, resultC= ode: 0, result: org.apache.cloudstack.api.response.SnapshotResponse@1b58177= 2 > 2013-07-23 14:52:56,297 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-26:job-55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ]) Done executing= org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd for job-= 55 =3D [ 70344d23-f8f7-49c2-8046-e3511ba2ee56 ] -- 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