tsinik-dw opened a new issue #5894:
URL: https://github.com/apache/cloudstack/issues/5894


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Improvement Request
    * Enhancement Request
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   API
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.15.2
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   ACS 4.15.2
   1 Zone 
   Cluster A: Two Xenserver 7.0 hosts
   Cluster B: Two Xenserver 7.0 hosts
   Cluster C: Two XCP-NG 8.2 hosts
   
   Each Cluster has each own NFS primary storage
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   VM-A1, on Cluster A,  has 1 ROOT disk  on NFS Primary storage
   VM-A2, on Cluster A,  has 1 ROOT disk  on NFS Primary storage
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   The objective is to migrate VM-A1 from Cluster A to Cluster B and
                                  migrate VM-A2 from Cluster A to Cluster C
   
   VM-A1 migration from Cluster A to Cluster B works as expected. 
   VM-A2 migration from Cluster A to Cluster C fails and throws the following 
message:
   
   _Migration failed
   The source and destination hosts are not of the same type and version. 
Source hypervisor type and version: XenServer 7.0.0, Destination hypervisor 
type and version: XenServer 8.2.0_
   
   Is this version check reasonable?
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. Create VMs on Xenserver 7.0 cluster 
   2. Migrate VMs from Xenserver 7.0 Cluster to XCP-NG 8.2 Cluster
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   VM should be migrated from Xenserver 7.0 cluster to XCP-NG 8.2 cluster
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   ACS 4.15.2 throws the following message:
   
   Migration failed
   The source and destination hosts are not of the same type and version. 
