cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sateesh Chodapuneedi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3413) [Automation] Failed to create template from root disk
Date Tue, 09 Jul 2013 16:49:51 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703487#comment-13703487
] 

Sateesh Chodapuneedi commented on CLOUDSTACK-3413:
--------------------------------------------------

KVM specific logs of CLOUDSTACK-3413 shows several exceptions of storage pool unavailability.
Looks like setup issue.
===============
NFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-116:job-117) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable:
Unable to create Vol[36|vm=36|ROOT]:Exception: com.cloud.utils.exception.CloudRuntimeException
Message: org.libvirt.LibvirtException: Storage pool not found: no pool with matching uuid
Stack: com.cloud.utils.exception.CloudRuntimeException: org.libvirt.LibvirtException: Storage
pool not found: no pool with matching uuid
===============
VMware specific logs of CLOUDSTACK-3413 point to a FileNotFoundException with permission denied
exception over secondary storage path for templates. The error is observed once. This could
be caused if target file is locked or “cloud” user doesn’t have write permissions to
the target file (java.io.FileNotFoundException: /var/cloudstack/mnt/VM/90928106758026.12177422/template/tmpl/15/206/220d6650b-0a37-3e70-914c-5f7bbb7e63cf-disk0.vmdk
(Permission denied))

Unable to reproduce this issue (VMware part of this bug). Tested the case of  copy template
from volume over my setup (VMware) built over master-6-17-stable branch with today’s commit
a54d2347fe8c798f4e3f658f683c548583d44485. It worked as expected.

                
> [Automation] Failed to create template from root disk
> -----------------------------------------------------
>
>                 Key: CLOUDSTACK-3413
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3413
>             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: Automation KVM and VMware
> Branch master-6-17-stable
>            Reporter: Rayees Namathponnan
>            Assignee: Sateesh Chodapuneedi
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-3413.rar
>
>
> This is BVT failure 
> cloudstack/test/integration/smoke/test_templates.py
> Test case creating template from root disk, it failed with below error
> VM ware MS log
> -------------------------
> 2013-07-08 22:33:55,842 DEBUG [agent.transport.Request] (Job-Executor-121:job-103) Seq
4-1793917268: Received:  { Ans: , MgmtId: 90928106758026, via: 4, Ver: v1, Flags: 10, { Cr
> eatePrivateTemplateAnswer } }
> 2013-07-08 22:33:55,858 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-121:job-103)
Failed to create templateCreatePrivateTemplateFromVolumeCommand exception: java.lan
> g.Exception: Unable to finish the whole process to package as a OVA file
> com.cloud.hypervisor.vmware.mo.VirtualMachineMO.exportVm(VirtualMachineMO.java:1399)
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.createTemplateFromVolume(VmwareStorageManagerImpl.java:656)
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:406)
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:4159)
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:452)
> 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)
> java.lang.Thread.run(Thread.java:722)
> 2013-07-08 22:33:55,866 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-121:job-103)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to create templateCreatePrivateTemplateFromVolumeCommand
exception: java.lang.Exception: Unable to finish the whole process to package as a OVA file
> com.cloud.hypervisor.vmware.mo.VirtualMachineMO.exportVm(VirtualMachineMO.java:1399)
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.createTemplateFromVolume(VmwareStorageManagerImpl.java:656)
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:406)
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:4159)
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:452)
> 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)
> :
> KVM MS log
> ------------------
> 2013-07-09 01:35:55,318 DEBUG [agent.transport.Request] (AgentManager-Handler-3:null)
Seq 5-1022951621: Processing:  { Ans: , MgmtId: 29066118877352, via: 5, Ver: v1, Flags: 10,
>  [{"Answer":{"result":false,"details":"java.lang.NullPointerException\n\tat com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:5
> 11)\n\tat com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:112)\n\tat
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.c
> reateStoragePool(KVMStoragePoolManager.java:105)\n\tat com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2318)\n\tat
com.cloud.hyp
> ervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1187)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat com.cloud.agent
> .Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1146)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
java.lang.Thread.run(Thread.java:679)\n","wait":0}}] }
> 2013-07-09 01:35:55,318 DEBUG [agent.transport.Request] (Job-Executor-148:job-140) Seq
5-1022951621: Received:  { Ans: , MgmtId: 29066118877352, via: 5, Ver: v1, Flags: 10, { An
> swer } }
> 2013-07-09 01:35:55,334 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-148:job-140)
copy failed
> java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer
>         at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.sendCommand(AncientDataMotionStrategy.java:652)
>         at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.createTemplateFromVolume(AncientDataMotionStrategy.java:735)
>         at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:483)
>         at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:59)
>         at org.apache.cloudstack.storage.image.ImageServiceImpl.createTemplateFromVolumeAsync(ImageServiceImpl.java:219)
>         at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1761)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:256)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         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:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-07-09 01:35:55,340 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-148:job-140)
Failed to create templatejava.lang.ClassCastException: com.cloud.agent.api.Answer cannot be
cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer
> 2013-07-09 01:35:55,347 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-148:job-140)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to create templatejava.lang.ClassCastException:
com.cloud.agent.api.Answer cannot be cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer
>         at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1773)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:256)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         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)
> :

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

Mime
View raw message