cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rayees Namathponnan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-3413) [Automation] Failed to create template from root disk
Date Tue, 09 Jul 2013 07:29:48 GMT
Rayees Namathponnan created CLOUDSTACK-3413:
-----------------------------------------------

             Summary: [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
            Reporter: Rayees Namathponnan
             Fix For: 4.2.0


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