[已解决]cloudstack 4.5.1+xen 6.2.0 vm无法迁移

第一、环境描述
CloudStack版本:CloudStack 4.5.1
虚拟化类型及版本:XenServer 6.2.0
主存储类型:主存储、辅助存储均为NFS,主存储应该是没有问题的,创建实例啊均正常;
辅助存储:已经可以正常
区域类型:高级网络模式未启用安全组
创建实例、快照均正常,网络也可以正常访问

第二、问题描述
请详细描述:
•目前主要的错误问题为:
 我的环境是高级网络模式,在普通用户下面的建立实例,网络经过端口映射均可以正常的访问,创建实例也可以正常的访问,现在问题是:我在admin用户下使用迁移功能来迁移这个vm就会报错,具体的错误截图及错误日志如下:
报错的代码不是连续的我把主要的error端截了出来;
再一个问题,怎么让输出的日志之输出error不输出那么多的信息呢?

Untitled.png


Untitled1.png
2015-06-23 10:14:28,960 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:ctx-de27a165 job-91/job-93 ctx-a45ee1b8) Seq 1-8780330423512205725: Executing:  { Cmd , MgmtId: 200351793160987, via: 1(A-XS01.vmware.xx), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.MigrateCommand":{"vmName":"i-5-3-VM","destIp":"10.207.238.225","hostGuid":"09315bed-6b7b-4339-9d60-5c9132cafa27","isWindows":false,"vmTO":{"id":3,"name":"i-5-3-VM","bootloader":"CD","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":1073741824,"maxRam":1073741824,"arch":"x86_64","os":"CentOS 6 (64-bit)","bootArgs":"","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"IboejCMWr7ReYEaXxtXcAA==","params":{"hypervisortoolsversion":"xenserver56","platform":"viridian:true;acpi:1;apic:true;pae:true;nx:true;timeoffset:0"},"uuid":"0e0bb735-0439-44ff-8db4-eb9612d20968","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"8a1ff500-09b6-476c-97b6-2068b9dd93b8","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"ee5f1d7a-e78b-34d4-aa1f-20f2ca211415","id":1,"poolType":"NetworkFilesystem","host":"10.207.238.87","path":"/export/primary","port":2049,"url":"NetworkFilesystem://10.207.238.87/export/primary/?ROLE=Primary&STOREUUID=ee5f1d7a-e78b-34d4-aa1f-20f2ca211415"}},"name":"ROOT-3","size":5368709120,"path":"80da8a53-4efb-4714-959e-162e376b9737","volumeId":5,"vmName":"i-5-3-VM","accountId":5,"format":"VHD","provisioningType":"THIN","id":5,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"80da8a53-4efb-4714-959e-162e376b9737","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.207.238.87","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202/202-2-c396c7d6-6456-3b68-a828-1030b775d35e.iso","origUrl":"http://10.207.238.242/ISO/Cent ... ot%3B,"uuid":"62c7e295-7a35-43c1-aaa4-305ff536018d","id":202,"format":"ISO","accountId":2,"checksum":"eb3c8be6ab668e6d83a118323a789e6c","hvm":true,"displayText":"CentOS-6.6-x86_64-minimal","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.207.238.87/export/secondary","_role":"Image"}},"name":"202-2-c396c7d6-6456-3b68-a828-1030b775d35e","guestOsType":"CentOS 6 (64-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"c16ea64c-c77b-4ff0-978c-f1c1f92fc41b","uuid":"aa8e8b79-6975-4b51-b52e-cf8d6ad6f910","ip":"192.168.152.21","netmask":"255.255.255.0","gateway":"192.168.152.1","mac":"02:00:5f:e0:00:01","dns1":"10.191.131.131","dns2":"10.191.130.130","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://495","isolationUri":"vlan://495","isSecurityGroupEnabled":false,"name":"Network1"}],"vcpuMaxLimit":16},"executeInSequence":false,"wait":0}}] }
2015-06-23 10:14:28,960 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-284:ctx-46249a8f) Seq 1-8780330423512205725: Executing request
2015-06-23 10:14:30,020 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-284:ctx-46249a8f) Task failed! Task record: uuid: 8aef059d-3954-b7cb-3adb-c386da9a73b2
nameLabel: Async.VM.pool_migrate
nameDescription:
allowedOperations:
currentOperations: {}
created: Tue Jun 23 18:14:09 HKT 2015
finished: Tue Jun 23 18:14:09 HKT 2015
[size=18][b] status: failure[/b][/size]
residentOn: com.xensource.xenapi.Host@43c14206
progress: 1.0
type: <none/>
result:
errorInfo: [VM_MISSING_PV_DRIVERS, OpaqueRef:0f3639a4-4170-7f83-5fd7-34e95a6894a0]
otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks:

