You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Carlos Reategui <cr...@gmail.com> on 2015/06/10 03:24:49 UTC
Unable to create template
ACS: 4.4.0 on Ubuntu 12.04.5
Hosts: XenServer 6.2
I am seeing the following error when trying to create a template from a
stopped instance (no problems stopping/starting it). How do I figure out
what is using the VDI and not allowing the template?
2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
(DirectAgent-210:ctx-b2317482) Task:
ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
UUID:e8287b80-2fad-21bb-873f-994692660f
fd progress: 0.15
2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
(DirectAgent-210:ctx-b2317482) No event for task
OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-210:ctx-b2317482) Host 10.120.60.14
OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-210:ctx-b2317482) Host 10.120.60.14
OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException: This
operation
cannot be performed because this VDI is in use by some other operation
2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-210:ctx-b2317482) Host 10.120.60.14
OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException: This
operation
cannot be performed because this VDI is in use by some other operation
2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-210:ctx-b2317482) Host 10.120.60.14
OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response Received:
2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
(StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: { Ans:
, MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, { GetVmStatsAnsw
er } }
2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing request
2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing request
2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
(catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&response=
json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
(catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108 --
GET command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-210:ctx-b2317482) Creating template from volume
624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
rrent.TimeoutException: No event for task
OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
java.util.concurrent.TimeoutException: No event for task
OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
at
org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitForTask(XenServerResourceNewBase.java:124)
at
com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemplateFromVolume(Xenserver625StorageProcessor.java:556)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:90)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:52)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:546)
at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
at
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
at
com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65)
at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-210:
ctx-b2317482) Seq 3-4941293216155592791: Response Received:
2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
159090355471823, via: 3, Ver: v1, Flags: 10,
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Creating
template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to
java.util.concurrent.TimeoutException: No event for task
OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
Thank you,
Carlos
Re: Unable to create template
Posted by Carlos Reategui <ca...@reategui.com>.
Sudhansu or any other XenServer expert, any ideas why my dom0 has this vdi
mounted? Is it safe to unmount? Is it because of some hierarchy of vhd
files?
My users are trying to create a templates from existing machines but are
blocked by this.
thanks,
Carlos
On Wed, Jun 10, 2015 at 1:39 PM, Carlos Reategui <ca...@reategui.com>
wrote:
> Hi Sudhansu,
> I tried with the vbd-list command instead and got the following:
>
> # xe vbd-list vdi-name-label=ROOT-167 params=vm-uuid
>
> vm-uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
>
>
>
> vm-uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
>
> And then checked that vm but it is the dom0 of one of my hosts:
>
> # xe vm-list uuid=1b4becc4-7255-4670-bdee-b86d42c26977
>
> uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
>
> name-label ( RW): Control domain on host: noilabxen04
>
> power-state ( RO): running
>
>
> If I go to that host and check what is mounted is see:
>
> # mount
>
> /dev/sda1 on / type ext3 (rw)
>
> none on /proc type proc (rw)
>
> none on /sys type sysfs (rw)
>
> none on /dev/pts type devpts (rw)
>
> none on /dev/shm type tmpfs (rw)
>
> /opt/xensource/packages/iso/XenCenter.iso on /var/xen/xc-install type
> iso9660 (ro,loop=/dev/loop0)
>
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
>
> sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
>
> 192.xxx.xxx.xxx:/export/primary/ on
> /var/run/sr-mount/6a318cfe-4f49-4a00-ec12-7445ea8a05c9 type nfs
> (rw,soft,timeo=133,retrans=2147483647,tcp,actimeo=0,addr=192.xxx.xxx.xxx)
>
> 10.yyy.yyy.yyy:/store/secondary on
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1 type nfs
> (rw,soft,tcp,timeo=133,retrans=1,addr=10.yyy.yyy.yyy)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/207
> on /var/run/sr-mount/884cd015-d1f4-446c-9f5a-fdb37987cc75 type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/216
> on /var/run/sr-mount/967eb3e1-9fee-40ef-a76d-5e5aa134a93d type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/snapshots/3/240 on
> /var/run/sr-mount/c2296c1c-ea22-4754-a1e0-60978e189123 type none (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/232
> on /var/run/sr-mount/9c229ee2-e6a8-4c07-9fee-3bb36337a6ee type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/234
> on /var/run/sr-mount/bed2ca3a-2df9-496f-b246-db7d287f5006 type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/235
> on /var/run/sr-mount/9c7a3b19-4047-40a1-8a0f-f95c30936398 type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/254
> on /var/run/sr-mount/83869571-ac77-405c-8849-949374b78680 type none
> (rw,bind)
>
> /var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/256
> on /var/run/sr-mount/9bf958cb-fc5e-4e54-ab22-b1850d1dd487 type none
> (rw,bind)
>
> I think template 254 and 256 where mentioned in the vdi list I send in the
> previous email.
>
> What to do?
>
> thanks
> Carlos
>
>
> On Wed, Jun 10, 2015 at 1:19 PM, Carlos Reategui <ca...@reategui.com>
> wrote:
>
>> Hi Suhansu,
>> Thanks for the help. The command you provided complained about "unknown
>> field 'vdi-uuid'". I tried with just uuid but the id from the log (which
>> you had in your command) does not exist. Instead I fetched all the params
>> by name-label of the root disk we were trying to create a template from. I
>> don't quite understand why there are 3 vdi or how they are related to each
>> other.
>>
>> # xe vdi-list name-label=ROOT-167 params=all
>>
>> uuid ( RO) : 3dd52d1f-bb68-498f-aefb-441951dd9306
>>
>> name-label ( RW): ROOT-167
>>
>> name-description ( RW):
>>
>> is-a-snapshot ( RO): false
>>
>> snapshot-of ( RO): <not in database>
>>
>> snapshots ( RO):
>>
>> snapshot-time ( RO): 19700101T00:00:00Z
>>
>> allowed-operations (SRO): clone; snapshot
>>
>> current-operations (SRO):
>>
>> sr-uuid ( RO): 83869571-ac77-405c-8849-949374b78680
>>
>> sr-name-label ( RO):
>> b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/254
>>
>> vbd-uuids (SRO): 87d32128-09fc-68c3-fe19-e8eb439fd9af
>>
>> crashdump-uuids (SRO):
>>
>> virtual-size ( RO): 10737418240
>>
>> physical-utilisation ( RO): 195440640
>>
>> location ( RO): 3dd52d1f-bb68-498f-aefb-441951dd9306
>>
>> type ( RO): User
>>
>> sharable ( RO): false
>>
>> read-only ( RO): false
>>
>> storage-lock ( RO): false
>>
>> managed ( RO): true
>>
>> parent ( RO): <not in database>
>>
>> missing ( RO): false
>>
>> other-config (MRW): content_id:
>> 926d84fc-ca87-343a-edee-01f6765dde94
>>
>> xenstore-data (MRO):
>>
>> sm-config (MRO):
>> host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
>>
>> on-boot ( RW): persist
>>
>> allow-caching ( RW): false
>>
>> metadata-latest ( RO): false
>>
>> metadata-of-pool ( RO): <not in database>
>>
>> tags (SRW):
>>
>>
>>
>> uuid ( RO) : 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
>>
>> name-label ( RW): ROOT-167
>>
>> name-description ( RW):
>>
>> is-a-snapshot ( RO): false
>>
>> snapshot-of ( RO): <not in database>
>>
>> snapshots ( RO):
>>
>> snapshot-time ( RO): 19700101T00:00:00Z
>>
>> allowed-operations (SRO): clone; snapshot
>>
>> current-operations (SRO):
>>
>> sr-uuid ( RO): 9bf958cb-fc5e-4e54-ab22-b1850d1dd487
>>
>> sr-name-label ( RO):
>> b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/256
>>
>> vbd-uuids (SRO): 23e501b7-945a-3399-bfb2-88082612a08c
>>
>> crashdump-uuids (SRO):
>>
>> virtual-size ( RO): 10737418240
>>
>> physical-utilisation ( RO): 24064
>>
>> location ( RO): 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
>>
>> type ( RO): User
>>
>> sharable ( RO): false
>>
>> read-only ( RO): false
>>
>> storage-lock ( RO): false
>>
>> managed ( RO): true
>>
>> parent ( RO): <not in database>
>>
>> missing ( RO): false
>>
>> other-config (MRW): content_id:
>> decfe93c-63a7-a90d-2593-a764fab317f9
>>
>> xenstore-data (MRO):
>>
>> sm-config (MRO):
>> host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
>>
>> on-boot ( RW): persist
>>
>> allow-caching ( RW): false
>>
>> metadata-latest ( RO): false
>>
>> metadata-of-pool ( RO): <not in database>
>>
>> tags (SRW):
>>
>>
>>
>> uuid ( RO) : 624c9601-9034-40ca-a0c2-1705078e5c00
>>
>> name-label ( RW): ROOT-167
>>
>> name-description ( RW):
>>
>> is-a-snapshot ( RO): false
>>
>> snapshot-of ( RO): <not in database>
>>
>> snapshots ( RO):
>>
>> snapshot-time ( RO): 19700101T00:00:00Z
>>
>> allowed-operations (SRO): forget; generate_config; update; resize;
>> destroy; clone; copy; snapshot
>>
>> current-operations (SRO):
>>
>> sr-uuid ( RO): 6a318cfe-4f49-4a00-ec12-7445ea8a05c9
>>
>> sr-name-label ( RO): d660baaa-db1e-3d11-872f-10c69d748764
>>
>> vbd-uuids (SRO):
>>
>> crashdump-uuids (SRO):
>>
>> virtual-size ( RO): 10737418240
>>
>> physical-utilisation ( RO): 2286182912
>>
>> location ( RO): 624c9601-9034-40ca-a0c2-1705078e5c00
>>
>> type ( RO): User
>>
>> sharable ( RO): false
>>
>> read-only ( RO): false
>>
>> storage-lock ( RO): false
>>
>> managed ( RO): true
>>
>> parent ( RO): <not in database>
>>
>> missing ( RO): false
>>
>> other-config (MRW): content_id:
>> 13d71fcb-5849-3162-6d53-6bf762b87097
>>
>> xenstore-data (MRO):
>>
>> sm-config (MRO): vhd-parent:
>> 7f3a9636-af79-4cdb-a062-96317610b260
>>
>> on-boot ( RW): persist
>>
>> allow-caching ( RW): false
>>
>> metadata-latest ( RO): false
>>
>> metadata-of-pool ( RO): <not in database>
>>
>> tags (SRW):
>>
>>
>>
>> On Wed, Jun 10, 2015 at 9:51 AM, Sudhansu Sahu <Su...@citrix.com>
>> wrote:
>>
>>> Hi Carlos,
>>>
>>> You can execute below command to see what is using the VDI.
>>>
>>> xe vdi-list vdi-uuid=e8287b80-2fad-21bb-873f-994692660f params=vm-uuid
>>> xe vm-list uuid=<vm-uuid>
>>>
>>>
>>>
>>> Regards
>>> Sudhansu Sahu
>>> CPG-Orchestration
>>> Sudhansu.Sahu@citrix.com <ma...@citrix.com>
>>>
>>> <http://www.citrix.com>
>>>
>>> Powering mobile workstyles and cloud services
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 10/06/15 9:27 pm, "Carlos Reategui" <cr...@gmail.com> wrote:
>>>
>>> >Anybody?
>>> >
>>> >On Tue, Jun 9, 2015 at 6:24 PM, Carlos Reategui <cr...@gmail.com>
>>> >wrote:
>>> >
>>> >>
>>> >> ACS: 4.4.0 on Ubuntu 12.04.5
>>> >> Hosts: XenServer 6.2
>>> >>
>>> >> I am seeing the following error when trying to create a template from
>>> a
>>> >> stopped instance (no problems stopping/starting it). How do I figure
>>> >>out
>>> >> what is using the VDI and not allowing the template?
>>> >>
>>> >>
>>> >> 2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
>>> >> (DirectAgent-210:ctx-b2317482) Task:
>>> >> ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
>>> >> UUID:e8287b80-2fad-21bb-873f-994692660f
>>> >>
>>> >> fd progress: 0.15
>>> >>
>>> >> 2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
>>> >> (DirectAgent-210:ctx-b2317482) No event for task
>>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>> >>
>>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
>>> >>
>>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
>>> >>
>>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
>>> >>
>>> >> 2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
>>> >>
>>> >> 2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>>> >>This
>>> >> operation
>>> >>
>>> >> cannot be performed because this VDI is in use by some other
>>> operation
>>> >>
>>> >> 2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>>> >>This
>>> >> operation
>>> >>
>>> >> cannot be performed because this VDI is in use by some other
>>> operation
>>> >>
>>> >> 2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
>>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
>>> >>
>>> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
>>> >> (DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response
>>> >>Received:
>>> >>
>>> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
>>> >> (StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: {
>>> >>Ans:
>>> >> , MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, {
>>> GetVmStatsAnsw
>>> >>
>>> >> er } }
>>> >>
>>> >> 2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
>>> >> (DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing
>>> >>request
>>> >>
>>> >> 2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
>>> >> (DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing
>>> >>request
>>> >>
>>> >> 2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
>>> >> (catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
>>> >>
>>>
>>> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&re
>>> >>sponse=
>>> >>
>>> >> json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>>> >>
>>> >> 2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
>>> >> (catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108
>>> --
>>> >> GET
>>> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
>>> >>
>>> >>
>>>
>>> >>8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>>> >>
>>> >> 2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
>>> >> (DirectAgent-210:ctx-b2317482) Creating template from volume
>>> >> 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
>>> >>
>>> >> rrent.TimeoutException: No event for task
>>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>> >>
>>> >> java.util.concurrent.TimeoutException: No event for task
>>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitF
>>> >>orTask(XenServerResourceNewBase.java:124)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemp
>>> >>lateFromVolume(Xenserver625StorageProcessor.java:556)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Sto
>>> >>rageSubsystemCommandHandlerBase.java:90)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStora
>>> >>geCommands(StorageSubsystemCommandHandlerBase.java:52)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> >>xResourceBase.java:546)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> >>erver56Resource.java:61)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(Xen
>>> >>Server610Resource.java:102)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(
>>> >>XenServer620SP1Resource.java:65)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> >>ttache.java:216)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> >>dContextRunnable.java:49)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> >>efaultManagedContext.java:56)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> >>Context(DefaultManagedContext.java:103)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> >>ontext(DefaultManagedContext.java:53)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> >>ontextRunnable.java:46)
>>> >>
>>> >> at
>>> >>
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> >>
>>> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> >>ss$201(ScheduledThreadPoolExecutor.java:178)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
>>> >>ScheduledThreadPoolExecutor.java:292)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
>>> >>:1145)
>>> >>
>>> >> at
>>> >>
>>>
>>> >>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
>>> >>a:615)
>>> >>
>>> >> at java.lang.Thread.run(Thread.java:744)
>>> >>
>>> >> 2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache]
>>> >> (DirectAgent-210:ctx-b2317482) Seq 3-4941293216155592791: Response
>>> >> Received:
>>> >>
>>> >> 2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
>>> >> ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
>>> >> 159090355471823, via: 3, Ver: v1, Flags: 10,
>>> >>
>>>
>>> >>[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"
>>> >>details":"Creating
>>> >> template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due
>>> to
>>> >> java.util.concurrent.TimeoutException: No event for task
>>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
>>> >>
>>> >>
>>> >> Thank you,
>>> >> Carlos
>>> >>
>>>
>>>
>>
>
Re: Unable to create template
Posted by Carlos Reategui <ca...@reategui.com>.
Hi Sudhansu,
I tried with the vbd-list command instead and got the following:
# xe vbd-list vdi-name-label=ROOT-167 params=vm-uuid
vm-uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
vm-uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
And then checked that vm but it is the dom0 of one of my hosts:
# xe vm-list uuid=1b4becc4-7255-4670-bdee-b86d42c26977
uuid ( RO) : 1b4becc4-7255-4670-bdee-b86d42c26977
name-label ( RW): Control domain on host: noilabxen04
power-state ( RO): running
If I go to that host and check what is mounted is see:
# mount
/dev/sda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/opt/xensource/packages/iso/XenCenter.iso on /var/xen/xc-install type
iso9660 (ro,loop=/dev/loop0)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.xxx.xxx.xxx:/export/primary/ on
/var/run/sr-mount/6a318cfe-4f49-4a00-ec12-7445ea8a05c9 type nfs
(rw,soft,timeo=133,retrans=2147483647,tcp,actimeo=0,addr=192.xxx.xxx.xxx)
10.yyy.yyy.yyy:/store/secondary on
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1 type nfs
(rw,soft,tcp,timeo=133,retrans=1,addr=10.yyy.yyy.yyy)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/207
on /var/run/sr-mount/884cd015-d1f4-446c-9f5a-fdb37987cc75 type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/216
on /var/run/sr-mount/967eb3e1-9fee-40ef-a76d-5e5aa134a93d type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/snapshots/3/240 on
/var/run/sr-mount/c2296c1c-ea22-4754-a1e0-60978e189123 type none (rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/232
on /var/run/sr-mount/9c229ee2-e6a8-4c07-9fee-3bb36337a6ee type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/234
on /var/run/sr-mount/bed2ca3a-2df9-496f-b246-db7d287f5006 type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/235
on /var/run/sr-mount/9c7a3b19-4047-40a1-8a0f-f95c30936398 type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/254
on /var/run/sr-mount/83869571-ac77-405c-8849-949374b78680 type none
(rw,bind)
/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/256
on /var/run/sr-mount/9bf958cb-fc5e-4e54-ab22-b1850d1dd487 type none
(rw,bind)
I think template 254 and 256 where mentioned in the vdi list I send in the
previous email.
What to do?
thanks
Carlos
On Wed, Jun 10, 2015 at 1:19 PM, Carlos Reategui <ca...@reategui.com>
wrote:
> Hi Suhansu,
> Thanks for the help. The command you provided complained about "unknown
> field 'vdi-uuid'". I tried with just uuid but the id from the log (which
> you had in your command) does not exist. Instead I fetched all the params
> by name-label of the root disk we were trying to create a template from. I
> don't quite understand why there are 3 vdi or how they are related to each
> other.
>
> # xe vdi-list name-label=ROOT-167 params=all
>
> uuid ( RO) : 3dd52d1f-bb68-498f-aefb-441951dd9306
>
> name-label ( RW): ROOT-167
>
> name-description ( RW):
>
> is-a-snapshot ( RO): false
>
> snapshot-of ( RO): <not in database>
>
> snapshots ( RO):
>
> snapshot-time ( RO): 19700101T00:00:00Z
>
> allowed-operations (SRO): clone; snapshot
>
> current-operations (SRO):
>
> sr-uuid ( RO): 83869571-ac77-405c-8849-949374b78680
>
> sr-name-label ( RO):
> b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/254
>
> vbd-uuids (SRO): 87d32128-09fc-68c3-fe19-e8eb439fd9af
>
> crashdump-uuids (SRO):
>
> virtual-size ( RO): 10737418240
>
> physical-utilisation ( RO): 195440640
>
> location ( RO): 3dd52d1f-bb68-498f-aefb-441951dd9306
>
> type ( RO): User
>
> sharable ( RO): false
>
> read-only ( RO): false
>
> storage-lock ( RO): false
>
> managed ( RO): true
>
> parent ( RO): <not in database>
>
> missing ( RO): false
>
> other-config (MRW): content_id:
> 926d84fc-ca87-343a-edee-01f6765dde94
>
> xenstore-data (MRO):
>
> sm-config (MRO):
> host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
>
> on-boot ( RW): persist
>
> allow-caching ( RW): false
>
> metadata-latest ( RO): false
>
> metadata-of-pool ( RO): <not in database>
>
> tags (SRW):
>
>
>
> uuid ( RO) : 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
>
> name-label ( RW): ROOT-167
>
> name-description ( RW):
>
> is-a-snapshot ( RO): false
>
> snapshot-of ( RO): <not in database>
>
> snapshots ( RO):
>
> snapshot-time ( RO): 19700101T00:00:00Z
>
> allowed-operations (SRO): clone; snapshot
>
> current-operations (SRO):
>
> sr-uuid ( RO): 9bf958cb-fc5e-4e54-ab22-b1850d1dd487
>
> sr-name-label ( RO):
> b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/256
>
> vbd-uuids (SRO): 23e501b7-945a-3399-bfb2-88082612a08c
>
> crashdump-uuids (SRO):
>
> virtual-size ( RO): 10737418240
>
> physical-utilisation ( RO): 24064
>
> location ( RO): 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
>
> type ( RO): User
>
> sharable ( RO): false
>
> read-only ( RO): false
>
> storage-lock ( RO): false
>
> managed ( RO): true
>
> parent ( RO): <not in database>
>
> missing ( RO): false
>
> other-config (MRW): content_id:
> decfe93c-63a7-a90d-2593-a764fab317f9
>
> xenstore-data (MRO):
>
> sm-config (MRO):
> host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
>
> on-boot ( RW): persist
>
> allow-caching ( RW): false
>
> metadata-latest ( RO): false
>
> metadata-of-pool ( RO): <not in database>
>
> tags (SRW):
>
>
>
> uuid ( RO) : 624c9601-9034-40ca-a0c2-1705078e5c00
>
> name-label ( RW): ROOT-167
>
> name-description ( RW):
>
> is-a-snapshot ( RO): false
>
> snapshot-of ( RO): <not in database>
>
> snapshots ( RO):
>
> snapshot-time ( RO): 19700101T00:00:00Z
>
> allowed-operations (SRO): forget; generate_config; update; resize;
> destroy; clone; copy; snapshot
>
> current-operations (SRO):
>
> sr-uuid ( RO): 6a318cfe-4f49-4a00-ec12-7445ea8a05c9
>
> sr-name-label ( RO): d660baaa-db1e-3d11-872f-10c69d748764
>
> vbd-uuids (SRO):
>
> crashdump-uuids (SRO):
>
> virtual-size ( RO): 10737418240
>
> physical-utilisation ( RO): 2286182912
>
> location ( RO): 624c9601-9034-40ca-a0c2-1705078e5c00
>
> type ( RO): User
>
> sharable ( RO): false
>
> read-only ( RO): false
>
> storage-lock ( RO): false
>
> managed ( RO): true
>
> parent ( RO): <not in database>
>
> missing ( RO): false
>
> other-config (MRW): content_id:
> 13d71fcb-5849-3162-6d53-6bf762b87097
>
> xenstore-data (MRO):
>
> sm-config (MRO): vhd-parent:
> 7f3a9636-af79-4cdb-a062-96317610b260
>
> on-boot ( RW): persist
>
> allow-caching ( RW): false
>
> metadata-latest ( RO): false
>
> metadata-of-pool ( RO): <not in database>
>
> tags (SRW):
>
>
>
> On Wed, Jun 10, 2015 at 9:51 AM, Sudhansu Sahu <Su...@citrix.com>
> wrote:
>
>> Hi Carlos,
>>
>> You can execute below command to see what is using the VDI.
>>
>> xe vdi-list vdi-uuid=e8287b80-2fad-21bb-873f-994692660f params=vm-uuid
>> xe vm-list uuid=<vm-uuid>
>>
>>
>>
>> Regards
>> Sudhansu Sahu
>> CPG-Orchestration
>> Sudhansu.Sahu@citrix.com <ma...@citrix.com>
>>
>> <http://www.citrix.com>
>>
>> Powering mobile workstyles and cloud services
>>
>>
>>
>>
>>
>>
>> On 10/06/15 9:27 pm, "Carlos Reategui" <cr...@gmail.com> wrote:
>>
>> >Anybody?
>> >
>> >On Tue, Jun 9, 2015 at 6:24 PM, Carlos Reategui <cr...@gmail.com>
>> >wrote:
>> >
>> >>
>> >> ACS: 4.4.0 on Ubuntu 12.04.5
>> >> Hosts: XenServer 6.2
>> >>
>> >> I am seeing the following error when trying to create a template from a
>> >> stopped instance (no problems stopping/starting it). How do I figure
>> >>out
>> >> what is using the VDI and not allowing the template?
>> >>
>> >>
>> >> 2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
>> >> (DirectAgent-210:ctx-b2317482) Task:
>> >> ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
>> >> UUID:e8287b80-2fad-21bb-873f-994692660f
>> >>
>> >> fd progress: 0.15
>> >>
>> >> 2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
>> >> (DirectAgent-210:ctx-b2317482) No event for task
>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>> >>
>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
>> >>
>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
>> >>
>> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
>> >>
>> >> 2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
>> >>
>> >> 2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>> >>This
>> >> operation
>> >>
>> >> cannot be performed because this VDI is in use by some other operation
>> >>
>> >> 2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>> >>This
>> >> operation
>> >>
>> >> cannot be performed because this VDI is in use by some other operation
>> >>
>> >> 2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
>> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
>> >>
>> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
>> >> (DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response
>> >>Received:
>> >>
>> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
>> >> (StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: {
>> >>Ans:
>> >> , MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, { GetVmStatsAnsw
>> >>
>> >> er } }
>> >>
>> >> 2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
>> >> (DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing
>> >>request
>> >>
>> >> 2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
>> >> (DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing
>> >>request
>> >>
>> >> 2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
>> >> (catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
>> >>
>>
>> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&re
>> >>sponse=
>> >>
>> >> json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>> >>
>> >> 2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
>> >> (catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108 --
>> >> GET
>> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
>> >>
>> >>
>>
>> >>8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>> >>
>> >> 2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
>> >> (DirectAgent-210:ctx-b2317482) Creating template from volume
>> >> 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
>> >>
>> >> rrent.TimeoutException: No event for task
>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>> >>
>> >> java.util.concurrent.TimeoutException: No event for task
>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitF
>> >>orTask(XenServerResourceNewBase.java:124)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemp
>> >>lateFromVolume(Xenserver625StorageProcessor.java:556)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Sto
>> >>rageSubsystemCommandHandlerBase.java:90)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStora
>> >>geCommands(StorageSubsystemCommandHandlerBase.java:52)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> >>xResourceBase.java:546)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> >>erver56Resource.java:61)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(Xen
>> >>Server610Resource.java:102)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(
>> >>XenServer620SP1Resource.java:65)
>> >>
>> >> at
>> >>
>>
>> >>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> >>ttache.java:216)
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> >>dContextRunnable.java:49)
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> >>efaultManagedContext.java:56)
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> >>Context(DefaultManagedContext.java:103)
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> >>ontext(DefaultManagedContext.java:53)
>> >>
>> >> at
>> >>
>>
>> >>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> >>ontextRunnable.java:46)
>> >>
>> >> at
>> >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> >>
>> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> >>
>> >> at
>> >>
>>
>> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> >>ss$201(ScheduledThreadPoolExecutor.java:178)
>> >>
>> >> at
>> >>
>>
>> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
>> >>ScheduledThreadPoolExecutor.java:292)
>> >>
>> >> at
>> >>
>>
>> >>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
>> >>:1145)
>> >>
>> >> at
>> >>
>>
>> >>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
>> >>a:615)
>> >>
>> >> at java.lang.Thread.run(Thread.java:744)
>> >>
>> >> 2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache]
>> >> (DirectAgent-210:ctx-b2317482) Seq 3-4941293216155592791: Response
>> >> Received:
>> >>
>> >> 2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
>> >> ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
>> >> 159090355471823, via: 3, Ver: v1, Flags: 10,
>> >>
>>
>> >>[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"
>> >>details":"Creating
>> >> template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to
>> >> java.util.concurrent.TimeoutException: No event for task
>> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
>> >>
>> >>
>> >> Thank you,
>> >> Carlos
>> >>
>>
>>
>
Re: Unable to create template
Posted by Carlos Reategui <ca...@reategui.com>.
Hi Suhansu,
Thanks for the help. The command you provided complained about "unknown
field 'vdi-uuid'". I tried with just uuid but the id from the log (which
you had in your command) does not exist. Instead I fetched all the params
by name-label of the root disk we were trying to create a template from. I
don't quite understand why there are 3 vdi or how they are related to each
other.
# xe vdi-list name-label=ROOT-167 params=all
uuid ( RO) : 3dd52d1f-bb68-498f-aefb-441951dd9306
name-label ( RW): ROOT-167
name-description ( RW):
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
allowed-operations (SRO): clone; snapshot
current-operations (SRO):
sr-uuid ( RO): 83869571-ac77-405c-8849-949374b78680
sr-name-label ( RO):
b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/254
vbd-uuids (SRO): 87d32128-09fc-68c3-fe19-e8eb439fd9af
crashdump-uuids (SRO):
virtual-size ( RO): 10737418240
physical-utilisation ( RO): 195440640
location ( RO): 3dd52d1f-bb68-498f-aefb-441951dd9306
type ( RO): User
sharable ( RO): false
read-only ( RO): false
storage-lock ( RO): false
managed ( RO): true
parent ( RO): <not in database>
missing ( RO): false
other-config (MRW): content_id:
926d84fc-ca87-343a-edee-01f6765dde94
xenstore-data (MRO):
sm-config (MRO):
host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
on-boot ( RW): persist
allow-caching ( RW): false
metadata-latest ( RO): false
metadata-of-pool ( RO): <not in database>
tags (SRW):
uuid ( RO) : 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
name-label ( RW): ROOT-167
name-description ( RW):
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
allowed-operations (SRO): clone; snapshot
current-operations (SRO):
sr-uuid ( RO): 9bf958cb-fc5e-4e54-ab22-b1850d1dd487
sr-name-label ( RO):
b5090b36-27c4-46d2-9023-edc8e737f65b/var/cloud_mount/0d6bd883-fffb-3586-9dae-98b2e64995f1/template/tmpl/3/256
vbd-uuids (SRO): 23e501b7-945a-3399-bfb2-88082612a08c
crashdump-uuids (SRO):
virtual-size ( RO): 10737418240
physical-utilisation ( RO): 24064
location ( RO): 1bc9f9c3-8a8f-4cea-829e-1ad2f92a0e15
type ( RO): User
sharable ( RO): false
read-only ( RO): false
storage-lock ( RO): false
managed ( RO): true
parent ( RO): <not in database>
missing ( RO): false
other-config (MRW): content_id:
decfe93c-63a7-a90d-2593-a764fab317f9
xenstore-data (MRO):
sm-config (MRO):
host_OpaqueRef:0efe83aa-1594-b027-21fe-63b868d2755e: RW
on-boot ( RW): persist
allow-caching ( RW): false
metadata-latest ( RO): false
metadata-of-pool ( RO): <not in database>
tags (SRW):
uuid ( RO) : 624c9601-9034-40ca-a0c2-1705078e5c00
name-label ( RW): ROOT-167
name-description ( RW):
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
allowed-operations (SRO): forget; generate_config; update; resize;
destroy; clone; copy; snapshot
current-operations (SRO):
sr-uuid ( RO): 6a318cfe-4f49-4a00-ec12-7445ea8a05c9
sr-name-label ( RO): d660baaa-db1e-3d11-872f-10c69d748764
vbd-uuids (SRO):
crashdump-uuids (SRO):
virtual-size ( RO): 10737418240
physical-utilisation ( RO): 2286182912
location ( RO): 624c9601-9034-40ca-a0c2-1705078e5c00
type ( RO): User
sharable ( RO): false
read-only ( RO): false
storage-lock ( RO): false
managed ( RO): true
parent ( RO): <not in database>
missing ( RO): false
other-config (MRW): content_id:
13d71fcb-5849-3162-6d53-6bf762b87097
xenstore-data (MRO):
sm-config (MRO): vhd-parent:
7f3a9636-af79-4cdb-a062-96317610b260
on-boot ( RW): persist
allow-caching ( RW): false
metadata-latest ( RO): false
metadata-of-pool ( RO): <not in database>
tags (SRW):
On Wed, Jun 10, 2015 at 9:51 AM, Sudhansu Sahu <Su...@citrix.com>
wrote:
> Hi Carlos,
>
> You can execute below command to see what is using the VDI.
>
> xe vdi-list vdi-uuid=e8287b80-2fad-21bb-873f-994692660f params=vm-uuid
> xe vm-list uuid=<vm-uuid>
>
>
>
> Regards
> Sudhansu Sahu
> CPG-Orchestration
> Sudhansu.Sahu@citrix.com <ma...@citrix.com>
>
> <http://www.citrix.com>
>
> Powering mobile workstyles and cloud services
>
>
>
>
>
>
> On 10/06/15 9:27 pm, "Carlos Reategui" <cr...@gmail.com> wrote:
>
> >Anybody?
> >
> >On Tue, Jun 9, 2015 at 6:24 PM, Carlos Reategui <cr...@gmail.com>
> >wrote:
> >
> >>
> >> ACS: 4.4.0 on Ubuntu 12.04.5
> >> Hosts: XenServer 6.2
> >>
> >> I am seeing the following error when trying to create a template from a
> >> stopped instance (no problems stopping/starting it). How do I figure
> >>out
> >> what is using the VDI and not allowing the template?
> >>
> >>
> >> 2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
> >> (DirectAgent-210:ctx-b2317482) Task:
> >> ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
> >> UUID:e8287b80-2fad-21bb-873f-994692660f
> >>
> >> fd progress: 0.15
> >>
> >> 2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
> >> (DirectAgent-210:ctx-b2317482) No event for task
> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
> >>
> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
> >>
> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
> >>
> >> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
> >>
> >> 2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
> >>
> >> 2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
> >>This
> >> operation
> >>
> >> cannot be performed because this VDI is in use by some other operation
> >>
> >> 2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
> >>This
> >> operation
> >>
> >> cannot be performed because this VDI is in use by some other operation
> >>
> >> 2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> >> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
> >>
> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
> >> (DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response
> >>Received:
> >>
> >> 2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
> >> (StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: {
> >>Ans:
> >> , MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, { GetVmStatsAnsw
> >>
> >> er } }
> >>
> >> 2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
> >> (DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing
> >>request
> >>
> >> 2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
> >> (DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing
> >>request
> >>
> >> 2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
> >> (catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
> >>
> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&re
> >>sponse=
> >>
> >> json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
> >>
> >> 2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
> >> (catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108 --
> >> GET
> >>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
> >>
> >>
> >>8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
> >>
> >> 2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
> >> (DirectAgent-210:ctx-b2317482) Creating template from volume
> >> 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
> >>
> >> rrent.TimeoutException: No event for task
> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
> >>
> >> java.util.concurrent.TimeoutException: No event for task
> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
> >>
> >> at
> >>
> >>org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitF
> >>orTask(XenServerResourceNewBase.java:124)
> >>
> >> at
> >>
> >>com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemp
> >>lateFromVolume(Xenserver625StorageProcessor.java:556)
> >>
> >> at
> >>
> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Sto
> >>rageSubsystemCommandHandlerBase.java:90)
> >>
> >> at
> >>
> >>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStora
> >>geCommands(StorageSubsystemCommandHandlerBase.java:52)
> >>
> >> at
> >>
> >>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> >>xResourceBase.java:546)
> >>
> >> at
> >>
> >>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> >>erver56Resource.java:61)
> >>
> >> at
> >>
> >>com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(Xen
> >>Server610Resource.java:102)
> >>
> >> at
> >>
> >>com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(
> >>XenServer620SP1Resource.java:65)
> >>
> >> at
> >>
> >>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> >>ttache.java:216)
> >>
> >> at
> >>
> >>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> >>dContextRunnable.java:49)
> >>
> >> at
> >>
> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> >>efaultManagedContext.java:56)
> >>
> >> at
> >>
> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> >>Context(DefaultManagedContext.java:103)
> >>
> >> at
> >>
> >>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> >>ontext(DefaultManagedContext.java:53)
> >>
> >> at
> >>
> >>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> >>ontextRunnable.java:46)
> >>
> >> at
> >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >>
> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> >>
> >> at
> >>
> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> >>ss$201(ScheduledThreadPoolExecutor.java:178)
> >>
> >> at
> >>
> >>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
> >>ScheduledThreadPoolExecutor.java:292)
> >>
> >> at
> >>
> >>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
> >>:1145)
> >>
> >> at
> >>
> >>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
> >>a:615)
> >>
> >> at java.lang.Thread.run(Thread.java:744)
> >>
> >> 2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache]
> >> (DirectAgent-210:ctx-b2317482) Seq 3-4941293216155592791: Response
> >> Received:
> >>
> >> 2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
> >> ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
> >> 159090355471823, via: 3, Ver: v1, Flags: 10,
> >>
> >>[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"
> >>details":"Creating
> >> template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to
> >> java.util.concurrent.TimeoutException: No event for task
> >> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
> >>
> >>
> >> Thank you,
> >> Carlos
> >>
>
>
Re: Unable to create template
Posted by Sudhansu Sahu <Su...@citrix.com>.
Hi Carlos,
You can execute below command to see what is using the VDI.
xe vdi-list vdi-uuid=e8287b80-2fad-21bb-873f-994692660f params=vm-uuid
xe vm-list uuid=<vm-uuid>
Regards
Sudhansu Sahu
CPG-Orchestration
Sudhansu.Sahu@citrix.com <ma...@citrix.com>
<http://www.citrix.com>
Powering mobile workstyles and cloud services
On 10/06/15 9:27 pm, "Carlos Reategui" <cr...@gmail.com> wrote:
>Anybody?
>
>On Tue, Jun 9, 2015 at 6:24 PM, Carlos Reategui <cr...@gmail.com>
>wrote:
>
>>
>> ACS: 4.4.0 on Ubuntu 12.04.5
>> Hosts: XenServer 6.2
>>
>> I am seeing the following error when trying to create a template from a
>> stopped instance (no problems stopping/starting it). How do I figure
>>out
>> what is using the VDI and not allowing the template?
>>
>>
>> 2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
>> (DirectAgent-210:ctx-b2317482) Task:
>> ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
>> UUID:e8287b80-2fad-21bb-873f-994692660f
>>
>> fd progress: 0.15
>>
>> 2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
>> (DirectAgent-210:ctx-b2317482) No event for task
>> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>
>> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
>>
>> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
>>
>> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
>>
>> 2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
>>
>> 2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>>This
>> operation
>>
>> cannot be performed because this VDI is in use by some other operation
>>
>> 2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException:
>>This
>> operation
>>
>> cannot be performed because this VDI is in use by some other operation
>>
>> 2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
>> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
>>
>> 2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response
>>Received:
>>
>> 2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
>> (StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: {
>>Ans:
>> , MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, { GetVmStatsAnsw
>>
>> er } }
>>
>> 2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing
>>request
>>
>> 2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing
>>request
>>
>> 2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
>>
>>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&re
>>sponse=
>>
>> json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>>
>> 2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108 --
>> GET
>>command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
>>
>>
>>8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>>
>> 2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
>> (DirectAgent-210:ctx-b2317482) Creating template from volume
>> 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
>>
>> rrent.TimeoutException: No event for task
>> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>
>> java.util.concurrent.TimeoutException: No event for task
>> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>>
>> at
>>
>>org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitF
>>orTask(XenServerResourceNewBase.java:124)
>>
>> at
>>
>>com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemp
>>lateFromVolume(Xenserver625StorageProcessor.java:556)
>>
>> at
>>
>>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Sto
>>rageSubsystemCommandHandlerBase.java:90)
>>
>> at
>>
>>com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStora
>>geCommands(StorageSubsystemCommandHandlerBase.java:52)
>>
>> at
>>
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>xResourceBase.java:546)
>>
>> at
>>
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>erver56Resource.java:61)
>>
>> at
>>
>>com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(Xen
>>Server610Resource.java:102)
>>
>> at
>>
>>com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(
>>XenServer620SP1Resource.java:65)
>>
>> at
>>
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>ttache.java:216)
>>
>> at
>>
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>dContextRunnable.java:49)
>>
>> at
>>
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>efaultManagedContext.java:56)
>>
>> at
>>
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>Context(DefaultManagedContext.java:103)
>>
>> at
>>
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>ontext(DefaultManagedContext.java:53)
>>
>> at
>>
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>ontextRunnable.java:46)
>>
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>> at
>>
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>ss$201(ScheduledThreadPoolExecutor.java:178)
>>
>> at
>>
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
>>ScheduledThreadPoolExecutor.java:292)
>>
>> at
>>
>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
>>:1145)
>>
>> at
>>
>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
>>a:615)
>>
>> at java.lang.Thread.run(Thread.java:744)
>>
>> 2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-210:ctx-b2317482) Seq 3-4941293216155592791: Response
>> Received:
>>
>> 2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
>> ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
>> 159090355471823, via: 3, Ver: v1, Flags: 10,
>>
>>[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"
>>details":"Creating
>> template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to
>> java.util.concurrent.TimeoutException: No event for task
>> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
>>
>>
>> Thank you,
>> Carlos
>>
Re: Unable to create template
Posted by Carlos Reategui <cr...@gmail.com>.
Anybody?
On Tue, Jun 9, 2015 at 6:24 PM, Carlos Reategui <cr...@gmail.com> wrote:
>
> ACS: 4.4.0 on Ubuntu 12.04.5
> Hosts: XenServer 6.2
>
> I am seeing the following error when trying to create a template from a
> stopped instance (no problems stopping/starting it). How do I figure out
> what is using the VDI and not allowing the template?
>
>
> 2015-06-10 06:29:12,653 DEBUG [o.a.c.h.x.XenServerResourceNewBase]
> (DirectAgent-210:ctx-b2317482) Task:
> ref:OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38,
> UUID:e8287b80-2fad-21bb-873f-994692660f
>
> fd progress: 0.15
>
> 2015-06-10 06:29:12,663 WARN [o.a.c.h.x.XenServerResourceNewBase]
> (DirectAgent-210:ctx-b2317482) No event for task
> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>
> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.2039705882352941
>
> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.1217647058823529
>
> 2015-06-10 06:29:12,694 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-460:ctx-cbb40517) Vm cpu utilization 0.5583088235294118
>
> 2015-06-10 06:29:12,730 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Removing SR
>
> 2015-06-10 06:29:12,740 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException: This
> operation
>
> cannot be performed because this VDI is in use by some other operation
>
> 2015-06-10 06:29:12,750 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Catch XenAPIException: This
> operation
>
> cannot be performed because this VDI is in use by some other operation
>
> 2015-06-10 06:29:12,750 WARN [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-210:ctx-b2317482) Host 10.120.60.14
> OpaqueRef:c53c50a0-df68-61c4-7588-fa155dbf7fdf: Unable to remove SR
>
> 2015-06-10 06:29:12,800 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-460:ctx-cbb40517) Seq 4-611645124392274755: Response Received:
>
> 2015-06-10 06:29:12,800 DEBUG [c.c.a.t.Request]
> (StatsCollector-2:ctx-e5ed46af) Seq 4-611645124392274755: Received: { Ans:
> , MgmtId: 159090355471823, via: 4, Ver: v1, Flags: 10, { GetVmStatsAnsw
>
> er } }
>
> 2015-06-10 06:29:12,838 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-140:ctx-9021c3b3) Seq 5-5799510420146382967: Executing request
>
> 2015-06-10 06:29:12,898 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-308:ctx-6d6e0d53) Seq 6-7127227885290520578: Executing request
>
> 2015-06-10 06:29:13,059 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-4:ctx-06e7f44b) ===START=== 172.30.36.108 -- GET
> command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-301990772208&response=
>
> json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>
> 2015-06-10 06:29:13,079 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-4:ctx-06e7f44b ctx-e53477e4) ===END=== 172.30.36.108 --
> GET command=queryAsyncJobResult&jobId=3ed63d71-bfd1-45b7-a09a-30199077220
>
> 8&response=json&sessionkey=yOqyUHVLV64YAywOKxDzR8JCSaU%3D&_=1433897964855
>
> 2015-06-10 06:29:13,415 ERROR [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-210:ctx-b2317482) Creating template from volume
> 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to java.util.concu
>
> rrent.TimeoutException: No event for task
> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>
> java.util.concurrent.TimeoutException: No event for task
> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38
>
> at
> org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitForTask(XenServerResourceNewBase.java:124)
>
> at
> com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.createTemplateFromVolume(Xenserver625StorageProcessor.java:556)
>
> at
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:90)
>
> at
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:52)
>
> at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:546)
>
> at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
>
> at
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
>
> at
> com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65)
>
> at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
> at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
> at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>
> at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>
> at
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>
> at
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
> at java.lang.Thread.run(Thread.java:744)
>
> 2015-06-10 06:29:13,420 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-210:ctx-b2317482) Seq 3-4941293216155592791: Response
> Received:
>
> 2015-06-10 06:29:13,421 DEBUG [c.c.a.t.Request] (DirectAgent-210:
> ctx-b2317482) Seq 3-4941293216155592791: Processing: { Ans: , MgmtId:
> 159090355471823, via: 3, Ver: v1, Flags: 10,
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Creating
> template from volume 624c9601-9034-40ca-a0c2-1705078e5c00 failed due to
> java.util.concurrent.TimeoutException: No event for task
> OpaqueRef:4d80dd35-8958-75b6-8075-a721a4d9ed38","wait":0}}] }
>
>
> Thank you,
> Carlos
>