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

Abhinandan Prateek updated CLOUDSTACK-3992:
-------------------------------------------

    Assignee: Kishan Kavala
    
> create template from volume is failiing
> ---------------------------------------
>
>                 Key: CLOUDSTACK-3992
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3992
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Template
>    Affects Versions: 4.2.0
>            Reporter: Srikanteswararao Talluri
>            Assignee: Kishan Kavala
>            Priority: Blocker
>              Labels: automation
>             Fix For: 4.2.0
>
>
> Steps to reproduce:
> =============
> 1. try to create a template from snapshot on xenserver deployment
> ===START===  10.101.255.7 -- GET  
> command=createTemplate&response=json&sessionkey=B31P%2BLbF96sXG%2FZhzMO0%2F%2FeChqA%3D&snapshotid=5d37b57a-1024-4a12-bd95-4ede8eb384c2&name=tt&displayText=tt&osTypeId=83f45dd0-fa20-11e2-a8b7-06e1a6000030&isPublic=true&passwordEnabled=false&isdynamicallyscalable=false&_=1375330277066
> 2013-08-01 15:04:14,847 DEBUG [cloud.template.TemplateManagerImpl] 
> (catalina-exec-2:null) This template is getting created from other template, 
> setting source template Id to: 5
> 2013-08-01 15:04:14,904 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-2:null) submit async job-1291 = [ 
> 30c9005f-0352-4ad3-87d3-f39b1c669620 ], details: AsyncJobVO {id:1291, userId: 
> 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId: 218, 
> cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, 
> cmdOriginator: null, cmdInfo: 
> {"sessionkey":"B31P+LbF96sXG/ZhzMO0//eChqA\u003d","cmdEventType":"TEMPLATE.CREATE","ctxUserId":"2","httpmethod":"GET","osTypeId":"83f45dd0-fa20-11e2-a8b7-06e1a6000030","isPublic":"true","isdynamicallyscalable":"false","response":"json","id":"218","displayText":"tt","snapshotid":"5d37b57a-1024-4a12-bd95-4ede8eb384c2","passwordEnabled":"false","name":"tt","_":"1375330277066","ctxAccountId":"2","ctxStartEventId":"5552"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
> processStatus: 0, resultCode: 0, result: null, initMsid: 7566222426160, 
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-08-01 15:04:14,906 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===END===  10.101.255.7 -- GET  
> command=createTemplate&response=json&sessionkey=B31P%2BLbF96sXG%2FZhzMO0%2F%2FeChqA%3D&snapshotid=5d37b57a-1024-4a12-bd95-4ede8eb384c2&name=tt&displayText=tt&osTypeId=83f45dd0-fa20-11e2-a8b7-06e1a6000030&isPublic=true&passwordEnabled=false&isdynamicallyscalable=false&_=1375330277066
> 2013-08-01 15:04:14,908 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 
> Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd 
> for job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]
> 2013-08-01 15:04:14,951 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 
> template 218 is already in store:4, type:Image
> 2013-08-01 15:04:14,982 DEBUG [storage.motion.AncientDataMotionStrategy] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 
> copyAsync inspecting src type SNAPSHOT copyAsync inspecting dest type TEMPLATE
> 2013-08-01 15:04:15,015 DEBUG [agent.transport.Request] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) Seq 
> 11-948961453: Sending  { Cmd , MgmtId: 7566222426160, via: 11, Ver: v1, 
> Flags: 100011, 
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/365/85312237-8631-4803-9ad4-89d5dbada5e6","volume":{"uuid":"e01b39c3-8825-46c7-910d-b40eb227600e","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"dfd58d93-f4f2-34f7-b5f0-bfd69b6aaebe","id":3,"poolType":"NetworkFilesystem","host":"10.147.28.8","path":"/vol/dgVol/automation/adv/primary","port":2049}},"name":"ROOT-331","size":21474836480,"path":"f11f4072-aad5-43ee-9b91-3757446084b4","volumeId":365,"vmName":"i-2-331-QA","accountId":2,"format":"VHD","id":365,"hypervisorType":"XenServer"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.8/vol/dgVol/automation/adv/sec_3","_role":"Image"}},"vmName":"i-2-331-QA","name":"t_ROOT-331_20130801082105","hypervisorType":"XenServer","id":4}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/218","uuid":"9697990e-42fa-4337-971b-26e760fcc309","id":218,"format":"RAW","accountId":2,"hvm":true,"displayText":"tt","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.8/vol/dgVol/automation/adv/sec_3","_role":"Image"}},"name":"2accc9105-df53-3311-9407-fd5b41255e23","hypervisorType":"XenServer"}},"executeInSequence":false,"wait":10800}}]
>  }
> 2013-08-01 15:04:15,128 DEBUG [agent.transport.Request] 
> (AgentManager-Handler-13:null) Seq 11-948961453: Processing:  { Ans: , 
> MgmtId: 7566222426160, via: 11, Ver: v1, Flags: 10, 
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"/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/e152d077-9fc7-310c-b5d1-fc6311033535/snapshots/2/365/85312237-8631-4803-9ad4-89d5dbada5e6.vhd","wait":0}}]
>  }
> 2013-08-01 15:04:15,128 DEBUG [agent.transport.Request] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) Seq 
> 11-948961453: Received:  { Ans: , MgmtId: 7566222426160, via: 11, Ver: v1, 
> Flags: 10, { CopyCmdAnswer } }
> 2013-08-01 15:04:15,142 DEBUG [cloud.template.TemplateManagerImpl] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 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/e152d077-9fc7-310c-b5d1-fc6311033535/snapshots/2/365/85312237-8631-4803-9ad4-89d5dbada5e6.vhd
> 2013-08-01 15:04:15,173 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: 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/e152d077-9fc7-310c-b5d1-fc6311033535/snapshots/2/365/85312237-8631-4803-9ad4-89d5dbada5e6.vhd
>       at 
> com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1372)
>       at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>       at 
> org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263)
>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>       at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>       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:679)
> 2013-08-01 15:04:15,175 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-126:job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ]) 
> Complete async job-1291 = [ 30c9005f-0352-4ad3-87d3-f39b1c669620 ], 
> jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: 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/e152d077-9fc7-310c-b5d1-fc6311033535/snapshots/2/365/85312237-8631-4803-9ad4-89d5dbada5e6.vhd

--
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