2015-06-23 10:14:30,028 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-284:ctx-46249a8f) Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
Task failed! Task record: uuid: 8aef059d-3954-b7cb-3adb-c386da9a73b2
nameLabel: Async.VM.pool_migrate
nameDescription:
allowedOperations:
currentOperations: {}
created: Tue Jun 23 18:14:09 HKT 2015
finished: Tue Jun 23 18:14:09 HKT 2015
status: failure
residentOn: com.xensource.xenapi.Host@43c14206
progress: 1.0
type: <none/>
result:
errorInfo: [VM_MISSING_PV_DRIVERS, OpaqueRef:0f3639a4-4170-7f83-5fd7-34e95a6894a0]
otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks:

at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.checkForSuccess(CitrixResourceBase.java:3210)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.migrateVM(CitrixResourceBase.java:3363)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2961)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:455)
at com.cloud.hypervisor.xenserver.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:64)
at com.cloud.hypervisor.xenserver.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:87)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:302)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2015-06-23 10:14:30,035 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-284:ctx-46249a8f) unable to destroy task(com.xensource.xenapi.Task@ee83a0d5) on host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed) due to You gave an invalid object reference. The object may have recently been deleted. The class parameter gives the type of reference given, and the handle parameter echoes the bad value given.
2015-06-23 10:14:30,035 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-284:ctx-46249a8f) Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.migrateVM(CitrixResourceBase.java:3374)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2961)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:455)
at com.cloud.hypervisor.xenserver.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:64)
at com.cloud.hypervisor.xenserver.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:87)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:302)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
2015-06-23 10:14:30,163 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-4:ctx-de27a165 job-91/job-93) Remove job-93 from job monitoring
[size=18][b]2015-06-23 10:14:30,199 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-10:ctx-8d5e308f job-91) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)[/b][/size]
at com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1962)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:1860)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:4504)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:4636)
at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:103)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:537)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:494)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
 
 
已邀请:

xinshoushanglu - cloudstack

赞同来自: ciscoruijie ak_qq

1、待迁移的实例的计算方案是否被删除?
2、是否启用了本地存储?
3、xs-tools安装是否正常?
4、在xencenter中迁移是否正常?
5、是否附件了ISO没有取消?
我测试过程中,遇到的影响迁移的因素就这些,希望可以帮到您

ciscoruijie

赞同来自: ak_qq

最终的解决办法:
1,检查是否附加了ISO,这个必须的取消附加,才能迁移;
2,是否安装xs-tools这个也必须安装,以上的报错信息,均是未安装导致的报错
3,还有楼上xinshoushanglu提到的几个点:

赞同来自: ciscoruijie 、ak_qq1、待迁移的实例的计算方案是否被删除?
2、是否启用了本地存储?
3、xs-tools安装是否正常?
4、在xencenter中迁移是否正常?
5、是否附件了ISO没有取消?
真的太感谢了,结果就是xs-tools没有安装!

ak_qq

赞同来自:

首先,来看你的问题:

 问题一:我的环境是高级网络模式,在普通用户下面的建立实例,网络经过端口映射均可以正常的访问,创建实例也可以正常的访问,现在问题是:我在admin用户下使用迁移功能来迁移这个vm就会报错


