cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZS Che <chezscl...@gmail.com>
Subject Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0
Date Fri, 01 Aug 2014 11:51:28 GMT
十分感谢您的回复。我今天上午发现是我的hostname出现了问题。一个带域名,一个没有带域名,导致无法添加。交换机方面之前就采用trunk模式,vlan也都通过了。

但是,这个问题解决之后仍然无法添加Host,web页面显示
Cannot transit agent status with event AgentDisconnected for host 6,
management server id is 207458817951964, Unable to transition to a new
state from Creating via AgentDisconnected


log文件如下:
########################################
2014-08-01 19:31:32,080 INFO  [xen.resource.CitrixResourceBase]
(DirectAgent-238:null) Host 192.168.1.5
OpaqueRef:e289ee27-9ec3-83f4-551e-ff8b64386b52: Host 192.168.1.5 is already
setup.
2014-08-01 19:31:32,544 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-238:null) Seq 6-105775105: Response Received:
2014-08-01 19:31:32,544 DEBUG [agent.transport.Request]
(DirectAgent-238:null) Seq 6-105775105: Processing:  { Ans: , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 110,
[{"com.cloud.agent.api.SetupAnswer":{"_reconnect":false,"result":true,"wait":0}}]
}
2014-08-01 19:31:32,549 DEBUG [agent.manager.AgentAttache]
(DirectAgent-238:null) Seq 6-105775105: No more commands found
2014-08-01 19:31:32,549 DEBUG [agent.transport.Request]
(AgentTaskPool-10:null) Seq 6-105775105: Received:  { Ans: , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 110, { SetupAnswer } }
2014-08-01 19:31:32,580 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Connect to listener:
DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
2014-08-01 19:31:32,581 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Connect to listener:
NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
2014-08-01 19:31:32,583 DEBUG [cloud.network.NetworkManagerImpl]
(AgentTaskPool-10:null) Host's hypervisorType is: XenServer
2014-08-01 19:31:32,594 DEBUG [cloud.network.NetworkManagerImpl]
(AgentTaskPool-10:null) Sending CheckNetworkCommand to check the Network is
setup correctly on Agent
2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
(AgentTaskPool-10:null) Seq 6-105775106: Sending  { Cmd , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.CheckNetworkCommand":{"networkInfoList":[{"physicalNetworkId":205,"privateNetworkName":"cmfg2
manage"},{"physicalNetworkId":206,"publicNetworkName":"cmfg2
public","guestNetworkName":"cmfg2 guest"}],"wait":0}}] }
2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
(AgentTaskPool-10:null) Seq 6-105775106: Executing:  { Cmd , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.CheckNetworkCommand":{"networkInfoList":[{"physicalNetworkId":205,"privateNetworkName":"cmfg2
manage"},{"physicalNetworkId":206,"publicNetworkName":"cmfg2
public","guestNetworkName":"cmfg2 guest"}],"wait":0}}] }
2014-08-01 19:31:32,598 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-321:null) Seq 6-105775106: Executing request
2014-08-01 19:31:32,599 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-321:null) Checking if network name setup is done on the
resource
2014-08-01 19:31:32,603 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-321:null) Looking for network setup by name cmfg2 manage
2014-08-01 19:31:32,694 ERROR [xen.resource.CitrixResourceBase]
(DirectAgent-321:null) For Physical Network id:205, Private Network is not
configured on the backend by name cmfg2 manage
2014-08-01 19:31:32,694 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-321:null) Seq 6-105775106: Response Received:
2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
(DirectAgent-321:null) Seq 6-105775106: Processing:  { Ans: , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 110,
[{"com.cloud.agent.api.CheckNetworkAnswer":{"_reconnect":false,"result":false,"details":"For
Physical Network id:205, Private Network is not configured on the backend
by name cmfg2 manage","wait":0}}] }
2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentAttache]
(DirectAgent-321:null) Seq 6-105775106: No more commands found
2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
(AgentTaskPool-10:null) Seq 6-105775106: Received:  { Ans: , MgmtId:
207458817951964, via: 6, Ver: v1, Flags: 110, { CheckNetworkAnswer } }
2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Details from executing class
com.cloud.agent.api.CheckNetworkCommand: For Physical Network id:205,
Private Network is not configured on the backend by name cmfg2 manage
2014-08-01 19:31:32,695 WARN  [cloud.network.NetworkManagerImpl]
(AgentTaskPool-10:null) Unable to setup agent 6 due to For Physical Network
id:205, Private Network is not configured on the backend by name cmfg2
manage
2014-08-01 19:31:32,695 WARN  [apache.cloudstack.alerts]
(AgentTaskPool-10:null)  alertType:: 7 // dataCenterId:: 4 // podId:: 4 //
clusterId:: null // message:: Incorrect Network setup on agent,
Reinitialize agent after network names are setup, details : For Physical
Network id:205, Private Network is not configured on the backend by name
cmfg2 manage
2014-08-01 19:31:32,731 INFO  [utils.exception.CSExceptionErrorCode]
(AgentTaskPool-10:null) Could not find exception:
com.cloud.exception.ConnectionException in error code list for exceptions
2014-08-01 19:31:32,732 WARN  [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Monitor
NetworkManagerImpl_EnhancerByCloudStack_dd57bdd says there is an error in
the connect process for 6 due to Incorrect Network setup on agent,
Reinitialize agent after network names are setup, details : For Physical
Network id:205, Private Network is not configured on the backend by name
cmfg2 manage
2014-08-01 19:31:32,732 INFO  [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Host 6 is disconnecting with event AgentDisconnected
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) The next status of agent 6is Alert, current status
is Connecting
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Deregistering link for 6 with state Alert
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Remove Agent : 6
2014-08-01 19:31:32,733 DEBUG [agent.manager.DirectAgentAttache]
(AgentTaskPool-10:null) Processing disconnect 6
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer_EnhancerByCloudStack_357fdfd4
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.deploy.DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.storage.secondary.SecondaryStorageListener
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.hypervisor.vmware.manager.VmwareManagerImpl_EnhancerByCloudStack_a54a7ad7
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.security.SecurityGroupListener
2014-08-01 19:31:32,733 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.storage.listener.StoragePoolMonitor
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.vm.ClusteredVirtualMachineManagerImpl_EnhancerByCloudStack_3a962ce1
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.storage.LocalStoragePoolListener
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.SshKeysDistriMonitor
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.router.VirtualNetworkApplianceManagerImpl_EnhancerByCloudStack_d4079982
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.SshKeysDistriMonitor
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl_EnhancerByCloudStack_4eeb61a5
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.storage.upload.UploadListener
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.storage.download.DownloadListener
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.agent.manager.AgentMonitor
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.capacity.StorageCapacityListener
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.capacity.ComputeCapacityListener
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.network.NetworkUsageManagerImpl$DirectNetworkStatsListener
2014-08-01 19:31:32,734 DEBUG [cloud.network.NetworkUsageManagerImpl]
(AgentTaskPool-10:null) Disconnected called on 6 with status Alert
2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
(AgentTaskPool-10:null) Sending Disconnect to listener:
com.cloud.consoleproxy.ConsoleProxyListener
2014-08-01 19:31:32,735 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
id = 6, name = xen5]
2014-08-01 19:31:32,797 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Agent status update: [id = 6; name = xen5; old status = Connecting; event =
AgentDisconnected; new status = Alert; old update count = 3; new update
count = 4]
2014-08-01 19:31:32,797 DEBUG [agent.manager.ClusteredAgentManagerImpl]
(AgentTaskPool-10:null) Notifying other nodes of to disconnect
2014-08-01 19:31:32,798 WARN  [cloud.resource.ResourceManagerImpl]
(AgentTaskPool-10:null) Unable to connect due to
com.cloud.exception.ConnectionException: Incorrect Network setup on agent,
Reinitialize agent after network names are setup, details : For Physical
Network id:205, Private Network is not configured on the backend by name
cmfg2 manage
    at
com.cloud.network.NetworkManagerImpl.processConnect(NetworkManagerImpl.java:4324)
    at
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
    at
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1479)
    at
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1762)
    at
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1924)
    at
