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 2DCA310CAF for ; Wed, 24 Jul 2013 23:57:56 +0000 (UTC) Received: (qmail 68351 invoked by uid 500); 24 Jul 2013 23:57:52 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 68328 invoked by uid 500); 24 Jul 2013 23:57:52 -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 68291 invoked by uid 500); 24 Jul 2013 23:57:52 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 68282 invoked by uid 99); 24 Jul 2013 23:57:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 23:57:52 +0000 Date: Wed, 24 Jul 2013 23:57:52 +0000 (UTC) From: "Chandan Purushothama (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-3677) VMSnapshot on XenServer: RevertToVMSnapshot failed to revert VM to Snapshot 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-3677?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chandan Purushothama updated CLOUDSTACK-3677: --------------------------------------------- Priority: Critical (was: Major) =20 > VMSnapshot on XenServer: RevertToVMSnapshot failed to revert VM to Snapsh= ot > -------------------------------------------------------------------------= -- > > Key: CLOUDSTACK-3677 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-367= 7 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server, XenServer > Affects Versions: 4.2.0 > Reporter: Chandan Purushothama > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.zip, xensource.zip > > > Setup: Advanced Zone, XenServer 6.2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Steps to Reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Deploy Vm. Attach muiltiple data disks to this VM. > 2. Log in to the Vm and create few directories and files on the root volu= me. Create few more directories on each of the data disks. > 3. Stop the VM. Create VMSnapshot for this VM with "vm_snapshot_type" set= to "Disk". > 4. Revert to the VMSnapshot and observe the failure > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Management Server Log: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 2013-07-19 13:50:52,918 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:nu= ll) =3D=3D=3DSTART=3D=3D=3D 10.252.121.104 -- GET command=3DrevertToVMSna= pshot&vmsnapshotid=3Db7832d89-de57-4f94-b1e9-a93e7975ef0e&response=3Djson&s= essionkey=3DUXTrrcPGpFO1xH15V%2FhI8SByX1c%3D&_=3D1374267435422 > 2013-07-19 13:50:52,943 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-20:null) submit async job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac0= 6c ], details: AsyncJobVO {id:45, userId: 4, accountId: 4, sessionKey: null= , instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.comm= and.user.vmsnapshot.RevertToVMSnapshotCmd, cmdOriginator: null, cmdInfo: {"= response":"json","sessionkey":"UXTrrcPGpFO1xH15V/hI8SByX1c\u003d","cmdEvent= Type":"VMSNAPSHOT.REVERTTO","ctxUserId":"4","httpmethod":"GET","_":"1374267= 435422","vmsnapshotid":"b7832d89-de57-4f94-b1e9-a93e7975ef0e","ctxAccountId= ":"4","ctxStartEventId":"192"}, cmdVersion: 0, callbackType: 0, callbackAdd= ress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initM= sid: 7471666038533, completeMsid: null, lastUpdated: null, lastPolled: null= , created: null} > 2013-07-19 13:50:52,945 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.252.121.104 -- GET command=3DrevertToVMSnaps= hot&vmsnapshotid=3Db7832d89-de57-4f94-b1e9-a93e7975ef0e&response=3Djson&ses= sionkey=3DUXTrrcPGpFO1xH15V%2FhI8SByX1c%3D&_=3D1374267435422 > 2013-07-19 13:50:52,947 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Executing org.= apache.cloudstack.api.command.user.vmsnapshot.RevertToVMSnapshotCmd for job= -45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ] > 2013-07-19 13:50:52,966 DEBUG [cloud.user.AccountManagerImpl] (Job-Execut= or-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Access to com.cl= oud.vm.snapshot.VMSnapshotVO$$EnhancerByCGLIB$$956acea7@7ece4609 granted to= Acct[4-atoms] by DomainChecker_EnhancerByCloudStack_2fa3ef51 > 2013-07-19 13:50:52,985 DEBUG [agent.transport.Request] (Job-Executor-30:= job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Seq 4-110170392: Sendi= ng { Cmd , MgmtId: 7471666038533, via: 4, Ver: v1, Flags: 100011, [{"com.c= loud.agent.api.RevertToVMSnapshotCommand":{"volumeTOs":[{"id":13,"name":"Ne= w Volume 1","path":"67e644ac-5792-4007-9eb6-ac298e0c42f3","size":5368709120= ,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":= "5a0dfa0c-0476-3013-8bb2-a140e3f467c2","deviceId":2},{"id":14,"name":"ROOT-= 11","path":"374a56ac-19a1-4885-8a95-51142be064c1","size":8589934592,"type":= "ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"5a0dfa0c-04= 76-3013-8bb2-a140e3f467c2","deviceId":0},{"id":15,"name":"DATA-11","path":"= 5c0d41f7-dcab-4a51-aaa8-36729fb4c338","size":5368709120,"type":"DATADISK","= storagePoolType":"NetworkFilesystem","storagePoolUuid":"5a0dfa0c-0476-3013-= 8bb2-a140e3f467c2","deviceId":1}],"target":{"id":4,"snapshotName":"i-4-11-V= MSNAPSHOT_VS_20130719203659","type":"Disk","createTime":1374266220000,"curr= ent":false,"description":"VM-Snapshot-5"},"vmName":"i-4-11-VMSNAPSHOT","gue= stOSType":"CentOS 5.3 (64-bit)","wait":0}}] } > 2013-07-19 13:50:52,986 DEBUG [agent.transport.Request] (Job-Executor-30:= job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Seq 4-110170392: Execu= ting: { Cmd , MgmtId: 7471666038533, via: 4, Ver: v1, Flags: 100011, [{"co= m.cloud.agent.api.RevertToVMSnapshotCommand":{"volumeTOs":[{"id":13,"name":= "New Volume 1","path":"67e644ac-5792-4007-9eb6-ac298e0c42f3","size":5368709= 120,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUui= d":"5a0dfa0c-0476-3013-8bb2-a140e3f467c2","deviceId":2},{"id":14,"name":"RO= OT-11","path":"374a56ac-19a1-4885-8a95-51142be064c1","size":8589934592,"typ= e":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"5a0dfa0c= -0476-3013-8bb2-a140e3f467c2","deviceId":0},{"id":15,"name":"DATA-11","path= ":"5c0d41f7-dcab-4a51-aaa8-36729fb4c338","size":5368709120,"type":"DATADISK= ","storagePoolType":"NetworkFilesystem","storagePoolUuid":"5a0dfa0c-0476-30= 13-8bb2-a140e3f467c2","deviceId":1}],"target":{"id":4,"snapshotName":"i-4-1= 1-VMSNAPSHOT_VS_20130719203659","type":"Disk","createTime":1374266220000,"c= urrent":false,"description":"VM-Snapshot-5"},"vmName":"i-4-11-VMSNAPSHOT","= guestOSType":"CentOS 5.3 (64-bit)","wait":0}}] } > 2013-07-19 13:50:52,986 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-36:null) Seq 4-110170392: Executing request > 2013-07-19 13:50:53,136 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-418:null) Seq 4-110166020: Executing request > 2013-07-19 13:50:53,401 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-418:null) Seq 4-110166020: Response Received: > 2013-07-19 13:50:53,401 DEBUG [agent.transport.Request] (DirectAgent-418:= null) Seq 4-110166020: Processing: { Ans: , MgmtId: 7471666038533, via: 4,= Ver: v1, Flags: 10, [{"com.cloud.agent.api.ClusterSyncAnswer":{"_clusterId= ":2,"_newStates":{},"_isExecuted":false,"result":true,"wait":0}}] } > 2013-07-19 13:50:55,137 ERROR [xen.resource.CitrixResourceBase] (DirectAg= ent-36:null) revert vm i-4-11-VMSNAPSHOT to snapshot i-4-11-VMSNAPSHOT_VS_2= 0130719203659 failed due to null > 2013-07-19 13:50:55,137 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-36:null) Seq 4-110170392: Response Received: > 2013-07-19 13:50:55,138 DEBUG [agent.transport.Request] (DirectAgent-36:n= ull) Seq 4-110170392: Processing: { Ans: , MgmtId: 7471666038533, via: 4, = Ver: v1, Flags: 10, [{"com.cloud.agent.api.RevertToVMSnapshotAnswer":{"resu= lt":false,"wait":0}}] } > 2013-07-19 13:50:55,138 DEBUG [agent.transport.Request] (Job-Executor-30:= job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Seq 4-110170392: Recei= ved: { Ans: , MgmtId: 7471666038533, via: 4, Ver: v1, Flags: 10, { RevertT= oVMSnapshotAnswer } } > 2013-07-19 13:50:55,138 ERROR [vm.snapshot.VMSnapshotManagerImpl] (Job-Ex= ecutor-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Revert VM: i= -4-11-VMSNAPSHOT to snapshot: i-4-11-VMSNAPSHOT_VS_20130719203659 failed > 2013-07-19 13:50:55,144 ERROR [vm.snapshot.VMSnapshotManagerImpl] (Job-Ex= ecutor-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) revert vm: i= -4-11-VMSNAPSHOT to snapshot i-4-11-VMSNAPSHOT_VS_20130719203659 failed due= to Revert VM: i-4-11-VMSNAPSHOT to snapshot: i-4-11-VMSNAPSHOT_VS_20130719= 203659 failed > 2013-07-19 13:50:55,152 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Unexpected exc= eption while executing org.apache.cloudstack.api.command.user.vmsnapshot.Re= vertToVMSnapshotCmd > com.cloud.utils.exception.CloudRuntimeException: Revert VM: i-4-11-VMSNAP= SHOT to snapshot: i-4-11-VMSNAPSHOT_VS_20130719203659 failed > at com.cloud.vm.snapshot.VMSnapshotManagerImpl.revertInternal(VMS= napshotManagerImpl.java:747) > at com.cloud.vm.snapshot.VMSnapshotManagerImpl.revertToSnapshot(V= MSnapshotManagerImpl.java:707) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$= InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:12= 5) > at org.apache.cloudstack.api.command.user.vmsnapshot.RevertToVMSn= apshotCmd.execute(RevertToVMSnapshotCmd.java:71) > 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-19 13:50:55,154 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-30:job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ]) Complete async= job-45 =3D [ e8ffdd72-0c4d-4b47-8106-7181b54ac06c ], jobStatus: 2, resultC= ode: 530, result: Error Code: 530 Error text: Revert VM: i-4-11-VMSNAPSHOT = to snapshot: i-4-11-VMSNAPSHOT_VS_20130719203659 failed -- 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