回答:你的第一个截图好像不是正确的,截图中迁移的是ssvm,且是vmware环境。
首先来看报错失败的日志:可以看到你的VM详情中,有挂载一个ISO? 如果是,请把ISO取消挂载,然后再迁移。
"}},"name":"ROOT-3","size":5368709120,"path":"80da8a53-4efb-4714-959e-162e376b9737","volumeId":5,"vmName":"i-5-3-VM","accountId":5,"format":"VHD","provisioningType":"THIN","id":5,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"80da8a53-4efb-4714-959e-162e376b9737","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.207.238.87","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202/202-2-c396c7d6-6456-3b68-a828-1030b775d35e.iso","origUrl":"http://10.207.238.242/ISO/Cent ... ot%3B,"uuid":"62c7e295-7a35-43c1-aaa4-305ff536018d","id":202,"format":"ISO","accountId":2,"checksum":"eb3c8be6ab668e6d83a118323a789e6c","hvm":true,"displayText":"CentOS-6.6-x86_64-minimal","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.207.238.87/export/secondary","_role":"Image"}},"name":"202-2-c396c7d6-6456-3b68-a828-1030b775d35e","guestOsType":"CentOS 6 (64-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"c16ea64c-c77b-4ff0-978c-f1c1f92fc41b","uuid":"aa8e8b79-6975-4b51-b52e-cf8d6ad6f910","ip":"192.168.152.21","netmask":"255.255.255.0","gateway":"192.168.152.1","mac":"02:00:5f:e0:00:01","dns1":"10.191.131.131","dns2":"10.191.130.130","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://495","isolationUri":"vlan://495","isSecurityGroupEnabled":false,"name":"Network1"}],"vcpuMaxLimit":16},"executeInSequence":false,"wait":0}}] }

问题二:怎么让输出的日志之输出error不输出那么多的信息呢?


回答:具体的你可以修改cs日志输出级别,但一般不建议修改为低级别的。对于排错有很大困扰(但如果执意要修改,则修改/etc/cloudstack/management/log4j-cloud.xml文件。)。如果你觉得/var/log/cloudstack/management/management-server.log 信息量过大,可以尝试查看/var/log/cloudstack/management/catalina.out文件。

附-CloudStack日志级别:
输出信息的类型: level定义消息的紧急程度。按严重程度由高到低顺序排列为:

emerg -该系统不可用,等同panic
alert -需要立即被修改的条件
crit -阻止某些工具或子系统功能实现的错误条件
err -阻止工具或某些子系统部分功能实现的错误条件,等同error
warning -预警信息,等同warn
notice -具有重要性的普通条件
info -提供信息的消息
debug -不包含函数条件或问题的其他信息
none -没有重要级,通常用于排错
原链接:http://www.cloudstack-china.org/2012/09/476.html

ciscoruijie

赞同来自:

首先感谢你的答复,真的很感谢;
我取消了ISO附加还是报错报错的代码如下:

