[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751530#comment-13751530
 ] 

Wei Zhou commented on CLOUDSTACK-4405:
--------------------------------------

Migration from new hosts to old hosts

2013-08-19 17:20:41,864 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) 
===START===  10.4.27.126 -- GET  
command=migrateVirtualMachine&hostid=3&virtualmachineid=98c88431-18c8-4d41-8660-2411fa3596f2&response=json&sessionkey=4c28lulCRIdxTr%2FqWl4mefFeKKM%3D&_=1376925641878
2013-08-19 17:20:41,929 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-14:null) submit async job-802, details: AsyncJobVO {id:802, 
userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: 
null, cmd: org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd, 
cmdOriginator: null, cmdInfo: 
{"response":"json","sessionkey":"4c28lulCRIdxTr/qWl4mefFeKKM\u003d","virtualmachineid":"98c88431-18c8-4d41-8660-2411fa3596f2","hostid":"3","ctxUserId":"2","_":"1376925641878","ctxAccountId":"2","ctxStartEventId":"3219"},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
processStatus: 0, resultCode: 0, result: null, initMsid: 90520747364525, 
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-19 17:20:41,930 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-18:job-802) Executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd for job-802
2013-08-19 17:20:42,022 DEBUG [cloud.storage.StorageManagerImpl] 
(Job-Executor-18:job-802) Preparing 1 volumes for 
VM[User|98c88431-18c8-4d41-8660-2411fa3596f2]
2013-08-19 17:20:42,056 DEBUG [agent.transport.Request] 
(Job-Executor-18:job-802) Seq 3-531190081: Sending  { Cmd , MgmtId: 
90520747364525, via: 3, Ver: v1, Flags: 100111, 
[{"PrepareForMigrationCommand":{"vm":{"id":140,"name":"i-2-140-VM","type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Ubuntu
 10.04 
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":true,"limitCpuUse":false,"vncPassword":"4c5ce6fe4ddd152d","params":{},"uuid":"98c88431-18c8-4d41-8660-2411fa3596f2","disks":[{"id":133,"name":"ROOT-140","mountPoint":"/storage/da-upgr-01-primary","path":"c396386a-188b-4075-b4a4-1e848e61c0d3","size":42949672960,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"72301816-c94a-3ad4-a1fd-7a1749c56171","deviceId":0}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"3242f5dc-c05a-4bc8-9fc1-652804bd2f04","ip":"10.11.110.236","netmask":"255.255.255.0","gateway":"10.11.110.254","mac":"06:a6:10:00:00:44","dns1":"8.8.8.8","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://110","isolationUri":"vlan://110","isSecurityGroupEnabled":true,"name":"cloudbr0"}]},"wait":0}}]
 }
2013-08-19 17:20:42,170 DEBUG [agent.transport.Request] 
(Job-Executor-18:job-802) Seq 3-531190081: Received:  { Ans: , MgmtId: 
90520747364525, via: 3, Ver: v1, Flags: 110, { PrepareForMigrationAnswer } }
2013-08-19 17:20:42,204 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) VM state transitted from :Running to Migrating with 
event: MigrationRequestedvm's original host id: 40 new host id: 3 host id 
before state transition: 40
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) Hosts's actual total CPU: 20216 and CPU after 
applying overprovisioning: 202160
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) We are allocating VM, increasing the used capacity of 
this host:3
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) Current Used CPU: 13000 , Free CPU:189160 ,Requested 
CPU: 500
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) Current Used RAM: 12205424640 , Free RAM:4507717632 
,Requested RAM: 536870912
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) CPU STATS after allocation: for host: 3, old used: 
13000, old reserved: 0, actual total: 20216, total with overprovisioning: 
202160; new used:13500, reserved:0; requested cpu:500,alloc_from_last:false
2013-08-19 17:20:42,214 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) RAM STATS after allocation: for host: 3, old used: 
12205424640, old reserved: 0, total: 16713142272; new used: 12742295552, 
reserved: 0; requested mem: 536870912,alloc_from_last:false
2013-08-19 17:20:42,239 DEBUG [agent.manager.ClusteredAgentAttache] 
(Job-Executor-18:job-802) Seq 40-1658454067: Forwarding Seq 40-1658454067:  { 
Cmd , MgmtId: 90520747364525, via: 40, Ver: v1, Flags: 100111, 
[{"MigrateCommand":{"vmName":"i-2-140-VM","destIp":"192.168.103.101","hostGuid":"ca5683a1-e11c-3c52-a4a3-6b99f1daa839-LibvirtComputingResource","isWindows":false,"wait":0}}]
 } to 90520735855750
