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 DCA40109D7 for ; Fri, 10 Jan 2014 11:11:12 +0000 (UTC) Received: (qmail 50120 invoked by uid 500); 10 Jan 2014 11:10:56 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 50073 invoked by uid 500); 10 Jan 2014 11:10:54 -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 50053 invoked by uid 500); 10 Jan 2014 11:10:53 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 50035 invoked by uid 99); 10 Jan 2014 11:10:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jan 2014 11:10:52 +0000 Date: Fri, 10 Jan 2014 11:10:52 +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-5639) [Hyper-v] cold storage migration does not work in hyperv 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-5639?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13867718#comment-13867718 ]=20 ASF subversion and git services commented on CLOUDSTACK-5639: ------------------------------------------------------------- Commit db2b0256080d70d5bc2efb91baad733d21c18bec in branch refs/heads/master= from [~devdeep] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3Ddb2b025 ] CLOUDSTACK-5639: If path field in the TO already has the complete path, do not try to generate the path. > [Hyper-v] cold storage migration does not work in hyperv > -------------------------------------------------------- > > Key: CLOUDSTACK-5639 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-563= 9 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Hypervisor Controller, Management Server > Affects Versions: 4.3.0 > Environment: Latest build from 4.3 branch with commit:4b2b6544255= ee7fe12b4b4732cacd08e4ee6a1b7 > Storage: SMB for both primary and secondary > Hypervisor: Hyper-v > Reporter: Sanjeev N > Assignee: Devdeep Singh > Priority: Critical > Labels: hyper-V,, hyper-v, hyperv > Fix For: 4.3.0 > > Attachments: cloudstack-agent.rar, management-server.rar, managem= ent-server.rar > > > [Hyper-v] cold storage does not work in hyperv > Steps to Reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1.Bring up CS in advanced zone with 2 hosts in a hyper-v cluster using CI= FS for both primary and secondary storage > 2.Deploy one or two guest vms using default cent os template. > 3.Add one more primary storage (say primary2) to the cluster > 4.Stop one of the vms deployed at step2 > 5.Migrate the storage from source primary to new primary storage primary2 > Expected Result: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Storage migration should succeed when the vm is in stopped state > Actual Result: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Storage migration failed with the error "Failed to migration: com.cloud.e= xception.StorageUnavailableException: Resource [StoragePool:7] is unreachab= le" > Observations: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Log snippet from the MS log: > 2013-12-24 19:11:55,475 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-71= 7ba369) =3D=3D=3DSTART=3D=3D=3D 10.146.0.134 -- GET command=3DmigrateVirt= ualMachine&storageid=3Dfe97ca45-5cba-329a-ae79-fa02649421c1&virtualmachinei= d=3D3a1b4f23-7a43-4806-8fd5-43a9c1130872&response=3Djson&sessionkey=3DuHhzd= uF1EppEHm%2Bibsj2%2Bqf%2Fzto%3D&_=3D1387892514178 > 2013-12-24 19:11:55,661 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina= -exec-11:ctx-717ba369 ctx-d805adb4) submit async job-33, details: AsyncJobV= O {id:33, userId: 2, accountId: 2, instanceType: None, instanceId: null, cm= d: org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd, cmdInfo: {"resp= onse":"json","sessionkey":"uHhzduF1EppEHm+ibsj2+qf/zto\u003d","virtualmachi= neid":"3a1b4f23-7a43-4806-8fd5-43a9c1130872","cmdEventType":"VM.MIGRATE","c= txUserId":"2","storageid":"fe97ca45-5cba-329a-ae79-fa02649421c1","httpmetho= d":"GET","_":"1387892514178","ctxAccountId":"2","ctxStartEventId":"99"}, cm= dVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: = null, initMsid: 132129494109518, completeMsid: null, lastUpdated: null, las= tPolled: null, created: null} > 2013-12-24 19:11:55,663 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor= -29:ctx-893d8661) Add job-33 into job monitoring > 2013-12-24 19:11:55,663 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Exec= utor-29:ctx-893d8661) Executing AsyncJobVO {id:33, userId: 2, accountId: 2,= instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.comma= nd.admin.vm.MigrateVMCmd, cmdInfo: {"response":"json","sessionkey":"uHhzduF= 1EppEHm+ibsj2+qf/zto\u003d","virtualmachineid":"3a1b4f23-7a43-4806-8fd5-43a= 9c1130872","cmdEventType":"VM.MIGRATE","ctxUserId":"2","storageid":"fe97ca4= 5-5cba-329a-ae79-fa02649421c1","httpmethod":"GET","_":"1387892514178","ctxA= ccountId":"2","ctxStartEventId":"99"}, cmdVersion: 0, status: IN_PROGRESS, = processStatus: 0, resultCode: 0, result: null, initMsid: 132129494109518, c= ompleteMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-12-24 19:11:55,663 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-71= 7ba369 ctx-d805adb4) =3D=3D=3DEND=3D=3D=3D 10.146.0.134 -- GET command=3D= migrateVirtualMachine&storageid=3Dfe97ca45-5cba-329a-ae79-fa02649421c1&virt= ualmachineid=3D3a1b4f23-7a43-4806-8fd5-43a9c1130872&response=3Djson&session= key=3DuHhzduF1EppEHm%2Bibsj2%2Bqf%2Fzto%3D&_=3D1387892514178 > 2013-12-24 19:11:55,794 DEBUG [c.c.c.CapacityManagerImpl] (Job-Executor-2= 9:ctx-893d8661 ctx-d805adb4) VM state transitted from :Stopped to Migrating= with event: StorageMigrationRequestedvm's original host id: 4 new host id:= null host id before state transition: null > 2013-12-24 19:11:56,026 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (Job-= Executor-29:ctx-893d8661 ctx-d805adb4) copyAsync inspecting src type VOLUME= copyAsync inspecting dest type VOLUME > 2013-12-24 19:11:56,199 DEBUG [c.c.a.t.Request] (Job-Executor-29:ctx-893d= 8661 ctx-d805adb4) Seq 1-1652228440: Sending { Cmd , MgmtId: 1321294941095= 18, via: 1(10.147.40.14), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.= storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.Vo= lumeObjectTO":{"uuid":"34a817b2-e24f-4fb3-82dc-918505fcf8c8","volumeType":"= ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"= uuid":"9e132ff7-f9ef-3f17-bbc2-c44c323d96e7","id":1,"poolType":"NetworkFile= system","host":"Host13","path":"/hyperv/primary?user=3Dsanjeev&password=3DP= assword_123&domain=3DBLR","port":445,"url":"NetworkFilesystem://Host13//hyp= erv/primary?user=3Dsanjeev&password=3DPassword_123&domain=3DBLR/?ROLE=3DPri= mary&STOREUUID=3D9e132ff7-f9ef-3f17-bbc2-c44c323d96e7"}},"name":"ROOT-3","s= ize":5368709120,"volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3,"devi= ceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storag= e.to.VolumeObjectTO":{"uuid":"34a817b2-e24f-4fb3-82dc-918505fcf8c8","volume= Type":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10= .147.40.13/hyperv/secondary?user=3Dsanjeev&password=3DPassword_123&domain= =3DBLR","_role":"Image"}},"name":"ROOT-3","size":5368709120,"path":"volumes= /2/3","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3,"deviceId":0,"h= ypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"wait":108= 00}}] } > 2013-12-24 19:11:56,199 DEBUG [c.c.a.t.Request] (Job-Executor-29:ctx-893d= 8661 ctx-d805adb4) Seq 1-1652228440: Executing: { Cmd , MgmtId: 1321294941= 09518, via: 1(10.147.40.14), Ver: v1, Flags: 100011, [{"org.apache.cloudsta= ck.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to= .VolumeObjectTO":{"uuid":"34a817b2-e24f-4fb3-82dc-918505fcf8c8","volumeType= ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO"= :{"uuid":"9e132ff7-f9ef-3f17-bbc2-c44c323d96e7","id":1,"poolType":"NetworkF= ilesystem","host":"Host13","path":"/hyperv/primary?user=3Dsanjeev&password= =3DPassword_123&domain=3DBLR","port":445,"url":"NetworkFilesystem://Host13/= /hyperv/primary?user=3Dsanjeev&password=3DPassword_123&domain=3DBLR/?ROLE= =3DPrimary&STOREUUID=3D9e132ff7-f9ef-3f17-bbc2-c44c323d96e7"}},"name":"ROOT= -3","size":5368709120,"volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3= ,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.= storage.to.VolumeObjectTO":{"uuid":"34a817b2-e24f-4fb3-82dc-918505fcf8c8","= volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cif= s://10.147.40.13/hyperv/secondary?user=3Dsanjeev&password=3DPassword_123&do= main=3DBLR","_role":"Image"}},"name":"ROOT-3","size":5368709120,"path":"vol= umes/2/3","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"id":3,"deviceId":= 0,"hypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"wait"= :10800}}] } > 2013-12-24 19:11:56,208 DEBUG [c.c.a.t.Request] (Job-Executor-29:ctx-893d= 8661 ctx-d805adb4) Seq 1-1652228440: Received: { Ans: , MgmtId: 1321294941= 09518, via: 1, Ver: v1, Flags: 10, { CopyCmdAnswer } } > 2013-12-24 19:11:56,208 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (Job-= Executor-29:ctx-893d8661 ctx-d805adb4) copy to image store failed: org.apac= he.cloudstack.storage.command.CopyCommand failed on exception, Value cannot= be null.^M > Parameter name: VolumeObjectTO missing primary dataStore in spec {^M > "uuid": "34a817b2-e24f-4fb3-82dc-918505fcf8c8",^M > "volumeType": "ROOT",^M > "dataStore": {^M > "com.cloud.agent.api.to.NfsTO": {^M > "_url": "cifs://10.147.40.13/hyperv/secondary?user=3Dsanjeev&passwo= rd=3DPassword_123&domain=3DBLR",^M > "_role": "Image"^M > }^M > },^M > "name": "ROOT-3",^M > "size": 5368709120,^M > "path": "volumes/2/3",^M > "volumeId": 3,^M > "vmName": "i-2-3-VM",^M > "accountId": 2,^M > "id": 3,^M > "deviceId": 0,^M > "hypervisorType": "Hyperv"^M > }2013-12-24 19:11:56,394 DEBUG [c.c.a.t.Request] (Job-Executor-29:ctx-893= d8661 ctx-d805adb4) Seq 3-177144205: Sending { Cmd , MgmtId: 1321294941095= 18, via: 3(s-2-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storag= e.command.DeleteCommand":{"data":{"org.apache.cloudstack.storage.to.VolumeO= bjectTO":{"uuid":"34a817b2-e24f-4fb3-82dc-918505fcf8c8","volumeType":"ROOT"= ,"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.147.40.13/h= yperv/secondary?user=3Dsanjeev&password=3DPassword_123&domain=3DBLR","_role= ":"Image"}},"name":"ROOT-3","size":5368709120,"volumeId":3,"vmName":"i-2-3-= VM","accountId":2,"id":3,"deviceId":0,"hypervisorType":"Hyperv"}},"wait":0}= }] } > 2013-12-24 19:11:56,438 DEBUG [c.c.a.t.Request] (Job-Executor-29:ctx-893d= 8661 ctx-d805adb4) Seq 3-177144205: Received: { Ans: , MgmtId: 13212949410= 9518, via: 3, Ver: v1, Flags: 10, { Answer } } > 2013-12-24 19:11:56,439 WARN [o.a.c.s.d.ObjectInDataStoreManagerImpl] (J= ob-Executor-29:ctx-893d8661 ctx-d805adb4) Volume 3 is not found on image st= ore 1, so no need to delete > 2013-12-24 19:11:56,505 WARN [o.a.c.s.d.ObjectInDataStoreManagerImpl] (J= ob-Executor-29:ctx-893d8661 ctx-d805adb4) Unsupported data object (VOLUME, = org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@10d466d5), no = need to delete from object in store ref table > 2013-12-24 19:11:56,735 DEBUG [o.a.c.s.v.VolumeServiceImpl] (Job-Executor= -29:ctx-893d8661 ctx-d805adb4) Marking volume that was never created as des= troyed: Vol[9|vm=3D3|ROOT] > 2013-12-24 19:11:56,788 ERROR [o.a.c.e.o.VolumeOrchestrator] (Job-Executo= r-29:ctx-893d8661 ctx-d805adb4) migrate volume failed:org.apache.cloudstack= .storage.command.CopyCommand failed on exception, Value cannot be null. > Parameter name: VolumeObjectTO missing primary dataStore in spec {^M > "uuid": "34a817b2-e24f-4fb3-82dc-918505fcf8c8",^M > "volumeType": "ROOT",^M > "dataStore": {^M > "com.cloud.agent.api.to.NfsTO": {^M > "_url": "cifs://10.147.40.13/hyperv/secondary?user=3Dsanjeev&passwo= rd=3DPassword_123&domain=3DBLR",^M > "_role": "Image"^M > }^M > },^M > "name": "ROOT-3",^M > "size": 5368709120,^M > "path": "volumes/2/3",^M > "volumeId": 3,^M > "vmName": "i-2-3-VM",^M > "accountId": 2,^M > "id": 3,^M > "deviceId": 0,^M > "hypervisorType": "Hyperv"^M > } > 2013-12-24 19:11:56,788 DEBUG [c.c.v.VirtualMachineManagerImpl] (Job-Exec= utor-29:ctx-893d8661 ctx-d805adb4) Failed to migration: com.cloud.exception= .StorageUnavailableException: Resource [StoragePool:7] is unreachable: migr= ate volume failed: org.apache.cloudstack.storage.command.CopyCommand failed= on exception, Value cannot be null.^M > Agent log: > =3D=3D=3D=3D=3D=3D=3D=3D > 2013-12-24 11:25:55,436 [6] ERROR HypervResource.HypervResourceController= [d72f6849-8022-4183-87f1-3202083ed907] - com.cloud.agent.api.GetStorageSta= tsCommand failed on exceptionIllegal characters in path.^M > System.ArgumentException: Illegal characters in path.^M > at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAddi= tional)^M > at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters= (String[] str)^M > at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPerm= issionAccess access, AccessControlActions control, String[] pathListOrig, B= oolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)^M > at System.Security.Permissions.FileIOPermission..ctor(FileIOPermission= Access access, String[] pathList, Boolean checkForDuplicates, Boolean needF= ullPath)^M > at System.IO.Path.GetFullPath(String path)^M > at HypervResource.HypervResourceController.GetCapacityForLocalPath(Str= ing localStoragePath, Int64& capacityBytes, Int64& availableBytes)^M > at HypervResource.HypervResourceController.GetStorageStatsCommand(Obje= ct cmd)^M > 2013-12-24 11:25:55,436 [6] INFO HypervResource.HypervResourceController= [d72f6849-8022-4183-87f1-3202083ed907] - {^M > "com.cloud.agent.api.GetStorageStatsAnswer": {^M > "result": false,^M > "details": "com.cloud.agent.api.GetStorageStatsCommand failed on exce= ptionIllegal characters in path.",^M > "capacity": 0,^M > "used": 0,^M > "contextMap": {}^M > }^M > }^M > 2013-12-24 11:26:20,795 [35] ERROR HypervResource.VolumeObjectTO [1d5b726= 2-afc4-4b65-ab5a-a5b189817c5e] - VolumeObjectTO missing primary dataStore i= n spec {^M > "uuid": "34a817b2-e24f-4fb3-82dc-918505fcf8c8",^M > "volumeType": "ROOT",^M > "dataStore": {^M > "com.cloud.agent.api.to.NfsTO": {^M > "_url": "cifs://10.147.40.13/hyperv/secondary?user=3Dsanjeev&passwo= rd=3DPassword_123&domain=3DBLR",^M > "_role": "Image"^M > }^M > },^M > "name": "ROOT-3",^M > "size": 5368709120,^M > "path": "volumes/2/3",^M > "volumeId": 3,^M > "vmName": "i-2-3-VM",^M > "accountId": 2,^M > "id": 3,^M > "deviceId": 0,^M > "hypervisorType": "Hyperv"^M > }^M > 2013-12-24 11:26:20,795 [35] ERROR HypervResource.HypervResourceControlle= r [1d5b7262-afc4-4b65-ab5a-a5b189817c5e] - org.apache.cloudstack.storage.co= mmand.CopyCommand failed on exception, Value cannot be null.^M > Parameter name: VolumeObjectTO missing primary dataStore in spec {^M > "uuid": "34a817b2-e24f-4fb3-82dc-918505fcf8c8",^M > "volumeType": "ROOT",^M > "dataStore": {^M > "com.cloud.agent.api.to.NfsTO": {^M > "_url": "cifs://10.147.40.13/hyperv/secondary?user=3Dsanjeev&passwo= rd=3DPassword_123&domain=3DBLR",^M > "_role": "Image"^M > }^M > },^M > "name": "ROOT-3",^M > "size": 5368709120,^M > "path": "volumes/2/3",^M > "volumeId": 3,^M > "vmName": "i-2-3-VM",^M > "accountId": 2,^M > "id": 3,^M > "deviceId": 0,^M > "hypervisorType": "Hyperv"^M > }^M > System.ArgumentNullException: Value cannot be null.^M > Parameter name: VolumeObjectTO missing primary dataStore in spec {^M > "uuid": "34a817b2-e24f-4fb3-82dc-918505fcf8c8",^M > "volumeType": "ROOT",^M > "dataStore": {^M > "com.cloud.agent.api.to.NfsTO": {^M > "_url": "cifs://10.147.40.13/hyperv/secondary?user=3Dsanjeev&passwo= rd=3DPassword_123&domain=3DBLR",^M > "_role": "Image"^M > }^M > },^M > "name": "ROOT-3",^M > "size": 5368709120,^M > "path": "volumes/2/3",^M > "volumeId": 3,^M > "vmName": "i-2-3-VM",^M > "accountId": 2,^M > "id": 3,^M > "deviceId": 0,^M > "hypervisorType": "Hyperv"^M > }^M -- This message was sent by Atlassian JIRA (v6.1.5#6160)