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 785A210669 for ; Tue, 5 Nov 2013 09:47:29 +0000 (UTC) Received: (qmail 44641 invoked by uid 500); 5 Nov 2013 09:47:26 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 44619 invoked by uid 500); 5 Nov 2013 09:47:20 -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 44596 invoked by uid 500); 5 Nov 2013 09:47:18 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 44588 invoked by uid 99); 5 Nov 2013 09:47:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 09:47:17 +0000 Date: Tue, 5 Nov 2013 09:47:17 +0000 (UTC) From: "prashant kumar mishra (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-5040) live migration is failing on kvm ;Unable to migrate due to internal error Attempt to migrate guest to the same host localhost.localdomain MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 prashant kumar mishra created CLOUDSTACK-5040: ------------------------------------------------- Summary: live migration is failing on kvm ;Unable to migrate d= ue to internal error Attempt to migrate guest to the same host localhost.lo= caldomain Key: CLOUDSTACK-5040 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5040 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the defa= ult.) Components: KVM, Management Server Affects Versions: 4.2.0 Reporter: prashant kumar mishra Steps to reproduce ------------------------- 1-prepare a CS setup with kvm (rhl6.4) 2-deploy vms=20 3-add another host to same cluster with same hostname 4-try to live migrate vm Expected ------------- Either addition of host with same hostname should not be allowed or migrat= ion should be successful (CS can look for IP+hostname which will be unique = when hostname is same) Actual=20 ------- live migration is failing=20 Logs -------=20 2013-11-05 09:48:30,638 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Execut= or-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Preparing 1 vol= umes for VM[User|83364cb2-2e2a-43c4-ac95-82910c3e908c] 2013-11-05 09:48:30,681 DEBUG [agent.transport.Request] (Job-Executor-40:jo= b-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Seq 4-861470735: Sendin= g { Cmd , MgmtId: 7484181839895, via: 4, Ver: v1, Flags: 100111, [{"com.cl= oud.agent.api.PrepareForMigrationCommand":{"vm":{"id":116,"name":"i-2-116-V= M","type":"User","cpus":1,"minSpeed":150,"maxSpeed":150,"minRam":134217728,= "maxRam":134217728,"arch":"x86_64","os":"CentOS 5.5 (64-bit)","bootArgs":""= ,"rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamica= llyScaleVm":false,"vncPassword":"9562b1eedefa24e7","params":{},"uuid":"8336= 4cb2-2e2a-43c4-ac95-82910c3e908c","disks":[{"data":{"org.apache.cloudstack.= storage.to.VolumeObjectTO":{"uuid":"9ef96c72-1330-48ae-8a31-9b5cd8b32f03","= volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDa= taStoreTO":{"uuid":"8db52c2d-88f9-3b9d-9b81-f72fcb8097c2","id":1,"poolType"= :"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/prashant/pri= mary","port":2049}},"name":"ROOT-116","size":8589934592,"path":"b0e50e43-39= e7-4af8-8c70-defd4ef362fe","volumeId":116,"vmName":"i-2-116-VM","accountId"= :2,"format":"QCOW2","id":116,"hypervisorType":"KVM"}},"diskSeq":0,"type":"R= OOT"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid"= :"d4f84469-a5ae-4239-9015-95c0c8180afc","ip":"10.1.1.14","netmask":"255.255= .255.0","gateway":"10.1.1.1","mac":"02:00:0e:7e:00:68","dns1":"10.140.50.6"= ,"broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://1102","isolat= ionUri":"vlan://1102","isSecurityGroupEnabled":false}]},"wait":0}}] } 2013-11-05 09:48:30,783 DEBUG [agent.transport.Request] (AgentManager-Handl= er-14:null) Seq 4-861470735: Processing: { Ans: , MgmtId: 7484181839895, v= ia: 4, Ver: v1, Flags: 110, [{"com.cloud.agent.api.PrepareForMigrationAnswe= r":{"result":true,"wait":0}}] } 2013-11-05 09:48:30,784 DEBUG [agent.manager.AgentAttache] (AgentManager-Ha= ndler-14:null) Seq 4-861470735: No more commands found 2013-11-05 09:48:30,784 DEBUG [agent.transport.Request] (Job-Executor-40:jo= b-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Seq 4-861470735: Receiv= ed: { Ans: , MgmtId: 7484181839895, via: 4, Ver: v1, Flags: 110, { Prepare= ForMigrationAnswer } } 2013-11-05 09:48:30,814 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) VM state tra= nsitted from :Running to Migrating with event: MigrationRequestedvm's origi= nal host id: 1 new host id: 4 host id before state transition: 1 2013-11-05 09:48:30,834 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Hosts's actu= al total CPU: 9572 and CPU after applying overprovisioning: 9572 2013-11-05 09:48:30,836 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) We are alloc= ating VM, increasing the used capacity of this host:4 2013-11-05 09:48:30,838 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Current Used= CPU: 0 , Free CPU:9572 ,Requested CPU: 150 2013-11-05 09:48:30,839 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Current Used= RAM: 0 , Free RAM:16713150464 ,Requested RAM: 134217728 2013-11-05 09:48:30,839 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) CPU STATS af= ter allocation: for host: 4, old used: 0, old reserved: 0, actual total: 95= 72, total with overprovisioning: 9572; new used:150, reserved:0; requested = cpu:150,alloc_from_last:false 2013-11-05 09:48:30,839 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) RAM STATS af= ter allocation: for host: 4, old used: 0, old reserved: 0, total: 167131504= 64; new used: 134217728, reserved: 0; requested mem: 134217728,alloc_from_l= ast:false 2013-11-05 09:48:30,862 DEBUG [agent.transport.Request] (Job-Executor-40:jo= b-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Seq 1-1307050019: Sendi= ng { Cmd , MgmtId: 7484181839895, via: 1, Ver: v1, Flags: 100111, [{"com.c= loud.agent.api.MigrateCommand":{"vmName":"i-2-116-VM","destIp":"10.147.40.8= ","hostGuid":"06eebf8f-2884-3084-865d-644312b9874f-LibvirtComputingResource= ","isWindows":false,"wait":0}}] } 2013-11-05 09:48:30,930 DEBUG [cloud.server.StatsCollector] (StatsCollector= -1:null) HostStatsCollector is running... 2013-11-05 09:48:31,173 DEBUG [agent.transport.Request] (AgentManager-Handl= er-13:null) Seq 1-1307050019: Processing: { Ans: , MgmtId: 7484181839895, = via: 1, Ver: v1, Flags: 110, [{"com.cloud.agent.api.MigrateAnswer":{"result= ":false,"details":"internal error Attempt to migrate guest to the same host= localhost.localdomain","wait":0}}] } 2013-11-05 09:48:31,173 DEBUG [agent.transport.Request] (Job-Executor-40:jo= b-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Seq 1-1307050019: Recei= ved: { Ans: , MgmtId: 7484181839895, via: 1, Ver: v1, Flags: 110, { Migrat= eAnswer } } 2013-11-05 09:48:31,173 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Unable to mi= grate due to internal error Attempt to migrate guest to the same host local= host.localdomain 2013-11-05 09:48:31,174 INFO [cloud.vm.VirtualMachineManagerImpl] (Job-Exe= cutor-40:job-234 =3D [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Migration wa= s unsuccessful. Cleaning up: VM[User|83364cb2-2e2a-43c4-ac95-82910c3e908c] 2013-11-05 09:48:31,177 DEBUG [agent.manager.AgentAttache] (AgentManager-Ha= ndler-13:null) Seq 1-1307050019: No more commands found =20 -- This message was sent by Atlassian JIRA (v6.1#6144)