Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED05F10ED6 for ; Thu, 8 Aug 2013 01:02:37 +0000 (UTC) Received: (qmail 93845 invoked by uid 500); 8 Aug 2013 01:02:37 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 93818 invoked by uid 500); 8 Aug 2013 01:02:37 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 93769 invoked by uid 500); 8 Aug 2013 01:02:37 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 93752 invoked by uid 99); 8 Aug 2013 01:02:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 01:02:37 +0000 Date: Thu, 8 Aug 2013 01:02:37 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4135) [Object_store_refactor] ISO attached to the guest vm has wrong mount path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4135?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13733017#comment-13733017 ]=20 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=3Dcloudstack.git;h=3D82c35e5 ] CLOUDSTACK-4135: [Object_store_refactor] ISO attached to the guest vm has wrong mount path. =20 > [Object_store_refactor] ISO attached to the guest vm has wrong mount path > ------------------------------------------------------------------------- > > Key: CLOUDSTACK-4135 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-413= 5 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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=20 > Observations: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Attaching iso to the guest vm is succeeded. However vm properties in vSph= ere 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 fol= lows: > "template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso" > But on vSphere vm properties shows the Datastore ISO file as "template/tm= pl/2/211c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso" > one / is missing after 211. Due to this mounting iso fails with error "un= known 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 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de= 1d ], details: AsyncJobVO {id:49, userId: 2, accountId: 2, sessionKey: null= , instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.comm= and.user.iso.AttachIsoCmd, cmdOriginator: null, cmdInfo: {"response":"json"= ,"id":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","sessionkey":"0MiEyYRhbpp7aGMi= 7ELrm2BdFS0\u003d","virtualmachineid":"0afcdecd-9515-4780-a097-24c9e5c107cd= ","cmdEventType":"ISO.ATTACH","ctxUserId":"2","httpmethod":"GET","_":"13758= 66404093","ctxAccountId":"2","ctxStartEventId":"191"}, cmdVersion: 0, callb= ackType: 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:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.146.0.20 -- GET command=3DattachIso&virtualm= achineid=3D0afcdecd-9515-4780-a097-24c9e5c107cd&id=3D65ba08b1-c1b2-40c6-b6e= 1-d8831c0195a7&response=3Djson&sessionkey=3D0MiEyYRhbpp7aGMi7ELrm2BdFS0%3D&= _=3D1375866404093 > 2013-08-07 05:06:58,357 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-50:job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Executing org.= apache.cloudstack.api.command.user.iso.AttachIsoCmd for job-49 =3D [ 6ad4c8= 68-37cd-4d9b-b890-beafebb1de1d ] > 2013-08-07 05:06:58,402 DEBUG [storage.image.TemplateDataFactoryImpl] (Jo= b-Executor-50:job-49 =3D [ 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] (Jo= b-Executor-50:job-49 =3D [ 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 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) copyA= sync 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 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq 3-1317535888: Send= ing { Cmd , MgmtId: 6615759585382, via: 3, Ver: v1, Flags: 100011, [{"org.= apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.clouds= tack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/211-2-6da4c1= 52-1118-3581-9af3-106339e1fcb8/dummy.iso","origUrl":"http://10.147.28.7/tem= plates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id"= :211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDa= taStore":{"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":"t= emplate/tmpl/2/211","origUrl":"http://10.147.28.7/templates/vmware/dummy.is= o","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":211,"format":"ISO","a= ccountId":2,"hvm":true,"displayText":"dummy","imageDataStore":{"com.cloud.a= gent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/sanjeev/sec_esx_o= s","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-3581-9af3-106339e1fcb= 8","hypervisorType":"None"}},"executeInSequence":false,"wait":10800}}] } > 2013-08-07 05:06:59,318 DEBUG [agent.transport.Request] (AgentManager-Han= dler-14:null) Seq 3-1317535888: Processing: { Ans: , MgmtId: 6615759585382= , via: 3, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.Copy= CmdAnswer":{"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.i= so","size":358400}},"result":true,"wait":0}}] } > 2013-08-07 05:06:59,318 DEBUG [agent.transport.Request] (Job-Executor-50:= job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq 3-1317535888: Rece= ived: { Ans: , MgmtId: 6615759585382, via: 3, Ver: v1, Flags: 10, { CopyCm= dAnswer } } > 2013-08-07 05:06:59,453 DEBUG [agent.transport.Request] (Job-Executor-50:= job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq 1-1332481511: Send= ing { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100011, [{"org.= apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apac= he.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/c7c= 57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl":"http://10.147.28.7/templa= tes/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id":21= 1,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDataS= tore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/hom= e/sanjeev/sec_esx_os","_role":"ImageCache"}},"name":"211-2-6da4c152-1118-35= 81-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 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq 1-1332481511: Exec= uting: { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100011, [{"o= rg.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.a= pache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/211/= c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl":"http://10.147.28.7/tem= plates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c6-b6e1-d8831c0195a7","id"= :211,"format":"ISO","accountId":2,"hvm":true,"displayText":"dummy","imageDa= taStore":{"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] (DirectA= gent-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] (DirectA= gent-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":{"pa= th":"template/tmpl/2/211/c7c57ca9-3f53-44f5-8fdb-03c217e29d85.iso","origUrl= ":"http://10.147.28.7/templates/vmware/dummy.iso","uuid":"65ba08b1-c1b2-40c= 6-b6e1-d8831c0195a7","id":211,"format":"ISO","accountId":2,"hvm":true,"disp= layText":"dummy","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"= nfs://10.147.28.7/export/home/sanjeev/sec_esx_os","_role":"ImageCache"}},"n= ame":"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 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Seq 1-1332481511: Rece= ived: { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 10, { Attach= Answer } } > 2013-08-07 05:07:01,285 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-50:job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Complete async= job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ], jobStatus: 1, resultC= ode: 0, result: org.apache.cloudstack.api.response.UserVmResponse@376f628d > 2013-08-07 05:07:01,292 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-50:job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ]) Done executing= org.apache.cloudstack.api.command.user.iso.AttachIsoCmd for job-49 =3D [ 6= ad4c868-37cd-4d9b-b890-beafebb1de1d ] > 2013-08-07 05:07:01,469 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:nul= l) =3D=3D=3DSTART=3D=3D=3D 10.146.0.20 -- GET command=3DqueryAsyncJobResu= lt&jobId=3D6ad4c868-37cd-4d9b-b890-beafebb1de1d&response=3Djson&sessionkey= =3D0MiEyYRhbpp7aGMi7ELrm2BdFS0%3D&_=3D1375866407388 > 2013-08-07 05:07:01,484 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-7:null) Async job-49 =3D [ 6ad4c868-37cd-4d9b-b890-beafebb1de1d ] com= pleted > 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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira