cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "linuxbqj@gmail.com" <linux...@gmail.com>
Subject Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0
Date Fri, 01 Aug 2014 09:10:57 GMT
计算节点 第二块网卡不要配置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
View raw message