com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
    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:679)
2014-08-01 19:31:32,799 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
id = 6, name = xen5]
2014-08-01 19:31:32,855 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Agent status update: [id = 6; name = xen5; old status = Alert; event =
AgentDisconnected; new status = Alert; old update count = 4; new update
count = 5]


##############################################
这个计算节点原来被添加到CloudStack中过,因为从基本资源域改成高级资源域,现在重新装了一遍Xenserver,管理节点也重新装了一遍。然后这次添加的时候就出现了问题。请问这是为什么呢?谢谢!


On Fri, Aug 1, 2014 at 5:10 PM, linuxbqj@gmail.com <linuxbqj@gmail.com>
wrote:

> 计算节点 第二块网卡不要配置IP地址
>
> 上联的交换机端口设置为trunk模式,设置192.168.0.0/24所在的vlan为默认vlan,允许所有vlan通过
>
> 应该就可以了
>
>
>
> 2014-07-31 21:14 GMT+08:00 ZS Che <chezscloud@gmail.com>:
> > 请教各位大牛一个比较基本的问题。
> > 我在高级资源域中,添加Xenserver类型的Host时失败,management-server.log中的信息如下:
> >
> > #########################################################
> > 2014-07-31 19:34:13,492 INFO  [cloud.resource.ResourceManagerImpl]
> > (catalina-exec-10:null) Trying to add a new host at http://192.168.1.5
> in
> > data center 1
> > 2014-07-31 19:34:13,496 DEBUG [xen.resource.XenServerConnectionPool]
> > (catalina-exec-10:null) Failed to slave local login to 192.168.1.5 due to
> > org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
> > Connection refused
> > 2014-07-31 19:34:13,497 DEBUG [xen.resource.XenServerConnectionPool]
> > (catalina-exec-10:null) localLogout has problem Failed to read server's
> > response: Connection refused
> > 2014-07-31 19:34:13,497 DEBUG [xen.discoverer.XcpServerDiscoverer]
> > (catalina-exec-10:null) other exceptions: java.lang.RuntimeException: can
> > not get master ip
> > java.lang.RuntimeException: can not get master ip
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool.getMasterIp(XenServerConnectionPool.java:347)
> >     at
> >
> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:183)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:741)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
> >     at
> >
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> >     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> >     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> >     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> >     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> >     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >     at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >     at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >     at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >     at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >     at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> >     at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >     at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> >     at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >     at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >     at
> >
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> >     at
> >
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> >     at
> >
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> >     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:679)
> > 2014-07-31 19:34:13,497 WARN  [cloud.resource.ResourceManagerImpl]
> > (catalina-exec-10:null) Unable to find the server resources at
> > http://192.168.1.5
> > 2014-07-31 19:34:13,497 INFO  [utils.exception.CSExceptionErrorCode]
> > (catalina-exec-10:null) Could not find exception:
> > com.cloud.exception.DiscoveryException in error code list for exceptions
> > 2014-07-31 19:34:13,498 WARN  [admin.host.AddHostCmd]
> > (catalina-exec-10:null) Exception:
> > com.cloud.exception.DiscoveryException: Unable to add the host
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:798)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
> >     at
> >
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> >     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> >     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> >     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> >     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> >     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >     at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >     at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >     at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >     at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >     at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> >     at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >     at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> >     at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >     at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >     at
> >
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> >     at
> >
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> >     at
> >
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> >     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:679)
> > 2014-07-31 19:34:13,498 INFO  [cloud.api.ApiServer]
> (catalina-exec-10:null)
> > Unable to add the host
> > 2014-07-31 19:34:13,499 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-10:null) ===END===  192.168.1.9 -- POST
> > command=addHost&response=json&sessionkey=%2BAnP9zizYKhX2m3Acpw6jXFaDZ8%3D
> >
> > ###########################################
> > 网络环境:
> > 测试环境,只有2台服务器,通过H3C S5120,接入到工作网络中
> > 管理网络:192.168.1.0/24
> > 公共网络:192.168.0.0/24
> > 客户网络:10.1.1.0/24
> >
> > 其中,管理节点和存储节点
> > CloudStack 4.2.0
> > eth0: ip: 192.168.1.4
> > Xenserver 6.0.2
> > eth0: ip: 192.168.1.5
> > eth1: ip: 192.168.0.5
> >
> > ############################################
> > nfs已经启动,iptables、selinux已经停止,系统虚拟机模板也已经安了。
> > 请问该如何解决?谢谢!
>
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linuxbqj@gmail.com
>

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