Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3791EC057 for ; Fri, 8 Jun 2012 03:30:15 +0000 (UTC) Received: (qmail 64770 invoked by uid 500); 8 Jun 2012 03:30:13 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 64517 invoked by uid 500); 8 Jun 2012 03:30:12 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 64464 invoked by uid 99); 8 Jun 2012 03:30:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 03:30:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.91.86] (HELO nm16.bullet.mail.sp2.yahoo.com) (98.139.91.86) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Jun 2012 03:30:02 +0000 Received: from [98.139.91.64] by nm16.bullet.mail.sp2.yahoo.com with NNFMP; 08 Jun 2012 03:29:42 -0000 Received: from [98.139.91.29] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 08 Jun 2012 03:29:42 -0000 Received: from [127.0.0.1] by omp1029.mail.sp2.yahoo.com with NNFMP; 08 Jun 2012 03:29:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 57072.36452.bm@omp1029.mail.sp2.yahoo.com Received: (qmail 65774 invoked by uid 60001); 8 Jun 2012 03:29:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1339126181; bh=kB5g1vfmlE9j2OW6Cpihv1W95Mn7T3fFOurlvkJX6SU=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=HZD8XG96d+lw2QSg+mFhUickUMVd9uwErISivrmt+1XjGF3wrRTVa0N5XcwjikxsvPC2XFAi0SJjfKu9fiUd3jybPP/wFa9duga/I+47wuI42WV/LlTLVyjjjUzTOM9oP9utAaC+81nWC9LENlu6jm3HBrOu3SDCfkR7z9GeFGU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=49KSBJKlg/JGoKY5UnWYnl4zCF++REYO/Hz3qiUu80U/+Kf6YCGAQpjug+yE+VngyVJD00zvdcL+9y7KUv3s7Y9PzUlp+JczyMTwxKBy8D1rqt66mAvPC6v0slNM9deHclUz9ZlAMeWRYPg1dmXgmtSkwSxZARIZAIDjX+eVD8w=; X-YMail-OSG: hxIUhggVM1lLx2UHO.CSqWiIv0lkkw6jJNht1Gu6QyHU30o 6QacMrC3aJOU1v1UcdedhBErPedOWATKesKK5KvfmZBPpLclh5eO_LBsd7Kl JkP.nIARsXWP_eaFRDGMaoNy2ac4qJ1mdvxkWyuTpzfxYVvzoqgXljpvmYM9 S4Hzv9WtTp227qCxDejE.83VZvbrixGSNSTYIguM0WnIfdNIzh6IDZXyXoqt wX0nC22ww3ggY0B7mSe3bn1eBH7H8F0zhWm._Yz6TPwUHgWTgs_jEgCO4yHH 3dTunKzvyerSx1Lp99nE1TMxKY6.rL4NUh.RiaD49.79dW1BEXlAlrXVDvfa Ui5zZMT8.qhUN34FkwrHDVMSY483lCFA3tmY7vPCT6SLwAtItrf3g3zbdEZ8 sLSIlNkxNtlDyyhI8wW_qdD2sLn2QJZ65BFc9saxariZaRqWnK3EPlhmL1Yr yKKeTP79ZRqj5h0NTkj0S61qhi_sa6rJZCO_7XOKIMKaK4kVctoQkPU6pJ3U rBmopF2ifpIhgOELyCFaOHUoeetmu7fwvkHwdU1xxqwXJfc6CGvjbDIFG0Rd 7HOi3MBJfvahvxl8GWuoXZZJbuwqmQP3QcSWF1HA5YIEKAd.F4ySt0PdYe_Z _4fS.Wqayr27WLkK1H7zUDMuuxY8h_GLtjXoKNRERpfi4qhAtKEVLsy4w5A- - Received: from [113.33.180.18] by web45008.mail.sp1.yahoo.com via HTTP; Thu, 07 Jun 2012 20:29:41 PDT X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.118.349524 Message-ID: <1339126181.61923.YahooMailClassic@web45008.mail.sp1.yahoo.com> Date: Thu, 7 Jun 2012 20:29:41 -0700 (PDT) From: Jewel Nuruddin Subject: RE: Re: Template create from guest vm and the try to create vm from that template To: "cloudstack-dev@incubator.apache.org" , cloudstack-users@incubator.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-2113067393-467465723-1339126181=:61923" X-Virus-Checked: Checked by ClamAV on apache.org ---2113067393-467465723-1339126181=:61923 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello Here it is After mount [root@xenserver4 media]# ls 3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd=A0 template.properties [root@xenserver4 media]# vhd-util check -n /media/3e2ff26a-b639-41ee-ac71-1= 162a81d4e6d.vhd /media/3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd is valid And template.properties is=20 [root@xenserver4 media]# cat template.properties filename=3D3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd vhd=3Dtrue id=3D231 vhd.filename=3D3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd public=3Dfalse uniquename=3D3e2ff26a-b639-41ee-ac71-1162a81d4e6d vhd.virtualsize=3D5368709120 virtualsize=3D5368709120 checksum=3D hvm=3Dtrue description=3Ddebian vhd.size=3D1437266432 size=3D1437266432 Thanks Jewel --- On Fri, 6/8/12, Edison Su wrote: From: Edison Su Subject: RE: Re: Template create from guest vm and the try to create vm fro= m that template To: "'Jewel Nuruddin'" , "cloudstack-dev@incubato= r.apache.org" , "cloudstack-users@incu= bator.apache.org" Date: Friday, June 8, 2012, 11:00 AM >From the log, you can find the following error: Catch Exception com.cloud.utils.exception.CloudRuntimeException on host:c3b= a91af-e1ab-4700-845e-980e72fdadc1 for template: nfs://192.168.2.178/export/= secondary/template/tmpl/2/231/3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd due = to com.cloud.utils.exception.CloudRuntimeException: failed to scan sr cf67c= 48d-02ab-a11e-d8b8-9c19f01fab70 com.cloud.utils.exception.CloudRuntimeException: failed to scan sr cf67c48d= -02ab-a11e-d8b8-9c19f01fab70 =A0 =A0 =A0 =A0 at com.cloud.hypervisor.xen.resource.CitrixResourceBase.cop= y_vhd_from_secondarystorage(CitrixResourceBase.java:2328) =A0 =A0 =A0 =A0 at com.cloud.hypervisor.xen.resource.CitrixResourceBase.exe= cute(CitrixResourceBase.java:2350) =A0 =A0 =A0 =A0 at com.cloud.hypervisor.xen.resource.CitrixResourceBase.exe= cuteRequest(CitrixResourceBase.java:450) =A0 =A0 =A0 =A0 at com.cloud.hypervisor.xen.resource.XenServer56Resource.ex= ecuteRequest(XenServer56Resource.java:69) =A0 =A0 =A0 =A0 at com.cloud.agent.manager.DirectAgentAttache$Task.run(Dire= ctAgentAttache.java:187) =A0 =A0 =A0 =A0 at java.util.concurrent.Executors$RunnableAdapter.call(Exec= utors.java:471) =A0 =A0 =A0 =A0 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask= .java:334) =A0 =A0 =A0 =A0 at java.util.concurrent.FutureTask.run(FutureTask.java:166) =A0 =A0 =A0 =A0 at java.util.concurrent.ScheduledThreadPoolExecutor$Schedul= edFutureTask.access$101(ScheduledThreadPoolExecutor.java:165) =A0 =A0 =A0 =A0 at java.util.concurrent.ScheduledThreadPoolExecutor$Schedul= edFutureTask.run(ScheduledThreadPoolExecutor.java:266) =A0 =A0 =A0 =A0 at java.util.concurrent.ThreadPoolExecutor.runWorker(Thread= PoolExecutor.java:1110) =A0 =A0 =A0 =A0 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Threa= dPoolExecutor.java:603) =A0 =A0 =A0 =A0 at java.lang.Thread.run(Thread.java:679) Can you check your secondary storage(192.168.2.178:/export/secondary/templa= te/tmpl/2/231/): 1.=A0 =A0 =A0=A0=A0Go to your xenserver host, "mount 192.168.2.178:/export/= secondary/template/tmpl/2/231/ /media" 2.=A0 =A0 =A0=A0=A0"ls /media/", what's output 3.=A0 =A0 =A0=A0=A0"vhd-util check -n /media/3e2ff26a-b639-41ee-ac71-1162a8= 1d4e6d.vhd ", what's output? BTW, please don't privately send me the log. From: Jewel Nuruddin [mailto:jewel.nuruddin@yahoo.com] Sent: Thursday, June 07, 2012 6:15 PM To: Edison Su Subject: Fw: Re: Template create from guest vm and the try to create vm fro= m that template Hi, Here it is it 2 days ago, If it is not enough I will generate one new and send you. Thanks Jewel --- On Tue, 6/5/12, Jewel Nuruddin wrote: From: Jewel Nuruddin Subject: Re: Template create from guest vm and the try to create vm from th= at template To: Alena.Prokharchyk@citrix.com Date: Tuesday, June 5, 2012, 11:03 AM Hi Alena, Sorry to mail you directly because I could not send attache mail into maili= ng-list, Here I attached my full log for your kind review, I create a vm from ISO and the vm is running properly, I stop that vm and c= reate a template form that VM and try to create another vm from that templa= te but could=A0 not. Please help me. Thanks Jewel --- On Tue, 6/5/12, Alena Prokharchyk wrote: From: Alena Prokharchyk Subject: Re: Template create from guest vm and the try to create vm from th= at template To: "cloudstack-users@incubator.apache.org" Date: Tuesday, June 5, 2012, 1:42 AM On 6/4/12 12:39 AM, "Jewel Nuruddin" > wrote: >hi all > >I Create my guest vm and then create template from that guest vm and then >when I try to make another guest vm from that template I get the >following error. >Dose anyone have any idea what is wrong with me. > > >2012-06-04 16:33:06,489 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(catalina-exec-20:null) Allocating entries for VM: VM[User|i-2-56-VM] >2012-06-04 16:33:06,492 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(catalina-exec-20:null) Allocating nics for VM[User|i-2-56-VM] >2012-06-04 16:33:06,499 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(catalina-exec-20:null) Allocaing disks for VM[User|i-2-56-VM] >2012-06-04 16:33:06,507 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(catalina-exec-20:null) Allocation completed for VM: VM[User|i-2-56-VM] >2012-06-04 16:33:06,507 DEBUG [cloud.vm.UserVmManagerImpl] >(catalina-exec-20:null) Successfully allocated DB entry for >VM[User|i-2-56-VM] >2012-06-04 16:33:06,648 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(Job-Executor-116:job-202) Successfully transitioned to start state for >VM[User|i-2-56-VM] reservation id =3D 33a9e6c7-4401-482f-bf8d-17609cb59ab5 >2012-06-04 16:33:06,701 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(Job-Executor-116:job-202) Deployment found=A0 - P0=3DVM[User|i-2-56-VM], >P0=3DDest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->P= oo >l(Id))] : Dest[Zone(1)-Pod >(1)-Cluster(1)-Host(1)-Storage(Volume(77|ROOT-->Pool(200), >Volume(78|DATADISK-->Pool(200))] >2012-06-04 16:33:19,272 DEBUG [cloud.storage.StorageManagerImpl] >(Job-Executor-116:job-202) Checking if we need to prepare 2 volumes for >VM[User|i-2-56-VM] >2012-06-04 16:36:53,294 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(Job-Executor-116:job-202) Cleaning up resources for the vm >VM[User|i-2-56-VM] in Starting state >2012-06-04 16:36:53,296 DEBUG [agent.transport.Request] >(Job-Executor-116:job-202) Seq 1-1107305129: Sending=A0 { Cmd , MgmtId: >264216224466399, via: 1, Ver: v1, Flags: 100111, >[{"StopCommand":{"isProxy":false,"vmName":"i-2-56-VM","wait":0 >}}] } >2012-06-04 16:36:53,296 DEBUG [agent.transport.Request] >(Job-Executor-116:job-202) Seq 1-1107305129: Executing:=A0 { Cmd , MgmtId: >264216224466399, via: 1, Ver: v1, Flags: 100111, >[{"StopCommand":{"isProxy":false,"vmName":"i-2-56-VM","wait >":0}}] } >2012-06-04 16:36:53,453 DEBUG [cloud.vm.VirtualMachineManagerImpl] >(Job-Executor-116:job-202) Successfully cleanued up resources for the vm >VM[User|i-2-56-VM] in Starting state >2012-06-04 16:36:53,770 INFO=A0 [api.commands.DeployVMCmd] >(Job-Executor-116:job-202) >com.cloud.exception.InsufficientServerCapacityException: Unable to create >a deployment for VM[User|i-2-56-VM]Scope=3Dinterface >com.cloud.dc.DataCenter; id=3D >1 >2012-06-04 16:36:53,770 WARN=A0 [cloud.api.ApiDispatcher] >(Job-Executor-116:job-202) class com.cloud.api.ServerApiException : >Unable to create a deployment for VM[User|i-2-56-VM] The reason vm failed to start - we couldn't create a deployment for it. It means that the system initially lacked storage capacity, cpu/ram capacity; or vm simply failed to start on the backend, and we couldn't locate another host to start vm on. The log fragment listed in email doesn't have this info, there is a timing gap between 16:33 and 16:36: 2012-06-04 16:33:19,272 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-116:job-202) Checking if we need to prepare 2 volumes for VM[User|i-2-56-VM] 2012-06-04 16:36:53,294 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-116:job-202) Cleaning up resources for the vm VM[User|i-2-56-VM] in Starting state Did you remove this part of the log manually? If so, please do grep by job-202 to get the info about the deployment failure. -Alena. ---2113067393-467465723-1339126181=:61923--