You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sangeetha Hariharan (JIRA)" <ji...@apache.org> on 2013/12/02 20:10:35 UTC

[jira] [Reopened] (CLOUDSTACK-5259) Xenserver - Not able to create template from snapshot.

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sangeetha Hariharan reopened CLOUDSTACK-5259:
---------------------------------------------


Reopening this issue to get confirmation:

I am using the system VM templates that was  build from master on 10/24/2013.

Is there any changes made to the system Vm templates after this ?

> Xenserver - Not able to create template from snapshot. 
> -------------------------------------------------------
>
>                 Key: CLOUDSTACK-5259
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5259
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.3.0
>         Environment: Build from 4.3
>            Reporter: Sangeetha Hariharan
>            Assignee: Harikrishna Patnala
>            Priority: Critical
>             Fix For: 4.3.0
>
>         Attachments: management-server.rar, xen1-2.rar, xen1.rar, xen2.rar
>
>
> Xenserver - Not able to create template from snapshot. 
> Steps to reproduce the problem:
> Set up - Advanced zone with Xenserver 6.2
> Created hourly recurring snapshot.
> Create a template from snapshot.
> Template creation fails with the following exception:
> Failed to create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh: line 65: /bin/vhd-util: No such file or directory30#failed to query /mnt/SecStorage/8d6190f7-3fc3-3a66-8a8c-bd8e50f2bbc6/snapshots/9/89/a2c06f0c-92e4-41b2-a4cb-7d1675146111.vhd
> We see the following vhd file exist in the secondary store.
> root@nfs3 89]# pwd
> /export/home/sangeetha/felton/xen/secondary/snapshots/9/89
> [root@nfs3 89]# ls -ltr
> total 2579628
> -rw-r--r-- 1 root root 7186309632 Nov 22 15:42 8546a63f-dc01-4348-babc-c34c138579c7.vhd
> -rw-r--r-- 1 root root  155537920 Nov 22 16:36 9d1404ca-c97e-4f6b-a1a4-3bb5fb1d3900.vhd
> -rw-r--r-- 1 root root  229081600 Nov 24 18:52 0323b0cb-446e-4550-a443-d135c4a960b8.vhd
> -rw-r--r-- 1 root root   75690496 Nov 24 19:35 e440d533-c5cf-464c-940a-505d5b0108c4.vhd
> -rw-r--r-- 1 root root   81994240 Nov 24 20:35 53f884fb-cd9c-4c35-bcf1-b90f3ce0ea5f.vhd
> -rw-r--r-- 1 root root   81994240 Nov 24 21:35 8ad156ad-e63f-44e1-a8ad-7bcc8acd0b26.vhd
> -rw-r--r-- 1 root root   79892992 Nov 24 22:35 2781b5af-7c92-482c-8775-f331c7df9b2b.vhd
> -rw-r--r-- 1 root root   75690496 Nov 24 23:35 a2c06f0c-92e4-41b2-a4cb-7d1675146111.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 00:35 3bd9fe33-ce59-4148-825f-f9e75e56d088.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 01:35 ab414c2b-ed16-4ee2-b3f8-d17b5075fe8d.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 02:35 cdd97481-d32d-4350-aaae-0a2132c2d934.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 03:35 1d82a5a0-1a75-44f3-8a27-dffcf1127b62.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 04:35 061043e7-9c22-404c-88e5-183ab4590f5e.vhd
> -rw-r--r-- 1 root root   81994240 Nov 25 05:35 f82e0d43-e83b-493b-b953-6f06a94a369b.vhd
> -rw-r--r-- 1 root root   84095488 Nov 25 06:35 6c0065ad-9fc0-4ce6-957c-0475153c2ed4.vhd
> [root@nfs3 89]#
> Management server logs:
> 2013-11-25 13:01:43,109 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-15:ctx-8576afd8 ctx-2f9b87f6) submit async job-726, details: AsyncJobVO {id:726, userI
> d: 2, accountId: 2, instanceType: Template, instanceId: 204, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, cmdInfo: {"sessionkey":"2I2cmFDP
> FQyACWMGWW8h54MGdC0\u003d","cmdEventType":"TEMPLATE.CREATE","ctxUserId":"2","httpmethod":"GET","osTypeId":"e7460654-52fe-11e3-821d-665544288891","isPublic":"true","i
> sdynamicallyscalable":"false","response":"json","id":"204","displayText":"temp99","snapshotid":"b6e507c5-3758-458f-bc98-01e69e2402b0","passwordEnabled":"false","name
> ":"temp99","_":"1385402509285","ctxAccountId":"2","ctxStartEventId":"21369"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, init
> Msid: 112516401760401, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-11-25 13:01:43,110 DEBUG [c.c.a.ApiServlet] (catalina-exec-15:ctx-8576afd8 ctx-2f9b87f6) ===END===  10.215.3.7 -- GET  command=createTemplate&response=json&sess
> ionkey=2I2cmFDPFQyACWMGWW8h54MGdC0%3D&snapshotid=b6e507c5-3758-458f-bc98-01e69e2402b0&name=temp99&displayText=temp99&osTypeId=e7460654-52fe-11e3-821d-665544288891&is
> Public=true&passwordEnabled=false&isdynamicallyscalable=false&_=1385402509285
> 2013-11-25 13:01:43,127 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (Job-Executor-105:ctx-d53e3263 ctx-2f9b87f6) template 204 is already in store:1, type:Image
> 2013-11-25 13:01:43,134 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (Job-Executor-105:ctx-d53e3263 ctx-2f9b87f6) copyAsync inspecting src type SNAPSHOT copyAsync ins
> pecting dest type TEMPLATE
> 2013-11-25 13:01:43,156 DEBUG [c.c.a.t.Request] (Job-Executor-105:ctx-d53e3263 ctx-2f9b87f6) Seq 4-1016860615: Sending  { Cmd , MgmtId: 112516401760401, via: 4(s-2-V
> M), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/9/
> 89/6c0065ad-9fc0-4ce6-957c-0475153c2ed4","volume":{"uuid":"450e8344-048d-4c6a-9244-2362aa49cc59","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.P
> rimaryDataStoreTO":{"uuid":"babe1c7d-3154-3b46-addc-837ca2b7f07d","id":1,"poolType":"NetworkFilesystem","host":"10.223.110.231","path":"/export/home/sangeetha/felton
> /xen/primary","port":2049,"url":"NetworkFilesystem://10.223.110.231//export/home/sangeetha/felton/xen/primary/?ROLE=Primary&STOREUUID=babe1c7d-3154-3b46-addc-837ca2b
> 7f07d"}},"name":"ROOT-89","size":21474836480,"path":"8caac1d7-b43a-42f5-ab68-4a8b824bd11e","volumeId":89,"vmName":"i-9-89-MyTestVM","accountId":9,"format":"VHD","id"
> :89,"deviceId":0,"hypervisorType":"XenServer"},"parentSnapshotPath":"snapshots/9/89/f82e0d43-e83b-493b-b953-6f06a94a369b","dataStore":{"com.cloud.agent.api.to.NfsTO"
> :{"_url":"nfs://10.223.110.233:/export/home/sangeetha/felton/xen/secondary","_role":"Image"}},"vmName":"i-9-89-MyTestVM","name":"TestVM-tiny-host-1ps-0-9_ROOT-89_201
> 31125171533","hypervisorType":"XenServer","id":368,"quiescevm":false}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/9/204","u
> uid":"daf7ea38-15ec-45c2-9c53-8b6327780259","id":204,"format":"RAW","accountId":9,"hvm":true,"displayText":"temp99","imageDataStore":{"com.cloud.agent.api.to.NfsTO":
> {"_url":"nfs://10.223.110.233:/export/home/sangeetha/felton/xen/secondary","_role":"Image"}},"name":"2a98a00de-8246-3e71-920d-afa8d38a9eee","hypervisorType":"XenServ
> er"}},"executeInSequence":false,"wait":10800}}] }
> 2013-11-25 13:01:43,325 DEBUG [c.c.a.t.Request] (AgentManager-Handler-3:null) Seq 4-1016860615: Processing:  { Ans: , MgmtId: 112516401760401, via: 4, Ver: v1, Flags
> : 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_f
> rom_snapshot_xen.sh: line 65: /bin/vhd-util: No such file or directory30#failed to query /mnt/SecStorage/8d6190f7-3fc3-3a66-8a8c-bd8e50f2bbc6/snapshots/9/89/6c0065ad
> -9fc0-4ce6-957c-0475153c2ed4.vhd","wait":0}}] }
> 2013-11-25 13:01:43,325 DEBUG [c.c.a.t.Request] (Job-Executor-105:ctx-d53e3263 ctx-2f9b87f6) Seq 4-1016860615: Received:  { Ans: , MgmtId: 112516401760401, via: 4, V
> er: v1, Flags: 10, { CopyCmdAnswer } }
> 2013-11-25 13:01:43,328 DEBUG [c.c.t.TemplateManagerImpl] (Job-Executor-105:ctx-d53e3263 ctx-2f9b87f6) Failed to create template/usr/local/cloud/systemvm/scripts/sto
> rage/secondary/create_privatetemplate_from_snapshot_xen.sh: line 65: /bin/vhd-util: No such file or directory30#failed to query /mnt/SecStorage/8d6190f7-3fc3-3a66-8a
> 8c-bd8e50f2bbc6/snapshots/9/89/6c0065ad-9fc0-4ce6-957c-0475153c2ed4.vhd
> 2013-11-25 13:01:43,335 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-105:ctx-d53e3263) Unexpected exception while executing org.apache.cloudstack.api.command.us
> er.template.CreateTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xe
> n.sh: line 65: /bin/vhd-util: No such file or directory30#failed to query /mnt/SecStorage/8d6190f7-3fc3-3a66-8a8c-bd8e50f2bbc6/snapshots/9/89/6c0065ad-9fc0-4ce6-957c
> -0475153c2ed4.vhd
>         at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1397)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at $Proxy158.createPrivateTemplate(Unknown Source)
>         at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:265)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
>         at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
>         at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
>         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 com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
>         at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:520)
>         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$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         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:722)
> 2013-11-25 13:01:43,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-105:ctx-d53e3263) Complete async job-726, jobStatus: FAILED, resultCode: 530, result: o
> rg.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed to create template/usr/local/cloud/systemvm/scripts/stora
> ge/secondary/create_privatetemplate_from_snapshot_xen.sh: line 65: /bin/vhd-util: No such file or directory30#failed to query /mnt/SecStorage/8d6190f7-3fc3-3a66-8a8c
> -bd8e50f2bbc6/snapshots/9/89/6c0065ad-9fc0-4ce6-957c-0475153c2ed4.vhd"}
> 2013-11-25 13:01:43,355 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-105:ctx-d53e3263) Done executing org.apache.cloudstack.api.command.user.template.Create
> TemplateCmd for job-726



--
This message was sent by Atlassian JIRA
(v6.1#6144)