cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "prashant kumar mishra (JIRA)" <j...@apache.org>
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
Date Tue, 05 Nov 2013 09:47:17 GMT
prashant kumar mishra created CLOUDSTACK-5040:
-------------------------------------------------

             Summary: live migration is failing on kvm ;Unable to migrate due to internal
error Attempt to migrate guest to the same host localhost.localdomain
                 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 default.)
          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 
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 migration should be successful
(CS can look for IP+hostname which will be unique when hostname is same)

Actual 
-------
live migration is failing 

Logs
------- 
2013-11-05 09:48:30,638 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Executor-40:job-234 =
[ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Preparing 1 volumes for VM[User|83364cb2-2e2a-43c4-ac95-82910c3e908c]
2013-11-05 09:48:30,681 DEBUG [agent.transport.Request] (Job-Executor-40:job-234 = [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6
]) Seq 4-861470735: Sending  { Cmd , MgmtId: 7484181839895, via: 4, Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.PrepareForMigrationCommand":{"vm":{"id":116,"name":"i-2-116-VM","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,"enableDynamicallyScaleVm":false,"vncPassword":"9562b1eedefa24e7","params":{},"uuid":"83364cb2-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.PrimaryDataStoreTO":{"uuid":"8db52c2d-88f9-3b9d-9b81-f72fcb8097c2","id":1,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/prashant/primary","port":2049}},"name":"ROOT-116","size":8589934592,"path":"b0e50e43-39e7-4af8-8c70-defd4ef362fe","volumeId":116,"vmName":"i-2-116-VM","accountId":2,"format":"QCOW2","id":116,"hypervisorType":"KVM"}},"diskSeq":0,"type":"ROOT"}],"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","isolationUri":"vlan://1102","isSecurityGroupEnabled":false}]},"wait":0}}]
}
2013-11-05 09:48:30,783 DEBUG [agent.transport.Request] (AgentManager-Handler-14:null) Seq
4-861470735: Processing:  { Ans: , MgmtId: 7484181839895, via: 4, Ver: v1, Flags: 110, [{"com.cloud.agent.api.PrepareForMigrationAnswer":{"result":true,"wait":0}}]
}
2013-11-05 09:48:30,784 DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-14:null)
Seq 4-861470735: No more commands found
2013-11-05 09:48:30,784 DEBUG [agent.transport.Request] (Job-Executor-40:job-234 = [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6
]) Seq 4-861470735: Received:  { Ans: , MgmtId: 7484181839895, via: 4, Ver: v1, Flags: 110,
{ PrepareForMigrationAnswer } }
2013-11-05 09:48:30,814 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) VM state transitted from :Running to Migrating
with event: MigrationRequestedvm's original 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-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Hosts's actual total CPU: 9572 and CPU after applying
overprovisioning: 9572
2013-11-05 09:48:30,836 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) We are allocating VM, increasing the used capacity
of this host:4
2013-11-05 09:48:30,838 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-40:job-234
= [ 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-Executor-40:job-234
= [ 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-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) CPU STATS after allocation: for host: 4, old used:
0, old reserved: 0, actual total: 9572, 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-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) RAM STATS after allocation: for host: 4, old used:
0, old reserved: 0, total: 16713150464; new used: 134217728, reserved: 0; requested mem: 134217728,alloc_from_last:false
2013-11-05 09:48:30,862 DEBUG [agent.transport.Request] (Job-Executor-40:job-234 = [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6
]) Seq 1-1307050019: Sending  { Cmd , MgmtId: 7484181839895, via: 1, Ver: v1, Flags: 100111,
[{"com.cloud.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-Handler-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:job-234 = [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6
]) Seq 1-1307050019: Received:  { Ans: , MgmtId: 7484181839895, via: 1, Ver: v1, Flags: 110,
{ MigrateAnswer } }
2013-11-05 09:48:31,173 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Unable to migrate due to internal error Attempt
to migrate guest to the same host localhost.localdomain
2013-11-05 09:48:31,174 INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-40:job-234
= [ 0bfaabcc-b81f-4278-978d-b4a97b3ea1f6 ]) Migration was unsuccessful.  Cleaning up: VM[User|83364cb2-2e2a-43c4-ac95-82910c3e908c]
2013-11-05 09:48:31,177 DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-13:null)
Seq 1-1307050019: No more commands found

 




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message