Untitled2.png
2015-06-23 11:10:04,918 DEBUG [c.c.a.t.Request] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 1-8780330423512205874: Sending  { Cmd , MgmtId: 200351793160987, via: 1(A-XS01.vmware.xx), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.MigrateCommand":{"vmName":"i-5-3-VM","destIp":"10.207.238.225","hostGuid":"09315bed-6b7b-4339-9d60-5c9132cafa27","isWindows":false,"vmTO":{"id":3,"name":"i-5-3-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":1073741824,"maxRam":1073741824,"arch":"x86_64","os":"CentOS 6 (64-bit)","bootArgs":"","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"IboejCMWr7ReYEaXxtXcAA==","params":{"hypervisortoolsversion":"xenserver56","platform":"viridian:true;acpi:1;apic:true;pae:true;nx:true;timeoffset:0"},"uuid":"0e0bb735-0439-44ff-8db4-eb9612d20968","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"8a1ff500-09b6-476c-97b6-2068b9dd93b8","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"ee5f1d7a-e78b-34d4-aa1f-20f2ca211415","id":1,"poolType":"NetworkFilesystem","host":"10.207.238.87","path":"/export/primary","port":2049,"url":"NetworkFilesystem://10.207.238.87/export/primary/?ROLE=Primary&STOREUUID=ee5f1d7a-e78b-34d4-aa1f-20f2ca211415"}},"name":"ROOT-3","size":5368709120,"path":"80da8a53-4efb-4714-959e-162e376b9737","volumeId":5,"vmName":"i-5-3-VM","accountId":5,"format":"VHD","provisioningType":"THIN","id":5,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"80da8a53-4efb-4714-959e-162e376b9737","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.207.238.87","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"c16ea64c-c77b-4ff0-978c-f1c1f92fc41b","uuid":"aa8e8b79-6975-4b51-b52e-cf8d6ad6f910","ip":"192.168.152.21","netmask":"255.255.255.0","gateway":"192.168.152.1","mac":"02:00:5f:e0:00:01","dns1":"10.191.131.131","dns2":"10.191.130.130","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://495","isolationUri":"vlan://495","isSecurityGroupEnabled":false,"name":"Network1"}],"vcpuMaxLimit":16},"executeInSequence":false,"wait":0}}] }
2015-06-23 11:10:04,920 DEBUG [c.c.a.t.Request] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 1-8780330423512205874: Executing: { Cmd , MgmtId: 200351793160987, via: 1(A-XS01.vmware.xx), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.MigrateCommand":{"vmName":"i-5-3-VM","destIp":"10.207.238.225","hostGuid":"09315bed-6b7b-4339-9d60-5c9132cafa27","isWindows":false,"vmTO":{"id":3,"name":"i-5-3-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":1073741824,"maxRam":1073741824,"arch":"x86_64","os":"CentOS 6 (64-bit)","bootArgs":"","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"IboejCMWr7ReYEaXxtXcAA==","params":{"hypervisortoolsversion":"xenserver56","platform":"viridian:true;acpi:1;apic:true;pae:true;nx:true;timeoffset:0"},"uuid":"0e0bb735-0439-44ff-8db4-eb9612d20968","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"8a1ff500-09b6-476c-97b6-2068b9dd93b8","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"ee5f1d7a-e78b-34d4-aa1f-20f2ca211415","id":1,"poolType":"NetworkFilesystem","host":"10.207.238.87","path":"/export/primary","port":2049,"url":"NetworkFilesystem://10.207.238.87/export/primary/?ROLE=Primary&STOREUUID=ee5f1d7a-e78b-34d4-aa1f-20f2ca211415"}},"name":"ROOT-3","size":5368709120,"path":"80da8a53-4efb-4714-959e-162e376b9737","volumeId":5,"vmName":"i-5-3-VM","accountId":5,"format":"VHD","provisioningType":"THIN","id":5,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"80da8a53-4efb-4714-959e-162e376b9737","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.207.238.87","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"c16ea64c-c77b-4ff0-978c-f1c1f92fc41b","uuid":"aa8e8b79-6975-4b51-b52e-cf8d6ad6f910","ip":"192.168.152.21","netmask":"255.255.255.0","gateway":"192.168.152.1","mac":"02:00:5f:e0:00:01","dns1":"10.191.131.131","dns2":"10.191.130.130","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://495","isolationUri":"vlan://495","isSecurityGroupEnabled":false,"name":"Network1"}],"vcpuMaxLimit":16},"executeInSequence":false,"wait":0}}] }
2015-06-23 11:10:04,921 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-402:ctx-3a722c62) Seq 1-8780330423512205874: Executing request
2015-06-23 11:10:05,982 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-3a722c62) Task failed! Task record: uuid: 876cd34b-f67e-d8a1-7b7f-0706ce7eec15
nameLabel: Async.VM.pool_migrate
nameDescription:
allowedOperations:
currentOperations: {}
created: Tue Jun 23 19:09:45 HKT 2015
finished: Tue Jun 23 19:09:45 HKT 2015
status: failure
residentOn: com.xensource.xenapi.Host@43c14206
progress: 1.0
type: <none/>
result:
errorInfo: [VM_MISSING_PV_DRIVERS, OpaqueRef:0f3639a4-4170-7f83-5fd7-34e95a6894a0]
otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks:

