Rayees Namathponnan created CLOUDSTACK-3604:
-----------------------------------------------
Summary: [Automation][BVT] Failed to create template from root
volume
Key: CLOUDSTACK-3604
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3604
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Template
Affects Versions: 4.2.0
Environment: VMware
branch 4.2
Reporter: Rayees Namathponnan
Fix For: 4.2.0
BVT test case cloudstack/test/integration/smoke/test_templates.py failed
To reproduce this manually, create a template from vm's root volume. it failed
with below error
Failed to create templateCreatePrivateTemplateFromVolumeCommand exception:
java.lang.Exception: unable to prepare template directory:
template/tmpl/417/228, storage:
nfs://10.223.110.232:/export/home/automation/SC-CLOUD-QA03/secondary1, error
msg: mkdir: cannot create directory
`/var/cloudstack/mnt/VM/90928106758026.1ecaaabf/template/tmpl/417': Permission
denied
com.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:492)
com.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:576)
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:81)
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:565)
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
--
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