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 CAD5F10BA6 for ; Wed, 23 Oct 2013 18:30:41 +0000 (UTC) Received: (qmail 85962 invoked by uid 500); 23 Oct 2013 18:28:12 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 85855 invoked by uid 500); 23 Oct 2013 18:28:02 -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 85802 invoked by uid 500); 23 Oct 2013 18:27:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 85766 invoked by uid 99); 23 Oct 2013 18:27:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2013 18:27:42 +0000 Date: Wed, 23 Oct 2013 18:27:41 +0000 (UTC) From: "angeline shen (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-4930) create template from snapshot fail 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-4930?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] angeline shen updated CLOUDSTACK-4930: -------------------------------------- Description:=20 1. advance zone. Deploy VMs with data disk 2. take snapshots of root and data volumes 3. create template from snapshot of root volume and data volume fail 7692017993539, via: 3, Ver: v1, Flags: 100111, [{"org.apache.cloudstack.sto= rage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.Snaps= hotObjectTO":{"path":"snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058","= volume":{"uuid":"ff01e177-eac1-4f99-907b-380b02a85bfd","volumeType":"ROOT",= "dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":= "8db78175-66db-3225-8a6b-c7949bb1d96a","id":1,"poolType":"NetworkFilesystem= ","host":"10.223.110.232","path":"/export/home/angie/primary/xendix64","por= t":2049}},"name":"ROOT-3","size":21474836480,"path":"b3279a8e-98f1-4136-947= f-9d54cbbf546f","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"VH= D","id":3,"hypervisorType":"XenServer"},"dataStore":{"com.cloud.agent.api.t= o.NfsTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix64= ","_role":"Image"}},"vmName":"i-2-3-VM","name":"z1adminV1_ROOT-3_2013102304= 3436","hypervisorType":"XenServer","id":1}},"destTO":{"org.apache.cloudstac= k.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202","uuid":"a480bb= c5-330e-4766-a8e5-b6d2725af7aa","id":202,"format":"RAW","accountId":2,"hvm"= :true,"displayText":"tssroot3","imageDataStore":{"com.cloud.agent.api.to.Nf= sTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix64","_= role":"Image"}},"name":"2f629bb34-3ea1-3868-8371-e2b91f53802b","hypervisorT= ype":"XenServer"}},"executeInSequence":true,"wait":10800}}] } 2013-10-22 21:37:53,218 DEBUG [agent.transport.Request] (AgentManager-Handl= er-5:null) Seq 3-2093678896: Processing: { Ans: , MgmtId: 7692017993539, v= ia: 3, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCm= dAnswer":{"result":false,"details":"/usr/local/cloud/systemvm/scripts/stora= ge/secondary/create_privatetemplate_from_snapshot_xen.sh: line 65: /bin/vhd= -util: Permission denied30#failed to query /mnt/SecStorage/3ac2be04-bacf-37= 41-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd= ","wait":0}}] } 2013-10-22 21:37:53,219 DEBUG [agent.transport.Request] (Job-Executor-16:jo= b-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Seq 3-2093678896: Receiv= ed: { Ans: , MgmtId: 7692017993539, via: 3, Ver: v1, Flags: 110, { CopyCmd= Answer } } 2013-10-22 21:37:53,222 DEBUG [agent.manager.AgentAttache] (AgentManager-Ha= ndler-5:null) Seq 3-2093678896: No more commands found 2013-10-22 21:37:53,236 DEBUG [cloud.template.TemplateManagerImpl] (Job-Exe= cutor-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Failed to cre= ate template/usr/local/cloud/systemvm/scripts/storage/secondary/create_priv= atetemplate_from_snapshot_xen.sh: line 65: /bin/vhd-util: Permission denied= 30#failed to query /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/sna= pshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd 2013-10-22 21:37:53,302 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Execut= or-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Unexpected excep= tion while executing org.apache.cloudstack.api.command.user.template.Create= TemplateCmd com.cloud.utils.exception.CloudRuntimeException: Failed to create template/= usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_f= rom_snapshot_xen.sh: line 65: /bin/vhd-util: Permission denied30#failed to = query /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3= bc4020-4614-4a35-88f6-44a79b80d058.vhd =09at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(Template= ManagerImpl.java:1396) =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Interce= ptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) =09at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.exe= cute(CreateTemplateCmd.java:263) =09at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) =09at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:53= 1) =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47= 1) =09at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) =09at java.util.concurrent.FutureTask.run(FutureTask.java:166) =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.= java:1110) =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor= .java:603) =09at java.lang.Thread.run(Thread.java:679) 2013-10-22 21:37:53,305 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Execut= or-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Complete async j= ob-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ], jobStatus: 2, resultCod= e: 530, result: Error Code: 530 Error text: Failed to create template/usr/l= ocal/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_s= napshot_xen.sh: line 65: /bin/vhd-util: Permission denied30#failed to query= /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc402= 0-4614-4a35-88f6-44a79b80d058.vhd was: 1. advance zone. Deploy VMs with data disk 2. take snapshots of root and data volumes 3. create template from snapshot of root volume and data volume fail > create template from snapshot fail > ----------------------------------- > > Key: CLOUDSTACK-4930 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-493= 0 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server > Affects Versions: 4.2.1 > Environment: MS 10.223.130.59 CloudPlatform-4.2.1-758-rhel6.3= .tar.gz > host XS 6.2 + patches > Reporter: angeline shen > Assignee: Nitin Mehta > Priority: Critical > Fix For: 4.2.1 > > Attachments: management-server.log.2013-10-22.gz > > > 1. advance zone. Deploy VMs with data disk > 2. take snapshots of root and data volumes > 3. create template from snapshot of root volume and data volume fail > 7692017993539, via: 3, Ver: v1, Flags: 100111, [{"org.apache.cloudstack.s= torage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.Sna= pshotObjectTO":{"path":"snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058"= ,"volume":{"uuid":"ff01e177-eac1-4f99-907b-380b02a85bfd","volumeType":"ROOT= ","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid= ":"8db78175-66db-3225-8a6b-c7949bb1d96a","id":1,"poolType":"NetworkFilesyst= em","host":"10.223.110.232","path":"/export/home/angie/primary/xendix64","p= ort":2049}},"name":"ROOT-3","size":21474836480,"path":"b3279a8e-98f1-4136-9= 47f-9d54cbbf546f","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"= VHD","id":3,"hypervisorType":"XenServer"},"dataStore":{"com.cloud.agent.api= .to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix= 64","_role":"Image"}},"vmName":"i-2-3-VM","name":"z1adminV1_ROOT-3_20131023= 043436","hypervisorType":"XenServer","id":1}},"destTO":{"org.apache.cloudst= ack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202","uuid":"a480= bbc5-330e-4766-a8e5-b6d2725af7aa","id":202,"format":"RAW","accountId":2,"hv= m":true,"displayText":"tssroot3","imageDataStore":{"com.cloud.agent.api.to.= NfsTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix64",= "_role":"Image"}},"name":"2f629bb34-3ea1-3868-8371-e2b91f53802b","hyperviso= rType":"XenServer"}},"executeInSequence":true,"wait":10800}}] } > 2013-10-22 21:37:53,218 DEBUG [agent.transport.Request] (AgentManager-Han= dler-5:null) Seq 3-2093678896: Processing: { Ans: , MgmtId: 7692017993539,= via: 3, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.Copy= CmdAnswer":{"result":false,"details":"/usr/local/cloud/systemvm/scripts/sto= rage/secondary/create_privatetemplate_from_snapshot_xen.sh: line 65: /bin/v= hd-util: Permission denied30#failed to query /mnt/SecStorage/3ac2be04-bacf-= 3741-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.v= hd","wait":0}}] } > 2013-10-22 21:37:53,219 DEBUG [agent.transport.Request] (Job-Executor-16:= job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Seq 3-2093678896: Rece= ived: { Ans: , MgmtId: 7692017993539, via: 3, Ver: v1, Flags: 110, { CopyC= mdAnswer } } > 2013-10-22 21:37:53,222 DEBUG [agent.manager.AgentAttache] (AgentManager-= Handler-5:null) Seq 3-2093678896: No more commands found > 2013-10-22 21:37:53,236 DEBUG [cloud.template.TemplateManagerImpl] (Job-E= xecutor-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Failed to c= reate template/usr/local/cloud/systemvm/scripts/storage/secondary/create_pr= ivatetemplate_from_snapshot_xen.sh: line 65: /bin/vhd-util: Permission deni= ed30#failed to query /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/s= napshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd > 2013-10-22 21:37:53,302 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Unexpected exc= eption while executing org.apache.cloudstack.api.command.user.template.Crea= teTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to create templat= e/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate= _from_snapshot_xen.sh: line 65: /bin/vhd-util: Permission denied30#failed t= o query /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/= f3bc4020-4614-4a35-88f6-44a79b80d058.vhd > =09at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(Templa= teManagerImpl.java:1396) > =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Inter= ceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > =09at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.e= xecute(CreateTemplateCmd.java:263) > =09at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > =09at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:= 531) > =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:= 471) > =09at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > =09at java.util.concurrent.FutureTask.run(FutureTask.java:166) > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1110) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:603) > =09at java.lang.Thread.run(Thread.java:679) > 2013-10-22 21:37:53,305 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-16:job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Complete async= job-16 =3D [ 97657177-e329-407a-bf71-2bdd17a3acc6 ], jobStatus: 2, resultC= ode: 530, result: Error Code: 530 Error text: Failed to create template/usr= /local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from= _snapshot_xen.sh: line 65: /bin/vhd-util: Permission denied30#failed to que= ry /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc4= 020-4614-4a35-88f6-44a79b80d058.vhd -- This message was sent by Atlassian JIRA (v6.1#6144)