You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Rayees Namathponnan (JIRA)" <ji...@apache.org> on 2013/06/13 16:34:21 UTC

[jira] [Created] (CLOUDSTACK-2994) [Automation][Object_Store] Failed to attach ISO to vm

Rayees Namathponnan created CLOUDSTACK-2994:
-----------------------------------------------

             Summary: [Automation][Object_Store] Failed to attach ISO to vm
                 Key: CLOUDSTACK-2994
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2994
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: ISO
    Affects Versions: 4.2.0
         Environment: Object_Store branch build
KVM
            Reporter: Rayees Namathponnan
             Fix For: 4.2.0


BVT test integration.smoke.test_vm_life_cycle.TestVMLifeCycle.test_10_attachAndDetach_iso  failed due to this


Steps to reproduce 


Step 1 : Add iSO http://people.apache.org/~tsp/dummy.iso
Step 2 : Create new VM
Step 3 : Attach ISO to VM


Attach ISO failedwith below error 


2013-06-13 10:27:36,215 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===START===  10.216.51.168 -- GET  command=attachIso&virtualmachineid=b50c968b-92c2-44fb-b82a-de6891f77a5b&id=6cc5a9c8-c35f-4c44-bdb2-b14ab64dcd36&response=json&sessionkey=ThbZI1AXRGDVsDUBZS5Iq9ZvFhw%3D&_=1371133809191
2013-06-13 10:27:36,218 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-332:null) Ping from 1
2013-06-13 10:27:36,249 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-35:job-279) Executing org.apache.cloudstack.api.command.user.iso.AttachIsoCmd for job-279
2013-06-13 10:27:36,253 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-21:null) submit async job-279, details: AsyncJobVO {id:279, userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.iso.AttachIsoCmd, cmdOriginator: null, cmdInfo: {"id":"6cc5a9c8-c35f-4c44-bdb2-b14ab64dcd36","response":"json","sessionkey":"ThbZI1AXRGDVsDUBZS5Iq9ZvFhw\u003d","virtualmachineid":"b50c968b-92c2-44fb-b82a-de6891f77a5b","ctxUserId":"2","httpmethod":"GET","_":"1371133809191","ctxAccountId":"2","ctxStartEventId":"1239"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-06-13 10:27:36,255 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===END===  10.216.51.168 -- GET  command=attachIso&virtualmachineid=b50c968b-92c2-44fb-b82a-de6891f77a5b&id=6cc5a9c8-c35f-4c44-bdb2-b14ab64dcd36&response=json&sessionkey=ThbZI1AXRGDVsDUBZS5Iq9ZvFhw%3D&_=1371133809191
2013-06-13 10:27:36,286 DEBUG [agent.transport.Request] (Job-Executor-35:job-279) Seq 4-1568017056: Sending  { Cmd , MgmtId: 29066118877352, via: 4, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/210/210-2-726db663-1f18-3551-9358-1124895169dc.iso","origUrl":"http://people.apache.org/~tsp/dummy.iso","uuid":"6cc5a9c8-c35f-4c44-bdb2-b14ab64dcd36","id":210,"format":"ISO","accountId":2,"checksum":"b11099d68763f87ee90eab7af1d4dd1e","hvm":true,"displayText":"iso","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary","_role":"Image"}},"name":"210-2-726db663-1f18-3551-9358-1124895169dc"}},"type":"ISO"},"vmName":"i-2-88-VM","wait":0}}] }
2013-06-13 10:27:36,488 DEBUG [agent.transport.Request] (AgentManager-Handler-6:null) Seq 4-1568017056: Processing:  { Ans: , MgmtId: 29066118877352, via: 4, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"org.libvirt.LibvirtException: Domain not found: no domain with matching uuid '34444670-3193-38c2-a567-ff66dfeb8e66'","wait":0}}] }
2013-06-13 10:27:36,489 DEBUG [agent.transport.Request] (Job-Executor-35:job-279) Seq 4-1568017056: Received:  { Ans: , MgmtId: 29066118877352, via: 4, Ver: v1, Flags: 10, { Answer } }
2013-06-13 10:27:36,489 DEBUG [agent.manager.AgentManagerImpl] (Job-Executor-35:job-279) Details from executing class org.apache.cloudstack.storage.command.AttachCommand: org.libvirt.LibvirtException: Domain not found: no domain with matching uuid '34444670-3193-38c2-a567-ff66dfeb8e66'
2013-06-13 10:27:36,494 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-35:job-279) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.AttachIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to attach iso
        at com.cloud.template.TemplateManagerImpl.attachIso(TemplateManagerImpl.java:975)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.iso.AttachIsoCmd.execute(AttachIsoCmd.java:99)
        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-06-13 10:27:36,495 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-35:job-279) Complete async job-279, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to attach iso
2013-06-13 10:27:38,960 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-4:null) Ping from 8
2013-06-13 10:27:39,287 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===  10.216.51.168 -- GET  command=queryAsyncJobResult&jobId=8dcffaa7-f48b-47b2-b4cd-745abbc2f742&response=json&sessionkey=ThbZI1AXRGDVsDUBZS5Iq9ZvFhw%3D&_=1371133812265
2013-06-13 10:27:39,297 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-15:null) Async job-279 completed
2013-06-13 10:27:39,301 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  10.216.51.168 -- GET  command=queryAsyncJobResult&jobId=8dcffaa7-f48b-47b2-b4cd-745abbc2f742&response=json&sessionkey=ThbZI1AXRGDVsDUBZS5Iq9ZvFhw%3D&_=1371133812265
2013-06-13 10:27:39,821 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-5:null) Ping from 9
2013-06-13 10:27:40,770 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-130:null) Ping from 2





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