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 8ABBF1096D for ; Fri, 9 Aug 2013 09:26:51 +0000 (UTC) Received: (qmail 27012 invoked by uid 500); 9 Aug 2013 09:26:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 26873 invoked by uid 500); 9 Aug 2013 09:26: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 26760 invoked by uid 500); 9 Aug 2013 09:26:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 26755 invoked by uid 99); 9 Aug 2013 09:26:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 09:26:48 +0000 Date: Fri, 9 Aug 2013 09:26: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-4147) [upgrade][2.2.13 -> 2.2.14 -> 4.2][KVM] After upgrade, creation of templates from snapshots (which were created before upgrade) is failing 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-4147?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13734581#comment-13734581 ]=20 ASF subversion and git services commented on CLOUDSTACK-4147: ------------------------------------------------------------- Commit c75ac2ab20d8e4ad647930cdc03476be22aebc61 in branch refs/heads/4.2 fr= om [~kishan] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3Dc75ac2a ] CLOUDSTACK-4146, CLOUDSTACK-4147: Fix KVM snapshot upgrade. when migrating KVM snapshot path, CONCAT is not required. back_snap_id is c= omplete path for KVM snapshots =20 > [upgrade][2.2.13 -> 2.2.14 -> 4.2][KVM] After upgrade, creation of templa= tes from snapshots (which were created before upgrade) is failing > -------------------------------------------------------------------------= ----------------------------------------------------------------- > > Key: CLOUDSTACK-4147 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-414= 7 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: KVM, Snapshot, Upgrade > Affects Versions: 4.2.0 > Environment: upgrade from 2.2.13 (rhel 6.1 build) -> 2.2.14 (rhel= 6.1 build) -> 4.2 (rhel 6.2 build)=20 > MS : CentOS 6.1=20 > KVM : CentOS 6.1 > Reporter: Abhinav Roy > Assignee: Kishan Kavala > Priority: Critical > Fix For: 4.2.0 > > Attachments: CS-4147.zip > > > steps :=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > 1. Deploy CS 2.2.13 advanced zone setup with KVM.=20 > 2. Create VMs, template,snapshots, domains, accounts etc=20 > 3. Upgrade the management server and agent to 2.2.14=20 > 4. Create VMs , templates, snapshots, domain, accounts etc.=20 > 5. Have some VMs in stopped state=20 > 6. Upgrade the management server and agent to 4.2=20 > Expected behaviour :=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > After upgrade we should be able to create templates from the snapshots wh= ich were created before upgrade=20 > Observed behaviour:=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > 1. After upgrade i was able to create templates from snapshots which were= created after upgrade.=20 > 2. But creation of templates from the snapshots which were created before= upgrade is failing.=20 > 2013-08-07 16:54:05,080 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:nul= l) =3D=3D=3DEND=3D=3D=3D 10.144.7.7 -- GET command=3DcreateTemplate&respo= nse=3Djson&sessionkey=3DJlSNYQnYlmttQqoFIKL%2B%2B3wyyb4%3D&snapshotid=3D2&n= ame=3Dtempfromsnap-root9-2213&displayText=3Dtempfromsnap-root9-2213&osTypeI= d=3D112&isPublic=3Dfalse&passwordEnabled=3Dfalse&isdynamicallyscalable=3Dfa= lse&_=3D1375874413043 > 2013-08-07 16:54:05,082 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Executing org.= apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-68 = =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ] > 2013-08-07 16:54:05,114 DEBUG [storage.image.TemplateDataFactoryImpl] (Jo= b-Executor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) template= 209 is already in store:4, type:Image > 2013-08-07 16:54:05,124 DEBUG [storage.motion.AncientDataMotionStrategy] = (Job-Executor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) copyA= sync inspecting src type SNAPSHOT copyAsync inspecting dest type TEMPLATE > 2013-08-07 16:54:05,155 DEBUG [agent.transport.Request] (Job-Executor-13:= job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Seq 7-1280901161: Send= ing { Cmd , MgmtId: 226870599129537, via: 7, Ver: v1, Flags: 100011, [{"or= g.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.clou= dstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/9//snapshots/1/2/9= /i-2-9-VM_ROOT-9_20130805162236","volume":{"uuid":"9","volumeType":"ROOT","= dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"= 9fb7c84b-bfff-3ca2-9fc0-f50181c6b1f0","id":201,"poolType":"NetworkFilesyste= m","host":"10.102.192.100","path":"/cpg_vol/abhinav/kvm-pri2","port":2049}}= ,"name":"ROOT-9","size":8589934592,"path":"c11c7a12-e9c7-495d-955b-6e814bb5= b24f","volumeId":9,"vmName":"i-2-9-VM","accountId":2,"format":"QCOW2","id":= 9,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_ur= l":"nfs://10.102.192.100/cpg_vol/abhinav/kvm-sec-old","_role":"Image"}},"vm= Name":"i-2-9-VM","name":"i-2-9-VM_ROOT-9_20130805162236","hypervisorType":"= KVM","id":2}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO"= :{"path":"template/tmpl/2/209","uuid":"28e40538-5ce0-492b-8fd6-496c3cb03c2a= ","id":209,"format":"RAW","accountId":2,"hvm":true,"displayText":"tempfroms= nap-root9-2213","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"n= fs://10.102.192.100/cpg_vol/abhinav/kvm-sec-old","_role":"Image"}},"name":"= 24f7e0d06-b196-3209-bac2-c13ee9059513","hypervisorType":"KVM"}},"executeInS= equence":false,"wait":10800}}] } > 2013-08-07 16:54:05,329 DEBUG [agent.transport.Request] (AgentManager-Han= dler-4:null) Seq 7-1280901161: Processing: { Ans: , MgmtId: 22687059912953= 7, via: 7, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":fal= se,"details":"java.lang.NullPointerException\n\tat com.cloud.storage.templa= te.TemplateLocation.addFormat(TemplateLocation.java:193)\n\tat org.apache.c= loudstack.storage.resource.NfsSecondaryStorageResource.copySnapshotToTempla= teFromNfsToNfs(NfsSecondaryStorageResource.java:440)\n\tat org.apache.cloud= stack.storage.resource.NfsSecondaryStorageResource.createTemplateFromSnapsh= ot(NfsSecondaryStorageResource.java:482)\n\tat org.apache.cloudstack.storag= e.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.= java:532)\n\tat org.apache.cloudstack.storage.resource.NfsSecondaryStorageR= esource.executeRequest(NfsSecondaryStorageResource.java:200)\n\tat com.clou= d.agent.Agent.processRequest(Agent.java:525)\n\tat com.cloud.agent.Agent$Ag= entRequestHandler.doTask(Agent.java:852)\n\tat com.cloud.utils.nio.Task.run= (Task.java:83)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(Thre= adPoolExecutor.java:1146)\n\tat java.util.concurrent.ThreadPoolExecutor$Wor= ker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java= :679)\n","wait":0}}] } > 2013-08-07 16:54:05,329 DEBUG [agent.transport.Request] (Job-Executor-13:= job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Seq 7-1280901161: Rece= ived: { Ans: , MgmtId: 226870599129537, via: 7, Ver: v1, Flags: 10, { Answ= er } } > 2013-08-07 16:54:05,349 DEBUG [cloud.template.TemplateManagerImpl] (Job-E= xecutor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Failed to c= reate templatejava.lang.NullPointerException > at com.cloud.storage.template.TemplateLocation.addFormat(Template= Location.java:193) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.copySnapshotToTemplateFromNfsToNfs(NfsSecondaryStorageResource.java:44= 0) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.createTemplateFromSnapshot(NfsSecondaryStorageResource.java:482) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.execute(NfsSecondaryStorageResource.java:532) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.executeRequest(NfsSecondaryStorageResource.java:200) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:85= 2) > at com.cloud.utils.nio.Task.run(Task.java:83) > 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-08-07 16:54:05,367 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Unexpected exc= eption while executing org.apache.cloudstack.api.command.user.template.Crea= teTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to create templat= ejava.lang.NullPointerException > at com.cloud.storage.template.TemplateLocation.addFormat(Template= Location.java:193) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.copySnapshotToTemplateFromNfsToNfs(NfsSecondaryStorageResource.java:44= 0) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.createTemplateFromSnapshot(NfsSecondaryStorageResource.java:482) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.execute(NfsSecondaryStorageResource.java:532) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.executeRequest(NfsSecondaryStorageResource.java:200) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:85= 2) > at com.cloud.utils.nio.Task.run(Task.java:83) > 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) > at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(T= emplateManagerImpl.java:1378) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$= InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:12= 5) > at org.apache.cloudstack.api.command.user.template.CreateTemplate= Cmd.execute(CreateTemplateCmd.java:263) > 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:636) > 2013-08-07 16:54:05,369 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-13:job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ]) Complete async= job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ], jobStatus: 2, resultC= ode: 530, result: Error Code: 530 Error text: Failed to create templatejava= .lang.NullPointerException > at com.cloud.storage.template.TemplateLocation.addFormat(Template= Location.java:193) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.copySnapshotToTemplateFromNfsToNfs(NfsSecondaryStorageResource.java:44= 0) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.createTemplateFromSnapshot(NfsSecondaryStorageResource.java:482) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.execute(NfsSecondaryStorageResource.java:532) > at org.apache.cloudstack.storage.resource.NfsSecondaryStorageReso= urce.executeRequest(NfsSecondaryStorageResource.java:200) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:85= 2) > at com.cloud.utils.nio.Task.run(Task.java:83) > 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-08-07 16:54:08,200 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:nul= l) =3D=3D=3DSTART=3D=3D=3D 10.144.7.7 -- GET command=3DqueryAsyncJobResul= t&jobId=3D26b13614-69a4-4491-aa04-a4b3d3e9c88c&response=3Djson&sessionkey= =3DJlSNYQnYlmttQqoFIKL%2B%2B3wyyb4%3D&_=3D1375874416231 > 2013-08-07 16:54:08,211 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-3:null) Async job-68 =3D [ 26b13614-69a4-4491-aa04-a4b3d3e9c88c ] com= pleted > 2013-08-07 16:54:08,217 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:nul= l) =3D=3D=3DEND=3D=3D=3D 10.144.7.7 -- GET command=3DqueryAsyncJobResult&= jobId=3D26b13614-69a4-4491-aa04-a4b3d3e9c88c&response=3Djson&sessionkey=3DJ= lSNYQnYlmttQqoFIKL%2B%2B3wyyb4%3D&_=3D1375874416231 > 2013-08-07 16:54:11,210 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:nu= ll) =3D=3D=3DSTART=3D=3D=3D 10.144.7.7 -- GET command=3DlistVolumes&respo= nse=3Djson&sessionkey=3DJlSNYQnYlmttQqoFIKL%2B%2B3wyyb4%3D&listAll=3Dtrue&p= age=3D1&pagesize=3D20&_=3D1375874419332 > 2013-08-07 16:54:11,238 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.144.7.7 -- GET command=3DlistVolumes&respons= e=3Djson&sessionkey=3DJlSNYQnYlmttQqoFIKL%2B%2B3wyyb4%3D&listAll=3Dtrue&pag= e=3D1&pagesize=3D20&_=3D1375874419332 > 2013-08-07 16:54:14,384 DEBUG [agent.manager.AgentManagerImpl] (AgentMana= ger-Handler-6:null) SeqA 8-541: Processing Seq 8-541: { Cmd , MgmtId: -1, = via: 8, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCo= mmand":{"_proxyVmId":18,"_loadInfo":"{\n \"connections\": []\n}","wait":0}= }] } > 2013-08-07 16:54:14,388 DEBUG [agent.manager.AgentManagerImpl] (AgentMana= ger-Handler-6:null) SeqA 8-541: Sending Seq 8-541: { Ans: , MgmtId: 226870= 599129537, via: 8, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentCont= rolAnswer":{"result":true,"wait":0}}] } > 2013-08-07 16:54:19,385 DEBUG [agent.manager.AgentManagerImpl] (AgentMana= ger-Handler-7:null) SeqA 8-542: Processing Seq 8-542: { Cmd , MgmtId: -1, = via: 8, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCo= mmand":{"_proxyVmId":18,"_loadInfo":"{\n \"connections\": []\n}","wait":0}= }] } > 2013-08-07 16:54:19,391 DEBUG [agent.manager.AgentManagerImpl] (AgentMana= ger-Handler-7:null) SeqA 8-542: Sending Seq 8-542: { Ans: , MgmtId: 226870= 599129537, via: 8, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentCont= rolAnswer":{"result":true,"wait":0}}] } > Attaching all DB dumps, agent logs and management server logs. -- 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