cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 曾冠华 <ahuab...@gmail.com>
Subject Re: 创建vm实例失败
Date Thu, 27 Mar 2014 02:34:03 GMT
我的host 和server ssh 互通没有问题

是不是这样的问题, host 与 managementServer 两台服务器连的交换机不支持vlan,不是trunk口,
managementServer 收不到来自host带vlan 标签的信息
导致创建vm时分配vlan失败

我查看我的agent日志
2014-03-26 10:29:03,341 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to 10.109.247.54:8250
2014-03-26 10:29:03,782 INFO  [utils.nio.NioClient] (Agent-Selector:null)
SSL: Handshake done
2014-03-26 10:29:04,052 INFO  [cloud.serializer.GsonHelper]
(Agent-Handler-1:null) Default Builder inited.
2014-03-26 10:29:04,244 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Proccess agent startup answer, agent id = 1
2014-03-26 10:29:04,244 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Set agent id 1
2014-03-26 10:29:04,253 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Startup Response Received: agent id = 1
2014-03-26 10:31:42,742 WARN  [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) Exception
com.cloud.exception.InternalErrorException: Failed to create vnet 105: Set
name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/configERROR: trying to add VLAN #0 to IF -:105:-  error: No
such deviceFailed to create vlan 105 on pif: .
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnet(BridgeVifDriver.java:144)
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVlanBr(BridgeVifDriver.java:131)
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.plug(BridgeVifDriver.java:92)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVif(LibvirtComputingResource.java:3093)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVifs(LibvirtComputingResource.java:2864)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2888)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1061)
at com.cloud.agent.Agent.processRequest(Agent.java:518)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
at com.cloud.utils.nio.Task.run(Task.java:83)
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:744)
2014-03-26 10:31:42,748 WARN  [cloud.agent.Agent]
(agentRequest-Handler-5:null) Caught:
java.lang.NullPointerException
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.cleanupVMNetworks(LibvirtComputingResource.java:4000)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.handleVmStartFailure(LibvirtComputingResource.java:2787)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2912)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1061)
at com.cloud.agent.Agent.processRequest(Agent.java:518)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
at com.cloud.utils.nio.Task.run(Task.java:83)
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:744)




2014-03-26 16:21 GMT+08:00 tanthalas <tanthalas510@hotmail.com>:

> Unable to get answer that is of class com.cloud.agent.api.StartAnswer
> 从这句话来看,是跟host主机的连接失败了,无法创建。先看一下主机的连接状态
>
> 刘宇超
>
>
>
> 发件人: 曾冠华
> 发送时间: 2014-03-25  21:56:03
> 收件人: users-cn
> 抄送:
> 主题: 创建vm实例失败
>
> 发现虚拟路由器也是stopped状态
> 启动虚拟路由器失败
> 提示:
> Unable to get answer that is of class com.cloud.agent.api.StartAnswer
> log:
> 2014-03-25 21:51:34,704 DEBUG [agent.manager.AgentAttache]
> (AgentManager-Handler-6:null) Seq 1-271384696: No more commands found
> 2014-03-25 21:51:34,704 DEBUG [agent.transport.Request]
> (Job-Executor-7:job-18) Seq 1-271384696: Received:  { Ans: , MgmtId:
> 159090356754390, via: 1, Ver: v1, Flags: 110, { Answer, Answer, Answer,
> Answer, Answer } }
> 2014-03-25 21:51:34,729 ERROR [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-7:job-18) Failed to start instance VM[DomainRouter|r-4-VM]
> com.cloud.utils.exception.CloudRuntimeException: Unable to get answer that
> is of class com.cloud.agent.api.StartAnswer
>     at com.cloud.agent.manager.Commands.getAnswer(Commands.java:80)
>     at
>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:783)
>     at
>
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:472)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.start(VirtualNetworkApplianceManagerImpl.java:2368)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startVirtualRouter(VirtualNetworkApplianceManagerImpl.java:1613)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startRouters(VirtualNetworkApplianceManagerImpl.java:1713)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.deployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java:1691)
>     at
>
> com.cloud.network.element.VirtualRouterElement.implement(VirtualRouterElement.java:172)
>     at
>
> com.cloud.network.NetworkManagerImpl.implementNetworkElementsAndResources(NetworkManagerImpl.java:2033)
>     at
>
> com.cloud.network.NetworkManagerImpl.implementNetwork(NetworkManagerImpl.java:1965)
>     at
> com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>     at
>
> com.cloud.network.NetworkManagerImpl.startNetwork(NetworkManagerImpl.java:3851)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startRouter(VirtualNetworkApplianceManagerImpl.java:2602)
>     at
>
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startRouter(VirtualNetworkApplianceManagerImpl.java:2571)
>     at
> com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:36)
>     at
> com.cloud.api.commands.StartRouterCmd.execute(StartRouterCmd.java:105)
>     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
>     at
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:432)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:722)
> 2014-03-25 21:51:34,757 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-7:job-18) Cleaning up resources for the vm
> VM[DomainRouter|r-4-VM] in Starting state
> 2014-03-25 21:51:34,759 DEBUG [agent.transport.Request]
> (Job-Executor-7:job-18) Seq 1-271384697: Sending  { Cmd , MgmtId:
> 159090356754390, via: 1, Ver: v1, Flags: 100111,
> [{"StopCommand":{"isProxy":false,"vmName":"r-4-VM","wait":0}}] }
> 2014-03-25 21:51:34,985 DEBUG [agent.transport.Request]
> (AgentManager-Handler-1:null) Seq 1-271384697: Processing:  { Ans: ,
> MgmtId: 159090356754390, via: 1, Ver: v1, Flags: 110,
> [{"StopAnswer":{"vncPort":0,"result":true,"wait":0}}] }
> 2014-03-25 21:51:34,985 DEBUG [agent.manager.AgentAttache]
> (AgentManager-Handler-1:null) Seq 1-271384697: No more commands found
> 2014-03-25 21:51:34,985 DEBUG [agent.transport.Request]
> (Job-Executor-7:job-18) Seq 1-271384697: Received:  { Ans: , MgmtId:
> 159090356754390, via: 1, Ver: v1, Flags: 110, { StopAnswer } }
> 2014-03-25 21:51:34,992 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-7:job-18)
> Successfully updated user statistics as a part of domR
> VM[DomainRouter|r-4-VM] reboot/stop
> 2014-03-25 21:51:35,033 DEBUG [cloud.network.NetworkManagerImpl]
> (Job-Executor-7:job-18) Service SecurityGroup is not supported in the
> network id=204
> 2014-03-25 21:51:35,072 DEBUG [cloud.network.NetworkManagerImpl]
> (Job-Executor-7:job-18) Asking JuniperSRX to release
> Nic[9-4-ca4a2115-8b71-4a90-8a4f-3ec0007985c6-192.168.88.254]
> 2014-03-25 21:51:35,072 DEBUG [cloud.network.NetworkManagerImpl] (Job-
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message