2015-06-23 11:10:05,990 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-3a722c62) Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
Task failed! Task record: uuid: 876cd34b-f67e-d8a1-7b7f-0706ce7eec15
nameLabel: Async.VM.pool_migrate
nameDescription:
allowedOperations:
currentOperations: {}
created: Tue Jun 23 19:09:45 HKT 2015
finished: Tue Jun 23 19:09:45 HKT 2015
status: failure
residentOn: com.xensource.xenapi.Host@43c14206
progress: 1.0
type: <none/>
result:
errorInfo: [VM_MISSING_PV_DRIVERS, OpaqueRef:0f3639a4-4170-7f83-5fd7-34e95a6894a0]
otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks:
2015-06-23 11:10:05,997 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-3a722c62) unable to destroy task(com.xensource.xenapi.Task@26b45712) on host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed) due to You gave an invalid object reference. The object may have recently been deleted. The class parameter gives the type of reference given, and the handle parameter echoes the bad value given.
2015-06-23 11:10:05,997 WARN [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-3a722c62) Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.migrateVM(CitrixResourceBase.java:3374)
...
2015-06-23 11:10:05,999 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-402:ctx-3a722c62) Seq 1-8780330423512205874: Response Received:
2015-06-23 11:10:05,999 DEBUG [c.c.a.t.Request] (DirectAgent-402:ctx-3a722c62) Seq 1-8780330423512205874: Processing: { Ans: , MgmtId: 200351793160987, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.MigrateAnswer":{"result":false,"details":"Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)","wait":0}}] }
2015-06-23 11:10:05,999 DEBUG [c.c.a.t.Request] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 1-8780330423512205874: Received: { Ans: , MgmtId: 200351793160987, via: 1, Ver: v1, Flags: 10, { MigrateAnswer } }
2015-06-23 11:10:05,999 INFO [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Migration was unsuccessful. Cleaning up: VM[User|i-5-3-VM]
2015-06-23 11:10:06,007 WARN [o.a.c.alerts] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) alertType:: 17 // dataCenterId:: 1 // podId:: 1 // clusterId:: null // message:: Unable to migrate vm i-5-3-VM from host A-XS01.vmware.xx in zone iPEBG-Zone and pod iPEBG-Pod
2015-06-23 11:10:06,009 DEBUG [c.c.a.AlertManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Have already sent: 1 emails for alert type '17' -- skipping send email
2015-06-23 11:10:06,010 DEBUG [c.c.a.m.AgentAttache] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 7-202380508254963363: Routed from 200351793160987
2015-06-23 11:10:06,011 DEBUG [c.c.a.t.Request] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 7-202380508254963363: Sending { Cmd , MgmtId: 200351793160987, via: 7(A-XS02.vmware.xx), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"checkBeforeCleanup":false,"vmName":"i-5-3-VM","wait":0}}] }
2015-06-23 11:10:06,011 DEBUG [c.c.a.t.Request] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Seq 7-202380508254963363: Executing: { Cmd , MgmtId: 200351793160987, via: 7(A-XS02.vmware.xx), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"checkBeforeCleanup":false,"vmName":"i-5-3-VM","wait":0}}] }
2015-06-23 11:10:06,011 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-403:ctx-d1e8e085) Seq 7-202380508254963363: Executing request
2015-06-23 11:10:06,021 DEBUG [c.c.c.CapacityManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) VM state transitted from :Migrating to Running with event: OperationFailedvm's original host id: 1 new host id: 1 host id before state transition: 7
2015-06-23 11:10:06,033 DEBUG [c.c.c.CapacityManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Hosts's actual total CPU: 83200 and CPU after applying overprovisioning: 83200
2015-06-23 11:10:06,033 DEBUG [c.c.c.CapacityManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Hosts's actual total RAM: 195419956608 and RAM after applying overprovisioning: 195419963392
2015-06-23 11:10:06,033 DEBUG [c.c.c.CapacityManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) release cpu from host: 7, old used: 1000,reserved: 0, actual total: 83200, total with overprovisioning: 83200; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
2015-06-23 11:10:06,033 DEBUG [c.c.c.CapacityManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) release mem from host: 7, old used: 1073741824,reserved: 0, total: 195419963392; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
2015-06-23 11:10:06,035 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-403:ctx-d1e8e085) Seq 7-202380508254963363: Response Received:
2015-06-23 11:10:06,035 DEBUG [c.c.a.t.Request] (DirectAgent-403:ctx-d1e8e085) Seq 7-202380508254963363: Processing: { Ans: , MgmtId: 200351793160987, via: 7, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not exist","wait":0}}] }
2015-06-23 11:10:06,036 DEBUG [c.c.a.m.AgentAttache] (DirectAgent-403:ctx-d1e8e085) Seq 7-202380508254963363: Unable to find listener.
2015-06-23 11:10:06,072 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
2015-06-23 11:10:06,072 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99 ctx-53aa1b33) Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
2015-06-23 11:10:06,073 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Done with run of VM work job: com.cloud.vm.VmWorkMigrate for VM 3, job origin: 97
2015-06-23 11:10:06,073 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Unable to complete AsyncJobVO {id:99, userId: 2, accountId: 2, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: rO0ABXNyABpjb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZRdxQXtPtzYqAgAGSgAJc3JjSG9zdElkTAAJY2x1c3RlcklkdAAQTGphdmEvbGFuZy9Mb25nO0wABmhvc3RJZHEAfgABTAAFcG9kSWRxAH4AAUwAB3N0b3JhZ2V0AA9MamF2YS91dGlsL01hcDtMAAZ6b25lSWRxAH4AAXhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA3QAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAAXNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAAAAXNxAH4ABwAAAAAAAAAHcQB-AAlwcQB-AAk, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 200351793160987, completeMsid: null, lastUpdated: null, lastPolled: null, created: Tue Jun 23 11:10:03 HKT 2015}, job origin:97
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
at com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1962)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:1860)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:4504)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2015-06-23 11:10:06,078 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Complete async job-99, jobStatus: FAILED, resultCode: 0, result: rO0ABXNyAC9jb20uY2xvdWQudXRpbHMuZXhjZXB0aW9uLkNsb3VkUnVudGltZUV4Y2VwdGlvbgAAAABWTU9yAwABSQALY3NFcnJvckNvZGV4cgAaamF2YS5sYW5nLlJ1bnRpbWVFeGNlcHRpb26eXwZHCjSD5QIAAHhyABNqYXZhLmxhbmcuRXhjZXB0aW9u0P0fPho7HMQCAAB4cgATamF2YS5sYW5nLlRocm93YWJsZdXGNSc5d7jLAwAETAAFY2F1c2V0ABVMamF2YS9sYW5nL1Rocm93YWJsZTtMAA1kZXRhaWxNZXNzYWdldAASTGphdmEvbGFuZy9TdHJpbmc7WwAKc3RhY2tUcmFjZXQAHltMamF2YS9sYW5nL1N0YWNrVHJhY2VFbGVtZW50O0wAFHN1cHByZXNzZWRFeGNlcHRpb25zdAAQTGphdmEvdXRpbC9MaXN0O3hwcQB-
2015-06-23 11:10:06,080 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Publish async job-99 complete on message bus
2015-06-23 11:10:06,080 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Wake up jobs related to job-99
2015-06-23 11:10:06,080 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Update db status for job-99
2015-06-23 11:10:06,083 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Wake up jobs joined with job-99 and disjoin all subjobs created from job- 99
2015-06-23 11:10:06,121 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Done executing com.cloud.vm.VmWorkMigrate for job-99
2015-06-23 11:10:06,124 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-5:ctx-edb92f11 job-97/job-99) Remove job-99 from job monitoring
2015-06-23 11:10:06,174 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-12:ctx-0c78cf79 job-97) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)
at com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1962)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:1860)
at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:4504)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2015-06-23 11:10:06,177 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Complete async job-97, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":,"errorcode":530,"errortext":"Unable to migrate VM(i-5-3-VM) from host(ab9ddea0-6abe-4b1a-89f3-9b13868163ed)"}
2015-06-23 11:10:06,179 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Publish async job-97 complete on message bus
2015-06-23 11:10:06,179 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Wake up jobs related to job-97
2015-06-23 11:10:06,179 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Update db status for job-97
2015-06-23 11:10:06,181 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Wake up jobs joined with job-97 and disjoin all subjobs created from job- 97
2015-06-23 11:10:06,201 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-0c78cf79 job-97) Done executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd for job-97
2015-06-23 11:10:06,201 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-12:ctx-0c78cf79 job-97) Remove job-97 from job monitoring
2015-06-23 11:10:06,421 DEBUG [c.c.a.ApiServlet] (catalina-exec-8:ctx-905920ba) ===START=== 10.207.237.128 -- GET command=queryAsyncJobResult&jobId=b354ef84-6152-4740-b3b7-8697dbc32f62&response=json&sessionkey=RwbZ8Ap4rZliouPTPG7XsOOC6Qc%3D&_=1435029004269

cloud - 技术支持/二次开发 weibo.com/tianchunfeng

赞同来自:

再确认一下, XenTools 是否安装成功?
 
 

ciscoruijie

赞同来自:

真的太感谢了,结果就是xs-tools没有安装!

要回复问题请先登录注册