[已解决]cs4.5 添加xenserver6.5主机失败

在基础架构里已经创建好并可以运行一个集群里添加主机失败,下面是失败日志
不是很明白为什么提示需要pool,因为初始集群里创建的xenserver也没有pool
求大大开导,万分感谢
 
 WARN  [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Received unknown parameters for command addHost. Unknown parameters : clustertype
INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Trying to add a new host at http://172.30.150.13 in data center 1
WARN  [c.c.h.x.d.XcpServerDiscoverer] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Please join the host 172.30.150.13 to XS pool  7c9edb86-1838-da0e-b29a-e0b260137096 through XC/XS before adding it through CS UI
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Unable to find the server resources at http://172.30.150.13
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) 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:593)
        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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy149.discoverHosts(Unknown Source)
        at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:704)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:529)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:284)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:120)
        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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:117)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:84)
        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:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
INFO  [c.c.a.ApiServer] (catalina-exec-1:ctx-95eabd51 ctx-d71d8061) Unable to add the host
已邀请:

ak_qq

赞同来自: qzlaobi

请注意如下日志:
Please join the host 172.30.150.13 to XS pool  7c9edb86-1838-da0e-b29a-e0b260137096 through XC/XS before adding it through CS UI
在CS中添加172.30.150.13时,需要先在XenCenter中,将该主机加入UUID为7c9edb86-1838-da0e-b29a-e0b260137096的主机池。

一般情况下,是你已经在CS中,添加过一台XS主机,150.13为第二台?
如果我的XS主机有多台,那么,再加入CS中,正确的做法,应该是,先通过XenCenter创建主机池,将所有XS主机加入主机池,然后,再CS中,只需添加该主机池的master节点即可,slave节点会自动同步进CS中(XS主机密码必须一致)。
如果是后加的XS主机,需要先在XenCenter中,将该主机加入主机池,然后再单独加入到CS中。

xinshoushanglu - cloudstack

赞同来自: qzlaobi

- - 先在XS中加入pools,然后再将host在cs中加入

qzlaobi

赞同来自:

 谢谢xinshoushanglu和ak_qq
问题已解决,看来同个集群必须是相同主机池吧

要回复问题请先登录注册