2013-08-19 17:20:42,642 DEBUG [agent.transport.Request] 
(Job-Executor-18:job-802) Seq 40-1658454067: Received:  { Ans: , MgmtId: 
90520747364525, via: 40, Ver: v1, Flags: 110, { MigrateAnswer } }
2013-08-19 17:20:42,642 ERROR [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-18:job-802) Unable to migrate due to Cannot get interface MTU on 
'brem1-110': No such device
2013-08-19 17:20:42,642 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-18:job-802) Migration was unsuccessful.  Cleaning up: 
VM[User|98c88431-18c8-4d41-8660-2411fa3596f2]
2013-08-19 17:20:42,644 DEBUG [cloud.alert.AlertManagerImpl] 
(Job-Executor-18:job-802) Have already sent: 1 emails for alert type '16' -- 
skipping send email
2013-08-19 17:20:42,645 DEBUG [agent.manager.AgentAttache] 
(Job-Executor-18:job-802) Seq 3-531190082: Routed from 90520747364525
2013-08-19 17:20:42,646 DEBUG [agent.transport.Request] 
(Job-Executor-18:job-802) Seq 3-531190082: Sending  { Cmd , MgmtId: 
90520747364525, via: 3, Ver: v1, Flags: 100111, 
[{"StopCommand":{"isProxy":false,"vmName":"i-2-140-VM","wait":0}}] }
2013-08-19 17:20:42,664 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) VM state transitted from :Migrating to Running with 
event: OperationFailedvm's original host id: 40 new host id: 40 host id before 
state transition: 3
2013-08-19 17:20:42,672 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) Hosts's actual total CPU: 20216 and CPU after 
applying overprovisioning: 202160
2013-08-19 17:20:42,672 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) release cpu from host: 3, old used: 13500,reserved: 
0, actual total: 20216, total with overprovisioning: 202160; new used: 
13000,reserved:0; movedfromreserved: false,moveToReserveredfalse
2013-08-19 17:20:42,672 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-18:job-802) release mem from host: 3, old used: 
12742295552,reserved: 0, total: 16713142272; new used: 12205424640,reserved:0; 
movedfromreserved: false,moveToReserveredfalse
2013-08-19 17:20:42,723 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-18:job-802) Complete async job-802, jobStatus: 2, resultCode: 
530, result: Error Code: 530 Error text: Failed to migrate vm
2013-08-19 17:20:44,970 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-10:null) Async job-802 completed

                
> (Upgrade) Migrate failed between existing hosts and new hosts
> -------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4405
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4405
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.1.0, 4.2.0
>         Environment: CS 4.1
>            Reporter: Wei Zhou
>            Assignee: Kishan Kavala
>            Priority: Blocker
>             Fix For: 4.1.1, 4.2.0, 4.2.1
>
>
> There are two hosts (cs-kvm001, cs-kvm002) in old 2.2.14 environment .
> After upgrade from 2.2.14 to 4.1, I added two new hosts (cs-kvm003, 
> cs-kvm004).
> The migration between cs-kvm001 and cs-kvm002, or cs-kvm003 and cs-kvm004 
> succeed.
> However, the migration from cs-kvm001/002 to the new hosts (cs-kvm003, 
> cs-kvm004) failed.
> 2013-08-19 16:57:31,051 DEBUG [kvm.resource.BridgeVifDriver] 
> (agentRequest-Handler-1:null) nic=[Nic:Guest-10.11.110.231-vlan://110]
> 2013-08-19 16:57:31,051 DEBUG [kvm.resource.BridgeVifDriver] 
> (agentRequest-Handler-1:null) creating a vlan dev and bridge for guest 
> traffic per traffic label cloudbr0
> 2013-08-19 16:57:31,051 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Executing: /bin/bash -c brctl show | grep 
> cloudVirBr110
> 2013-08-19 16:57:31,063 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Exit value is 1
> 2013-08-19 16:57:31,063 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null)
> 2013-08-19 16:57:31,063 DEBUG [kvm.resource.BridgeVifDriver] 
> (agentRequest-Handler-1:null) Executing: 
> /usr/share/cloudstack-common/scripts/vm/network/vnet/modifyvlan.sh -v 110 -p 
> em1 -b brem1-110 -o add
> 2013-08-19 16:57:31,121 DEBUG [kvm.resource.BridgeVifDriver] 
> (agentRequest-Handler-1:null) Execution is successful.
> 2013-08-19 16:57:31,122 DEBUG [kvm.resource.BridgeVifDriver] 
> (agentRequest-Handler-1:null) Set name-type for VLAN subsystem. Should be 
> visible in /proc/net/vlan/config
> This is because the bridge name on old hosts are cloudVirBr110, and brem1-110 
> on new hosts.

--
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

Reply via email to