[ https://issues.apache.org/jira/browse/CLOUDSTACK-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Min Chen resolved CLOUDSTACK-2526. ---------------------------------- Resolution: Fixed > Object_Store_Refactor - Failed to attach/deattach iso. > ------------------------------------------------------ > > Key: CLOUDSTACK-2526 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2526 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Environment: Build from object_store > Reporter: Sangeetha Hariharan > Assignee: Min Chen > Priority: Critical > Fix For: 4.2.0 > > > Steps to reproduce the problem: > 1. Deploy VM using default cent OS template, small service offering and > small data disk offering > 2.start the VM > 3.Then attach ISO > 2013-05-15 15:06:08,923 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-32:job-32) Executing > org.apache.cloudstack.api.command.user.iso.AttachIsoCm > d for job-32 > 2013-05-15 15:06:08,924 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) > ===END=== 10.217.252.128 -- GET command=attachIso&virtualmachineid=2508eb8 > e-0b8a-44eb-b8e1-f014f8236518&id=e3605add-7f64-4328-9020-0c91559f80ee&response=json&sessionkey=XQ1%2FaslZ2qRmRvA8VWSFCLQgBCs%3D&_=1368658989102 > 2013-05-15 15:06:08,953 DEBUG [agent.transport.Request] > (Job-Executor-32:job-32) Seq 1-772932355: Sending { Cmd , MgmtId: > 206915885079359, via: 1, Ver: > v1, Flags: 100011, > [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":" > template/tmpl/2/205/205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae.iso","origUrl":"http://nfs1.lab.vmops.com/isos_64bit/ubuntu-12.10-server-amd64.iso","uuid" > :"e3605add-7f64-4328-9020-0c91559f80ee","id":205,"format":"ISO","accountId":2,"checksum":"4bd3270bde86d7e4e017e3847a4af485","hvm":true,"displayText":"tes > t-ubuntu","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","_role":"Image" > }},"name":"205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae"}},"type":"ISO"},"vmName":"i-2-8-VM","wait":0}}] > } > 2013-05-15 15:06:08,954 DEBUG [agent.transport.Request] > (Job-Executor-32:job-32) Seq 1-772932355: Executing: { Cmd , MgmtId: > 206915885079359, via: 1, Ve > r: v1, Flags: 100011, > [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path > ":"template/tmpl/2/205/205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae.iso","origUrl":"http://nfs1.lab.vmops.com/isos_64bit/ubuntu-12.10-server-amd64.iso","uu > id":"e3605add-7f64-4328-9020-0c91559f80ee","id":205,"format":"ISO","accountId":2,"checksum":"4bd3270bde86d7e4e017e3847a4af485","hvm":true,"displayText":" > test-ubuntu","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","_role":"Ima > ge"}},"name":"205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae"}},"type":"ISO"},"vmName":"i-2-8-VM","wait":0}}] > } > 2013-05-15 15:06:08,954 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-349:null) Seq 1-772932355: Executing request > 2013-05-15 15:06:10,309 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-349:null) Seq 1-772932355: Response Received: > 2013-05-15 15:06:10,309 DEBUG [agent.transport.Request] > (DirectAgent-349:null) Seq 1-772932355: Processing: { Ans: , MgmtId: > 206915885079359, via: 1, Ve > r: v1, Flags: 10, > [{"org.apache.cloudstack.storage.command.AttachAnswer":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"te > mplate/tmpl/2/205/205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae.iso","origUrl":"http://nfs1.lab.vmops.com/isos_64bit/ubuntu-12.10-server-amd64.iso","uuid":" > e3605add-7f64-4328-9020-0c91559f80ee","id":205,"format":"ISO","accountId":2,"checksum":"4bd3270bde86d7e4e017e3847a4af485","hvm":true,"displayText":"test- > ubuntu","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","_role":"Image"}} > ,"name":"205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae"}},"type":"ISO"},"result":false,"wait":0}}] > } > 2013-05-15 15:06:10,309 DEBUG [agent.transport.Request] > (Job-Executor-32:job-32) Seq 1-772932355: Received: { Ans: , MgmtId: > 206915885079359, via: 1, Ve > r: v1, Flags: 10, { AttachAnswer } } > 2013-05-15 15:06:10,348 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-32:job-32) Unexpected exception while executing > org.apache.cloudstack.api.c > ommand.user.iso.AttachIsoCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to attach iso > at > com.cloud.template.TemplateManagerImpl.attachIso(TemplateManagerImpl.java:1034) > 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-05-15 15:06:10,349 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-32:job-32) Complete async job-32, jobStatus: 2, resultCode: > 530, result: Error Code: 530 Error text: Failed to attach iso > Following exception seen when trying to detach iso: > 2013-05-15 15:38:55,995 DEBUG [agent.transport.Request] (DirectAgent-25:null) > Seq 1-772932497: Processing: { Ans: , MgmtId: 206915885079359, via: 1, Ver: > v1, Flags: 10, > [{"org.apache.cloudstack.storage.command.DettachAnswer":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"temp > late/tmpl/2/205/205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae.iso","origUrl":"http://nfs1.lab.vmops.com/isos_64bit/ubuntu-12.10-server-amd64.iso","uuid":"e36 > 05add-7f64-4328-9020-0c91559f80ee","id":205,"format":"ISO","accountId":2,"checksum":"4bd3270bde86d7e4e017e3847a4af485","hvm":true,"displayText":"test-ubun > tu123","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","_role":"Image"}}," > name":"205-2-4b3bfb88-5dfc-3dba-a815-9937205fa2ae"}},"type":"ISO"},"result":false,"wait":0}}] > } > 2013-05-15 15:38:55,995 DEBUG [agent.transport.Request] > (Job-Executor-36:job-36) Seq 1-772932497: Received: { Ans: , MgmtId: > 206915885079359, via: 1, Ver > : v1, Flags: 10, { DettachAnswer } } > 2013-05-15 15:38:56,005 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-36:job-36) Unexpected exception while executing > org.apache.cloudstack.api.co > mmand.user.iso.DetachIsoCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to detach iso > at > com.cloud.template.TemplateManagerImpl.detachIso(TemplateManagerImpl.java:988) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.iso.DetachIsoCmd.execute(DetachIsoCmd.java:87) > 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-05-15 15:38:56,006 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-36:job-36) Complete async job-36, jobStatus: 2, resultCode: > 530, result: Err > or Code: 530 Error text: Failed to detach iso > 2013-05-15 15:38:58,101 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) > ===START=== 10.217.252.128 -- GET command=queryAsyncJobResult&jobId=d6935a24 > -3b43-4cae-88e0-f1a8aacdf6ba&response=json&sessionkey=ZqfFfJyJJ9h1HycxWdMRLdWn7yE%3D&_=1368660958445 > 2013-05-15 15:38:58,114 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-2:null) Async job-36 completed -- 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