Hello
Here it is

After mount

[root@xenserver4 media]# ls
3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd  template.properties

[root@xenserver4 media]# vhd-util check -n 
/media/3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd
/media/3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd is valid

And template.properties is 

[root@xenserver4 media]# cat template.properties
filename=3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd
vhd=true
id=231
vhd.filename=3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd
public=false
uniquename=3e2ff26a-b639-41ee-ac71-1162a81d4e6d
vhd.virtualsize=5368709120
virtualsize=5368709120
checksum=
hvm=true
description=debian
vhd.size=1437266432
size=1437266432

Thanks
Jewel

--- On Fri, 6/8/12, Edison Su <edison...@citrix.com> wrote:

From: Edison Su <edison...@citrix.com>
Subject: RE: Re: Template create from guest vm and the try to create vm from 
that template
To: "'Jewel Nuruddin'" <jewel.nurud...@yahoo.com>, 
"cloudstack-dev@incubator.apache.org" <cloudstack-dev@incubator.apache.org>, 
"cloudstack-us...@incubator.apache.org" <cloudstack-us...@incubator.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:c3ba91af-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 
cf67c48d-02ab-a11e-d8b8-9c19f01fab70
com.cloud.utils.exception.CloudRuntimeException: failed to scan sr 
cf67c48d-02ab-a11e-d8b8-9c19f01fab70
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2328)
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2350)
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:450)
        at 
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:69)
        at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:187)
        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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)

Can you check your secondary 
storage(192.168.2.178:/export/secondary/template/tmpl/2/231/):

1.       Go to your xenserver host, "mount 
192.168.2.178:/export/secondary/template/tmpl/2/231/ /media"

2.       "ls /media/", what's output

3.       "vhd-util check -n /media/3e2ff26a-b639-41ee-ac71-1162a81d4e6d.vhd ", 
what's output?

BTW, please don't privately send me the log.

From: Jewel Nuruddin [mailto:jewel.nurud...@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 from 
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 <jewel.nurud...@yahoo.com> wrote:

From: Jewel Nuruddin <jewel.nurud...@yahoo.com>
Subject: Re: Template create from guest vm and the try to create vm from that 
template
To: alena.prokharc...@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 
mailing-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 
create a template form that VM and try to create another vm from that template 
but could  not.
Please help me.
Thanks
Jewel

--- On Tue, 6/5/12, Alena Prokharchyk <alena.prokharc...@citrix.com> wrote:

From: Alena Prokharchyk <alena.prokharc...@citrix.com>
Subject: Re: Template create from guest vm and the try to create vm from that 
template
To: "cloudstack-us...@incubator.apache.org" 
<cloudstack-us...@incubator.apache.org>
Date: Tuesday, June 5, 2012, 1:42 AM
On 6/4/12 12:39 AM, "Jewel Nuruddin" 
<jewel.nurud...@yahoo.com<http://us.mc450.mail.yahoo.com/mc/compose?to=jewel.nurud...@yahoo.com>>
 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 = 33a9e6c7-4401-482f-bf8d-17609cb59ab5
>2012-06-04 16:33:06,701 DEBUG [cloud.vm.VirtualMachineManagerImpl]
>(Job-Executor-116:job-202) Deployment found  - P0=VM[User|i-2-56-VM],
>P0=Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Poo
>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  { 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:  { 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  [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=interface
>com.cloud.dc.DataCenter; id=
>1
>2012-06-04 16:36:53,770 WARN  [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.









Reply via email to