Nikita Gubenko created CLOUDSTACK-2093:
------------------------------------------

             Summary: Error while creating template from snapshot 
                 Key: CLOUDSTACK-2093
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2093
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
    Affects Versions: 4.1.0
            Reporter: Nikita Gubenko


Hi
I have 4.1.0 CS with 1 XenServer 6.1, lvmoiscsi storage

I'm able to create snapshots, so secondary storage works ok, but can't create 
template from the fresh snapshot.

In the log:

2013-04-18 19:26:57,237 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-60:null) Seq 33-631177265: Executing request
2013-04-18 19:26:59,714 WARN  [xen.resource.CitrixResourceBase] 
(DirectAgent-60:null) create_privatetemplate_from_snapshot failed due to failed 
to query 
/var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd
2013-04-18 19:27:00,049 ERROR [xen.resource.CitrixResourceBase] 
(DirectAgent-60:null) Creating template from snapshot 
5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d failed due to 
com.cloud.utils.exception.CloudRuntimeException: 
create_privatetemplate_from_snapshot failed due to failed to query 
/var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd
com.cloud.utils.exception.CloudRuntimeException: 
create_privatetemplate_from_snapshot failed due to failed to query 
/var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createTemplateFromSnapshot(CitrixResourceBase.java:2653)
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:6464)
        at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:495)
        at 
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
        at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
        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:1146)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-04-18 19:27:00,050 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-60:null) Seq 33-631177265: Response Received:
2013-04-18 19:27:00,051 DEBUG [agent.transport.Request] (DirectAgent-60:null) 
Seq 33-631177265: Processing:  { Ans: , MgmtId: 161339761528, via: 33, Ver: v1, 
Flags: 10, 
[{"storage.CreatePrivateTemplateAnswer":{"_virtualSize":0,"_physicalSize":0,"result":false,"details":"Creating
 template from snapshot 5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d failed due to 
com.cloud.utils.exception.CloudRuntimeException: 
create_privatetemplate_from_snapshot failed due to failed to query 
/var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd","wait":0}}]
 }
2013-04-18 19:27:00,051 DEBUG [agent.transport.Request] 
(Job-Executor-3:job-581) Seq 33-631177265: Received:  { Ans: , MgmtId: 
161339761528, via: 33, Ver: v1, Flags: 10, { CreatePrivateTemplateAnswer } }
2013-04-18 19:27:00,061 ERROR [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-3:job-581) Unexpected exception while executing 
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create a template
        at 
com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:2332)
        at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at 
com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:256)
        at 
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
        at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        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:1146)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)

I've made some debugs of 
/opt/xensource/bin/create_privatetemplate_from_snapshot.sh - it tries to query 
vhd snapshot that doesn't exist. The snapshot itself with that name exists but 
available on another path

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to