[
https://issues.apache.org/jira/browse/CLOUDSTACK-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13803634#comment-13803634
]
angeline shen commented on CLOUDSTACK-4930:
-------------------------------------------
Same problem when using hosts XS 6.0.2 + patches
> create template from snapshot fail
> -----------------------------------
>
> Key: CLOUDSTACK-4930
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4930
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.2.1
> Environment: MS 10.223.130.59
> CloudPlatform-4.2.1-758-rhel6.3.tar.gz
> host XS 6.2 + patches
> Reporter: angeline shen
> Assignee: Nitin Mehta
> Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server.log.2013-10-22.gz
>
>
> 1. advance zone. Deploy VMs with data disk
> 2. take snapshots of root and data volumes
> 3. create template from snapshot of root volume and data volume fail
> 7692017993539, via: 3, Ver: v1, Flags: 100111,
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058","volume":{"uuid":"ff01e177-eac1-4f99-907b-380b02a85bfd","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"8db78175-66db-3225-8a6b-c7949bb1d96a","id":1,"poolType":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/angie/primary/xendix64","port":2049}},"name":"ROOT-3","size":21474836480,"path":"b3279a8e-98f1-4136-947f-9d54cbbf546f","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"VHD","id":3,"hypervisorType":"XenServer"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix64","_role":"Image"}},"vmName":"i-2-3-VM","name":"z1adminV1_ROOT-3_20131023043436","hypervisorType":"XenServer","id":1}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202","uuid":"a480bbc5-330e-4766-a8e5-b6d2725af7aa","id":202,"format":"RAW","accountId":2,"hvm":true,"displayText":"tssroot3","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/angie/secondary/xendix64","_role":"Image"}},"name":"2f629bb34-3ea1-3868-8371-e2b91f53802b","hypervisorType":"XenServer"}},"executeInSequence":true,"wait":10800}}]
> }
> 2013-10-22 21:37:53,218 DEBUG [agent.transport.Request]
> (AgentManager-Handler-5:null) Seq 3-2093678896: Processing: { Ans: , MgmtId:
> 7692017993539, via: 3, Ver: v1, Flags: 110,
> [{"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: Permission denied30#failed to query
> /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd","wait":0}}]
> }
> 2013-10-22 21:37:53,219 DEBUG [agent.transport.Request]
> (Job-Executor-16:job-16 = [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Seq
> 3-2093678896: Received: { Ans: , MgmtId: 7692017993539, via: 3, Ver: v1,
> Flags: 110, { CopyCmdAnswer } }
> 2013-10-22 21:37:53,222 DEBUG [agent.manager.AgentAttache]
> (AgentManager-Handler-5:null) Seq 3-2093678896: No more commands found
> 2013-10-22 21:37:53,236 DEBUG [cloud.template.TemplateManagerImpl]
> (Job-Executor-16:job-16 = [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Failed to
> create
> template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
> line 65: /bin/vhd-util: Permission denied30#failed to query
> /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd
> 2013-10-22 21:37:53,302 ERROR [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-16:job-16 = [ 97657177-e329-407a-bf71-2bdd17a3acc6 ])
> 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: Permission denied30#failed to query
> /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd
> at
> com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1396)
> 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-10-22 21:37:53,305 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-16:job-16 = [ 97657177-e329-407a-bf71-2bdd17a3acc6 ]) Complete
> async job-16 = [ 97657177-e329-407a-bf71-2bdd17a3acc6 ], 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: Permission denied30#failed to query
> /mnt/SecStorage/3ac2be04-bacf-3741-ad92-465d1825cad0/snapshots/2/3/f3bc4020-4614-4a35-88f6-44a79b80d058.vhd
--
This message was sent by Atlassian JIRA
(v6.1#6144)