[ https://issues.apache.org/jira/browse/CLOUDSTACK-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733017#comment-13733017 ]
ASF subversion and git services commented on CLOUDSTACK-4135: ------------------------------------------------------------- Commit 82c35e52ea8c10252067a6edc7b97408d9266dda in branch refs/heads/master from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=82c35e5 ] CLOUDSTACK-4135: [Object_store_refactor] ISO attached to the guest vm has wrong mount path. > [Object_store_refactor] ISO attached to the guest vm has wrong mount path > ------------------------------------------------------------------------- > > Key: CLOUDSTACK-4135 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4135 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: ISO, Storage Controller, VMware > Affects Versions: 4.2.0 > Environment: Latest build from ACS 4.2 branch > Storage: S3 for secondary, NFS for staging and ISCSI for primary storage > Cluster : VMWare > Reporter: Sanjeev N > Assignee: Min Chen > Priority: Critical > Fix For: 4.2.0 > > Attachments: cloud.dmp, management-server.rar > > > ISO attached to the guest vm has wrong mount path. > Steps to Reproduce: > ================= > 1.Bring up CS with vmware cluster using S3 for secondary, NFS for staging > secondary and ISCSI for primary storage > 2.Deploy guest vm with default cent os tempalate > 3.Register ISO to CS > 4.Attach registered iso to the guest vm > Observations: > ========== > Attaching iso to the guest vm is succeeded. However vm properties in vSphere > shows the wrong path for the attached iso. > ISO will be copied from s3 to staging storage as part of ISO attachment. > ISO location after copying the iso to staging secondary storage is as follows: > "template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso" > But on vSphere vm properties shows the Datastore ISO file as > "template/tmpl/2/211c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso" > one / is missing after 211. Due to this mounting iso fails with error > "unknown device" > Tried this on multiple vms and behavior is same. > Log snippet during iso attach : > 2013-08-07 05:06:58,351 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-25:null) submit async job-49 = [ > 6ad4c868-37cd-4d9b-b890-beafebb1de1d ], details: AsyncJobVO {id:49, userId: > 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.user.iso.AttachIsoCmd, cmdOriginator: null, > cmdInfo: > {"response":"json","id":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","sessionkey":"0MiEyYRhbpp7aGMi7ELrm2BdFS0\u003d","virtualmachineid":"0afcdecd-9515-4780-a097-24c9e5c107cd","cmdEventType":"ISO.ATTACH","ctxUserId":"2","httpmethod":"GET","_":"1375866404093","ctxAccountId":"2","ctxStartEventId":"191"}, > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, > processStatus: 0, resultCode: 0, result: null, initMsid: 6615759585382, > completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-08-07 05:06:58,354 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) > ===END=== 10.146.0.20 -- GET > command=attachIso&virtualmachineid=0afcdecd-9515-4780-a097-24c9e5c107cd&id=65ba08b1-c1b2-40c6-b6e1-d8831c0195a7&response=json&sessionkey=0MiEyYRhbpp7aGMi7ELrm2BdFS0%3D&_=1375866404093 > 2013-08-07 05:06:58,357 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Executing > org.apache.cloudstack.api.command.user.iso.AttachIsoCmd for job-49 = [ > 6ad4c868-37cd-4d9b-b890-beafebb1de1d ] > 2013-08-07 05:06:58,402 DEBUG [storage.image.TemplateDataFactoryImpl] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) template > 211 is already in store:10, type:Image > 2013-08-07 05:06:58,420 DEBUG [storage.image.TemplateDataFactoryImpl] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) template > 211 is already in store:8, type:ImageCache > 2013-08-07 05:06:58,427 DEBUG [storage.motion.AncientDataMotionStrategy] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) copyAsync > inspecting src type TEMPLATE copyAsync inspecting dest type TEMPLATE > 2013-08-07 05:06:58,450 DEBUG [agent.transport.Request] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq > 3-1317535888: Sending { Cmd , MgmtId: 6615759585382, via: 3, Ver: v1, Flags: > 100011, > [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/211-2-6da4c152-1118-3581-9af3-106339e1fcb8/dummy.iso","origUrl":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.agent.api.to.S3TO":{"id":10,"uuid":"fbb4a8d4-034a-4dd4-89ca-65769bd084ce","endPoint":"10.147.29.56:8080","bucketName":"imagestore","httpsFlag":false,"created":"Aug > 6, 2013 9:30:25 > AM","enableRRS":false}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb8","hypervisorType":"None"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211","origUrl":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/sanjeev/sec_esx_os","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb8","hypervisorType":"None"}},"executeInSequence":false,"wait":10800}}] > } > 2013-08-07 05:06:59,318 DEBUG [agent.transport.Request] > (AgentManager-Handler-14:null) Seq 3-1317535888: Processing: { Ans: , > MgmtId: 6615759585382, via: 3, Ver: v1, Flags: 10, > [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","id":0,"accountId":0,"hvm":false,"name":"c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","size":358400}},"result":true,"wait":0}}] > } > 2013-08-07 05:06:59,318 DEBUG [agent.transport.Request] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq > 3-1317535888: Received: { Ans: , MgmtId: 6615759585382, via: 3, Ver: v1, > Flags: 10, { CopyCmdAnswer } } > 2013-08-07 05:06:59,453 DEBUG [agent.transport.Request] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq > 1-1332481511: Sending { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: > 100011, > [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/sanjeev/sec_esx_os","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb8","hypervisorType":"None"}},"type":"ISO"},"vmName":"i-2-9-VM","_storagePort":0,"_managed":false,"wait":0}}] > } > 2013-08-07 05:06:59,453 DEBUG [agent.transport.Request] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq > 1-1332481511: Executing: { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, > Flags: 100011, > [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/sanjeev/sec_esx_os","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb8","hypervisorType":"None"}},"type":"ISO"},"vmName":"i-2-9-VM","_storagePort":0,"_managed":false,"wait":0}}] > } > 2013-08-07 05:06:59,454 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-225:null) Seq 1-1332481511: Executing request > 2013-08-07 05:06:59,454 DEBUG [vmware.mo.HostMO] > (DirectAgent-225:10.147.40.13) find VM i-2-9-VM on host > 2013-08-07 05:06:59,454 DEBUG [vmware.mo.HostMO] > (DirectAgent-225:10.147.40.13) load VM cache on host > 2013-08-07 05:07:01,153 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-225:null) Seq 1-1332481511: Response Received: > 2013-08-07 05:07:01,154 DEBUG [agent.transport.Request] > (DirectAgent-225:null) Seq 1-1332481511: Processing: { Ans: , MgmtId: > 6615759585382, via: 1, Ver: v1, Flags: 10, > [{"org.apache.cloudstack.storage.command.AttachAnswer":{"disk":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/sanjeev/sec_esx_os","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb8","hypervisorType":"None"}},"type":"ISO"},"result":true,"wait":0}}] > } > 2013-08-07 05:07:01,154 DEBUG [agent.transport.Request] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq > 1-1332481511: Received: { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, > Flags: 10, { AttachAnswer } } > 2013-08-07 05:07:01,285 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Complete > async job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ], jobStatus: 1, > resultCode: 0, result: > org.apache.cloudstack.api.response.UserVmResponse@376f628d > 2013-08-07 05:07:01,292 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-50:job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Done > executing org.apache.cloudstack.api.command.user.iso.AttachIsoCmd for job-49 > = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ] > 2013-08-07 05:07:01,469 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) > ===START=== 10.146.0.20 -- GET > command=queryAsyncJobResult&jobId=6ad4c868-37cd-4d9b-b890-beafebb1de1d&response=json&sessionkey=0MiEyYRhbpp7aGMi7ELrm2BdFS0%3D&_=1375866407388 > 2013-08-07 05:07:01,484 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-7:null) Async job-49 = [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d > ] completed > Attaching management server log file and cloud DB. -- 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