Source hypervisor type and version: XenServer 7.0.0, Destination hypervisor 
type and version: XenServer 8.2.0
   ~~~
   
   Full log:
   
   `2021-10-06 15:30:45,213 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-7:null) (logid:) SeqA 3-166476: Sending Seq 3-166476:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:30:46,921 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
(consoleproxy-1:ctx-7359e100) (logid:e839ec72) Zone 1 is ready to launch 
console proxy 
   2021-10-06 15:30:47,506 DEBUG [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-9919686c) (logid:d150f5c5) Zone 1 is ready to launch 
secondary storage VM 
   2021-10-06 15:30:48,010 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:ctx-30920607) (logid:212f2f7e) Found 2 routers to update 
status.  
   2021-10-06 15:30:48,012 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:ctx-30920607) (logid:212f2f7e) Found 0 VPC's to update 
Redundant State.  
   2021-10-06 15:30:48,014 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:ctx-30920607) (logid:212f2f7e) Found 0 networks to 
update RvR status.  
   2021-10-06 15:30:50,580 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-11:null) (logid:) SeqA 3-166477: Processing Seq 3-166477: 
 { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":"1","_loadInfo":"{
 
     "connections": [] 
   }","wait":"0","bypassHostMaintenance":"false"}}] } 
   2021-10-06 15:30:50,631 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-11:null) (logid:) SeqA 3-166477: Sending Seq 3-166477:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:30:55,998 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-12:null) (logid:) SeqA 3-166478: Processing Seq 3-166478: 
 { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":"1","_loadInfo":"{
 
     "connections": [] 
   }","wait":"0","bypassHostMaintenance":"false"}}] } 
   2021-10-06 15:30:56,062 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-12:null) (logid:) SeqA 3-166478: Sending Seq 3-166478:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:31:01,272 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-13:ctx-8efe4104) (logid:db85f3bb) ===START===  213.140.132.130 
-- GET  
virtualmachineid=c93153b8-8a65-4ff6-aaac-196bfbf59855&keyword=&page=1&pagesize=10&command=findHostsForMigration&response=json
 
   2021-10-06 15:31:01,307 DEBUG [c.c.a.ApiServer] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) CIDRs from which 
account Acct[8ac73c57-19d8-11ec-a0ef-ba21ccf13580-admin] is allowed to perform 
API calls: 0.0.0.0/0,::/0 
   2021-10-06 15:31:01,383 DEBUG [o.a.c.s.a.LocalStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) 
LocalStoragePoolAllocator trying to find storage pool to fit the vm 
   2021-10-06 15:31:01,383 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) 
ClusterScopeStoragePoolAllocator looking for storage pool 
   2021-10-06 15:31:01,384 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Looking for pools 
in dc: 1  pod:1  cluster:2. Disabled pools will be ignored. 
   2021-10-06 15:31:01,385 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Found pools 
matching tags: Pool[2|NetworkFilesystem] 
   2021-10-06 15:31:01,388 DEBUG [o.a.c.s.a.AbstractStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Checking if 
storage pool is suitable, name: null ,poolId: 2 
   2021-10-06 15:31:01,390 INFO  [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Storage pool null 
(2) does not supply IOPS capacity, assuming enough capacity 
   2021-10-06 15:31:01,407 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Checking pool 2 
for storage, totalSize: 479720112128, usedBytes: 23163568128, usedPct: 
0.04828558891401961, disable threshold: 0.85 
   2021-10-06 15:31:01,407 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Destination pool 
id: 2 
   2021-10-06 15:31:01,421 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-2:null) (logid:) SeqA 3-166479: Processing Seq 3-166479:  
{ Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":"1","_loadInfo":"{
 
     "connections": [] 
   }","wait":"0","bypassHostMaintenance":"false"}}] } 
   2021-10-06 15:31:01,430 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-2:null) (logid:) SeqA 3-166479: Sending Seq 3-166479:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:31:01,435 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Pool ID for the 
volume with ID 5 is 1 
   2021-10-06 15:31:01,442 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Found storage 
pool PRISTORAGE_XCP of type NetworkFilesystem with over-provisioning factor 2 
   2021-10-06 15:31:01,442 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Total 
over-provisioned capacity calculated is 2 * (446.77 GB) 479720112128 
   2021-10-06 15:31:01,442 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Total capacity of 
the pool PRISTORAGE_XCP with ID 2 is (893.55 GB) 959440224256 
   2021-10-06 15:31:01,463 DEBUG [c.c.s.StorageManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Checking pool: 2 
for storage allocation , maxSize : (893.55 GB) 959440224256, totalAllocatedSize 
: (26.61 GB) 28573138944, askingSize : (20.00 GB) 21474836480, allocated 
disable threshold: 0.85 
   2021-10-06 15:31:01,463 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) 
ClusterScopeStoragePoolAllocator returning 1 suitable storage pools 
   2021-10-06 15:31:01,492 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) FirstFitAllocator 
has 1 hosts to check for allocation: Host[-2-Routing] 
   2021-10-06 15:31:01,508 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Found 1 hosts for 
allocation after prioritization: Host[-2-Routing] 
   2021-10-06 15:31:01,509 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Looking for 
speed=500Mhz, Ram=512 MB 
   2021-10-06 15:31:01,543 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Host: 2 has cpu 
capability (cpu:8, speed:1795) to support requested CPU: 1 and requested speed: 
500 
   2021-10-06 15:31:01,543 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Checking if host: 
2 has enough capacity for requested CPU: 500 and requested RAM: (512.00 MB) 
536870912 , cpuOverprovisioningFactor: 1.0 
   2021-10-06 15:31:01,545 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Hosts's actual 
total CPU: 14360 and CPU after applying overprovisioning: 14360 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) 
considerReservedCapacity isfalse , not considering reserved capacity for 
calculating free capacity 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Free CPU: 12360 , 
Requested CPU: 500 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Free RAM: (12.14 
GB) 13032739840 , Requested RAM: (512.00 MB) 536870912 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Host has enough 
CPU and RAM available 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) STATS: Can alloc 
CPU from host: 2, used: 2000, reserved: 0, actual total: 14360, total with 
overprovisioning: 14360; requested cpu:500,alloc_from_last_host?:false 
,considerReservedCapacity?: false 
   2021-10-06 15:31:01,546 DEBUG [c.c.c.CapacityManagerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) STATS: Can alloc 
MEM from host: 2, used: (1.50 GB) 1610612736, reserved: (0 bytes) 0, total: 
(13.64 GB) 14643352576; requested mem: (512.00 MB) 536870912, 
alloc_from_last_host?: false , considerReservedCapacity?: false 
   2021-10-06 15:31:01,546 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Found a suitable 
host, adding to list: 2 
   2021-10-06 15:31:01,546 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Host Allocator 
returning 1 suitable hosts 
   2021-10-06 15:31:01,546 DEBUG [c.c.s.ManagementServerImpl] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) Hosts having 
capacity and suitable for migration: Host[-2-Routing] 
   2021-10-06 15:31:01,574 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-13:ctx-8efe4104 ctx-c18d6265) (logid:db85f3bb) ===END===  
213.140.132.130 -- GET  
virtualmachineid=c93153b8-8a65-4ff6-aaac-196bfbf59855&keyword=&page=1&pagesize=10&command=findHostsForMigration&response=json
 
   2021-10-06 15:31:06,712 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgentCronJob-206:ctx-6f0fe09b) (logid:e93b9fc7) Seq 
2-6277173455624339458: Executing request 
   2021-10-06 15:31:06,876 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-5:null) (logid:) SeqA 3-166480: Processing Seq 3-166480:  
{ Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":"1","_loadInfo":"{
 
     "connections": [] 
   }","wait":"0","bypassHostMaintenance":"false"}}] } 
   2021-10-06 15:31:06,957 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-5:null) (logid:) SeqA 3-166480: Sending Seq 3-166480:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:31:06,971 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgentCronJob-206:ctx-6f0fe09b) (logid:8ddbcad3) Seq 
2-6277173455624339458: Response Received:  
   2021-10-06 15:31:06,972 DEBUG [c.c.a.t.Request] 
(DirectAgentCronJob-206:ctx-6f0fe09b) (logid:8ddbcad3) Seq 
2-6277173455624339458: Processing:  { Ans: , MgmtId: 3232238938, via: 
2(xcp-ng-1), Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.ClusterVMMetaDataSyncAnswer":{"_clusterId":"2","_vmMetaDatum":{"r-4-VM":"device-model:qemu-upstream-compat;apic:true;viridian:true;timeoffset:1;pae:true;acpi:1;hpet:true;secureboot:false;nx:true","r-6-VM":"device-model:qemu-upstream-compat;apic:true;viridian:true;timeoffset:1;pae:true;acpi:1;hpet:true;secureboot:false;nx:true","i-2-7-VM":"apic:true;viridian:true;pae:true;acpi:1;hpet:true;secureboot:false;nx:true","i-2-3-VM":"device-model:qemu-upstream-compat;vga:std;videoram:8;apic:true;viridian:false;timeoffset:0;pae:true;acpi:1;hpet:true;secureboot:false;nx:true"},"_isExecuted":"false","result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:31:08,418 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-22:ctx-59d89746) (logid:69f0f6c4) ===START===  213.140.132.130 
-- GET  
hostid=2f1b05c7-22d4-4640-a2bb-f8999222afae&virtualmachineid=c93153b8-8a65-4ff6-aaac-196bfbf59855&command=migrateVirtualMachineWithVolume&response=json
 
   2021-10-06 15:31:08,455 DEBUG [c.c.a.ApiServer] 
(qtp1136768342-22:ctx-59d89746 ctx-16bab044) (logid:69f0f6c4) CIDRs from which 
account Acct[8ac73c57-19d8-11ec-a0ef-ba21ccf13580-admin] is allowed to perform 
API calls: 0.0.0.0/0,::/0 
   2021-10-06 15:31:08,613 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(qtp1136768342-22:ctx-59d89746 ctx-16bab044) (logid:69f0f6c4) submit async 
job-81, details: AsyncJobVO {id:81, userId: 2, accountId: 2, instanceType: 
None, instanceId: null, cmd: 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd, 
cmdInfo: 
{"virtualmachineid":"c93153b8-8a65-4ff6-aaac-196bfbf59855","response":"json","ctxUserId":"2","hostid":"2f1b05c7-22d4-4640-a2bb-f8999222afae","httpmethod":"GET","ctxStartEventId":"229","ctxDetails":"{\"interface
 com.cloud.host.Host\":\"2f1b05c7-22d4-4640-a2bb-f8999222afae\",\"interface 
com.cloud.vm.VirtualMachine\":\"c93153b8-8a65-4ff6-aaac-196bfbf59855\"}","ctxAccountId":"2","cmdEventType":"VM.MIGRATE"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 3232238938, completeMsid: null, lastUpdated: null, lastPolled: 
null, created: null, removed: null} 
   2021-10-06 15:31:08,628 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:03b5cbc4) Add job-81 into job 
monitoring 
   2021-10-06 15:31:08,634 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Executing AsyncJobVO 
{id:81, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd, 
cmdInfo: 
{"virtualmachineid":"c93153b8-8a65-4ff6-aaac-196bfbf59855","response":"json","ctxUserId":"2","hostid":"2f1b05c7-22d4-4640-a2bb-f8999222afae","httpmethod":"GET","ctxStartEventId":"229","ctxDetails":"{\"interface
 com.cloud.host.Host\":\"2f1b05c7-22d4-4640-a2bb-f8999222afae\",\"interface 
com.cloud.vm.VirtualMachine\":\"c93153b8-8a65-4ff6-aaac-196bfbf59855\"}","ctxAccountId":"2","cmdEventType":"VM.MIGRATE"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 3232238938, completeMsid: null, lastUpdated: null, lastPolled: 
null, created: null, removed: null} 
   2021-10-06 15:31:08,659 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-22:ctx-59d89746 ctx-16bab044) (logid:69f0f6c4) ===END===  
213.140.132.130 -- GET  
hostid=2f1b05c7-22d4-4640-a2bb-f8999222afae&virtualmachineid=c93153b8-8a65-4ff6-aaac-196bfbf59855&command=migrateVirtualMachineWithVolume&response=json
 
   2021-10-06 15:31:08,729 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-15:ctx-eca0da5e) (logid:74774fa4) ===START===  213.140.132.130 
-- GET  
jobId=b347a1b1-9879-43bb-87b9-e7f1ed892dc0&command=queryAsyncJobResult&response=json
 
   2021-10-06 15:31:08,748 DEBUG [c.c.a.ApiServer] 
(qtp1136768342-15:ctx-eca0da5e ctx-8e0d33bf) (logid:74774fa4) CIDRs from which 
account Acct[8ac73c57-19d8-11ec-a0ef-ba21ccf13580-admin] is allowed to perform 
API calls: 0.0.0.0/0,::/0 
   2021-10-06 15:31:08,773 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Unexpected exception 
while executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd 
   com.cloud.utils.exception.CloudRuntimeException: The source and destination 
hosts are not of the same type and version. Source hypervisor type and version: 
XenServer 7.0.0, Destination hypervisor type and version: XenServer 8.2.0 
           at 
com.cloud.vm.UserVmManagerImpl.migrateVirtualMachineWithVolume(UserVmManagerImpl.java:6222)
 
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
           at java.base/java.lang.reflect.Method.invoke(Method.java:566) 
           at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
 
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
 
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 
           at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
 
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
 
           at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51) 
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
 
           at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
 
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 
           at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
 
           at com.sun.proxy.$Proxy127.migrateVirtualMachineWithVolume(Unknown 
Source) 
           at 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd.execute(MigrateVirtualMachineWithVolumeCmd.java:156)
 
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156) 
           at 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108) 
           at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:620)
 
           at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
 
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
 
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
 
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
 
           at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
 
           at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:568)
 
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
 
           at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 
           at java.base/java.lang.Thread.run(Thread.java:829) 
   2021-10-06 15:31:08,795 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Complete async 
job-81, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"The
 source and destination hosts are not of the same type and version. Source 
hypervisor type and version: XenServer 7.0.0, Destination hypervisor type and 
version: XenServer 8.2.0"} 
   2021-10-06 15:31:08,810 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Publish async job-81 
complete on message bus 
   2021-10-06 15:31:08,810 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Wake up jobs related 
to job-81 
   2021-10-06 15:31:08,810 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Update db status for 
job-81 
   2021-10-06 15:31:08,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Wake up jobs joined 
with job-81 and disjoin all subjobs created from job- 81 
   2021-10-06 15:31:08,873 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-15:ctx-eca0da5e ctx-8e0d33bf) (logid:74774fa4) ===END===  
213.140.132.130 -- GET  
jobId=b347a1b1-9879-43bb-87b9-e7f1ed892dc0&command=queryAsyncJobResult&response=json
 
   2021-10-06 15:31:08,898 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Done executing 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd 
for job-81 
   2021-10-06 15:31:08,899 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-50:ctx-b9f603a6 job-81) (logid:b347a1b1) Remove job-81 from 
job monitoring 
   2021-10-06 15:31:09,027 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Resetting hosts suitable for reconnect 
   2021-10-06 15:31:09,029 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Completed resetting hosts suitable for 
reconnect 
   2021-10-06 15:31:09,029 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Acquiring hosts for clusters already owned 
by this management server 
   2021-10-06 15:31:09,031 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Completed acquiring hosts for clusters 
already owned by this management server 
   2021-10-06 15:31:09,031 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Acquiring hosts for clusters not owned by 
any management server 
   2021-10-06 15:31:09,032 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-ba737116) (logid:2a308798) Completed acquiring hosts for clusters not 
owned by any management server 
   2021-10-06 15:31:12,178 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-17:ctx-dd20efc4) (logid:446a948d) ===START===  213.140.132.130 
-- GET  
jobId=b347a1b1-9879-43bb-87b9-e7f1ed892dc0&command=queryAsyncJobResult&response=json
 
   2021-10-06 15:31:12,188 DEBUG [c.c.a.ApiServer] 
(qtp1136768342-17:ctx-dd20efc4 ctx-ecaa7f2a) (logid:446a948d) CIDRs from which 
account Acct[8ac73c57-19d8-11ec-a0ef-ba21ccf13580-admin] is allowed to perform 
API calls: 0.0.0.0/0,::/0 
   2021-10-06 15:31:12,264 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-3:null) (logid:) SeqA 3-166481: Processing Seq 3-166481:  
{ Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":"1","_loadInfo":"{
 
     "connections": [] 
   }","wait":"0","bypassHostMaintenance":"false"}}] } 
   2021-10-06 15:31:12,304 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-17:ctx-dd20efc4 ctx-ecaa7f2a) (logid:446a948d) ===END===  
213.140.132.130 -- GET  
jobId=b347a1b1-9879-43bb-87b9-e7f1ed892dc0&command=queryAsyncJobResult&response=json
 
   2021-10-06 15:31:12,337 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-3:null) (logid:) SeqA 3-166481: Sending Seq 3-166481:  { 
Ans: , MgmtId: 3232238938, via: 3, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 } 
   2021-10-06 15:31:12,402 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-19:ctx-8db1d9f8) (logid:2d1f54d9) ===START===  213.140.132.130 
-- GET  
listall=true&page=1&pagesize=20&command=listVirtualMachinesMetrics&response=json
 
   2021-10-06 15:31:12,438 DEBUG [c.c.a.ApiServer] 
(qtp1136768342-19:ctx-8db1d9f8 ctx-b5722fd3) (logid:2d1f54d9) CIDRs from which 
account Acct[8ac73c57-19d8-11ec-a0ef-ba21ccf13580-admin] is allowed to perform 
API calls: 0.0.0.0/0,::/0 
   2021-10-06 15:31:12,668 DEBUG [c.c.a.ApiServlet] 
(qtp1136768342-19:ctx-8db1d9f8 ctx-b5722fd3) (logid:2d1f54d9) ===END===  
213.140.132.130 -- GET  
listall=true&page=1&pagesize=20&command=listVirtualMachinesMetrics&response=json
 
   2021-10-06 15:31:15,330 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) Ping from 1(xenserver-1) 
   2021-10-06 15:31:15,330 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) Process host VM state 
report from ping process. host: 1 
   2021-10-06 15:31:15,396 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) Process VM state report. 
host: 1, number of records in report: 3 
   2021-10-06 15:31:15,396 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) VM state report. host: 
1, vm id: 1, power state: PowerOn 
   2021-10-06 15:31:15,401 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) VM state report. host: 
1, vm id: 2, power state: PowerOn 
   2021-10-06 15:31:15,404 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) VM state report. host: 
1, vm id: 5, power state: PowerOn 
   2021-10-06 15:31:15,410 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] 
(DirectAgentCronJob-103:ctx-926d0e81) (logid:d1d548e9) Done with process of VM 
state report. host: 1 `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to