Make sure management server can talk to the xenserver (xapi) over port 443 
(firewalls?). Right now it says it cannot due to a timeout:

Failed to read server's response: connect timed out

@mike From the logs this seems the first host to be added to this zone. 

Sent from my iPhone

> On 11 Nov 2015, at 04:36, B Prakash <bpr...@hotmail.com> wrote:
> 
> There are two more exceptions printed in vmops.log as follows;
> 
> 2015-11-10 19:12:55,075 DEBUG [c.c.a.ApiServlet] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109) ===START===  0:0:0:0:0:0:0:1 -- 
> POST  command=addHost&response=json
> 2015-11-10 19:12:55,124 WARN  [c.c.a.d.ParamGenericValidationWorker] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Received unknown 
> parameters for command addHost. Unknown parameters : clustertype
> 2015-11-10 19:12:55,160 INFO  [c.c.r.ResourceManagerImpl] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Trying to add a new 
> host at http://192.168.0.19 in data center 1
> 2015-11-10 19:12:56,041 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
> (consoleproxy-1:ctx-620ccc56) Skip capacity scan as there is no Primary 
> Storage in 'Up' state
> 2015-11-10 19:12:56,436 DEBUG [o.a.c.s.SecondaryStorageManagerImpl] 
> (secstorage-1:ctx-8341054e) Zone 1 is not ready to launch secondary storage 
> VM yet
> 2015-11-10 19:12:57,366 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Resetting hosts suitable for reconnect
> 2015-11-10 19:12:57,370 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Completed resetting hosts suitable for reconnect
> 2015-11-10 19:12:57,370 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Acquiring hosts for clusters already owned by this 
> management server
> 2015-11-10 19:12:57,372 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Completed acquiring hosts for clusters already owned by 
> this management server
> 2015-11-10 19:12:57,372 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Acquiring hosts for clusters not owned by any management 
> server
> 2015-11-10 19:12:57,373 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c19ba5d9) Completed acquiring hosts for clusters not owned by any 
> management server
> 2015-11-10 19:13:00,405 DEBUG [c.c.h.x.r.XenServerConnectionPool] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Unable to create 
> master connection to host(192.168.0.19) , due to 
> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: connect 
> timed out
> 2015-11-10 19:13:00,406 DEBUG [c.c.h.x.d.XcpServerDiscoverer] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) other exceptions: 
> com.cloud.utils.exception.CloudRuntimeException: Unable to create master 
> connection to host(192.168.0.19) , due to org.apache.xmlrpc.XmlRpcException: 
> Failed to read server's response: connect timed out
> com.cloud.utils.exception.CloudRuntimeException: Unable to create master 
> connection to host(192.168.0.19) , due to org.apache.xmlrpc.XmlRpcException: 
> Failed to read server's response: connect timed out
>    at 
> com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool.getConnect(XenServerConnectionPool.java:168)
>    at 
> com.cloud.hypervisor.xenserver.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:217)
>    at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:748)
>    at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:599)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:497)
>    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.$Proxy166.discoverHosts(Unknown Source)
>    at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
>    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
>    at com.cloud.api.ApiServer.queueCommand(ApiServer.java:703)
>    at com.cloud.api.ApiServer.handleRequest(ApiServer.java:528)
>    at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:296)
>    at com.cloud.api.ApiServlet$1.run(ApiServlet.java:127)
>    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:124)
>    at com.cloud.api.ApiServlet.doPost(ApiServlet.java:91)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
>    at 
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>    at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>    at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>    at org.mortbay.jetty.Server.handle(Server.java:326)
>    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>    at 
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
>    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
>    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>    at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>    at 
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's 
> response: connect timed out
>    at 
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>    at 
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>    at 
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>    ... 52 more
> Caused by: java.net.SocketTimeoutException: connect timed out
>    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
>    at 
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
>    at 
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>    ... 73 more
> 2015-11-10 19:13:00,407 WARN  [c.c.r.ResourceManagerImpl] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Unable to find the 
> server resources at http://192.168.0.19
> 2015-11-10 19:13:00,409 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Could not find 
> exception: com.cloud.exception.DiscoveryException in error code list for 
> exceptions
> 2015-11-10 19:13:00,409 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Exception: 
> com.cloud.exception.DiscoveryException: Unable to add the host
>    at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:804)
>    at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:599)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:497)
>    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.$Proxy166.discoverHosts(Unknown Source)
>    at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
>    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
>    at com.cloud.api.ApiServer.queueCommand(ApiServer.java:703)
>    at com.cloud.api.ApiServer.handleRequest(ApiServer.java:528)
>    at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:296)
>    at com.cloud.api.ApiServlet$1.run(ApiServlet.java:127)
>    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:124)
>    at com.cloud.api.ApiServlet.doPost(ApiServlet.java:91)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
>    at 
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>    at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>    at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>    at org.mortbay.jetty.Server.handle(Server.java:326)
>    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>    at 
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
>    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
>    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>    at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>    at 
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> 2015-11-10 19:13:00,419 INFO  [c.c.a.ApiServer] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) Unable to add the host
> 2015-11-10 19:13:00,422 DEBUG [c.c.a.ApiServlet] 
> (1034892751@qtp-1967400458-7:ctx-23ec1109 ctx-beece821) ===END===  
> 0:0:0:0:0:0:0:1 -- POST  command=addHost&response=json
> 
> ________________________________________
> From: Mike Tutkowski <mike.tutkow...@solidfire.com>
> Sent: Tuesday, November 10, 2015 10:24 PM
> To: dev@cloudstack.apache.org
> Subject: Re: "Unable to add the host" error, CS host XS
> 
> Are there several exceptions printed out in vmops.log or just the one you
> posted in your original e-mail?
> 
>> On Tue, Nov 10, 2015 at 8:15 PM, B Prakash <bpr...@hotmail.com> wrote:
>> 
>> I am adding this host to cluster in basic zone.  I had bridge adapter for
>> network, I also ran this command.  My CS still doesnt identify XS host ip.
>> ________________________________________
>> From: Mike Tutkowski <mike.tutkow...@solidfire.com>
>> Sent: Tuesday, November 10, 2015 9:39 PM
>> To: dev@cloudstack.apache.org
>> Subject: Re: "Unable to add the host" error, CS host XS
>> 
>> Are you adding this host to a cluster in a basic zone? If so, have you run
>> this command on your XS host? xe-switch-network-backend bridge
>> 
>>> On Tue, Nov 10, 2015 at 7:22 PM, B Prakash <bpr...@hotmail.com> wrote:
>>> 
>>> I am running XS 6.5 and CS 4.6.  XS is on virtualbox.  CS 4.6 is
>> built/run
>>> on windows 10.
>>> 
>>> ________________________________________
>>> From: Mike Tutkowski <mike.tutkow...@solidfire.com>
>>> Sent: Tuesday, November 10, 2015 9:14 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: Re: "Unable to add the host" error, CS host XS
>>> 
>>> Which versions of XS and CloudStack are you running?
>>> 
>>>> On Tue, Nov 10, 2015 at 7:00 PM, B Prakash <bpr...@hotmail.com> wrote:
>>>> 
>>>> Thanks Mike.  I have added the host to its resource pool with the same
>>>> host as pool master.  I am able to ping XS host and the machine running
>>>> CS.  But when I try to configuring the XS host in CS, it doesnt
>> identify
>>>> the host ip.
>>>> Thanks,
>>>> Prakash.
>>>> ________________________________________
>>>> From: Mike Tutkowski <mike.tutkow...@solidfire.com>
>>>> Sent: Tuesday, November 10, 2015 8:34 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: Re: "Unable to add the host" error, CS host XS
>>>> 
>>>> In more recent versions of CloudStack, you have to add the XenServer
>> host
>>>> to its Resource Pool before adding it to its CloudStack cluster. Were
>> you
>>>> trying to do it that way?
>>>> 
>>>>> On Tue, Nov 10, 2015 at 6:23 PM, B Prakash <bpr...@hotmail.com> wrote:
>>>>> 
>>>>> Issue while adding XS host, I get this "Unable to add the host" in
>> the
>>>>> UI.  I am have pool and pool master configured, XS is with local
>>> storage,
>>>>> CS logs is as follows, am I missing something?
>>>>> 
>>>>> 
>>>>> WARN  [c.c.a.d.ParamGenericValidationWorker]
>> (615054626@qtp-36819918-8
>>>> :ctx-1a6ba54a
>>>>> ctx-73611d66) Received unknown parameters for command addHost.
>> Unknown
>>>>> parameters : clustertype
>>>>> INFO  [c.c.r.ResourceManagerImpl] (615054626@qtp-36819918-8
>>> :ctx-1a6ba54a
>>>>> ctx-73611d66) Trying to add a new host at http://192.168.0.19 in
>> data
>>>>> center 1
>>>>> INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
>>>>> (AsyncJobMgr-Heartbeat-1:ctx-9eb87638) Begin cleanup expired
>> async-jobs
>>>>> INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
>>>>> (AsyncJobMgr-Heartbeat-1:ctx-9eb87638) End cleanup expired async-jobs
>>>>> WARN  [c.c.r.ResourceManagerImpl] (615054626@qtp-36819918-8
>>> :ctx-1a6ba54a
>>>>> ctx-73611d66) Unable to find the server resources at
>>> http://192.168.0.19
>>>>> INFO  [c.c.u.e.CSExceptionErrorCode] (615054626@qtp-36819918-8
>>>> :ctx-1a6ba54a
>>>>> ctx-73611d66) Could not find exception:
>>>>> com.cloud.exception.DiscoveryException in error code list for
>>> exceptions
>>>>> WARN  [o.a.c.a.c.a.h.AddHostCmd] (615054626@qtp-36819918-8
>>> :ctx-1a6ba54a
>>>>> ctx-73611d66) Exception:
>>>>> com.cloud.exception.DiscoveryException: Unable to add the host
>>>>>        at
>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:804)
>>>> 
>>>> 
>>>> --
>>>> *Mike Tutkowski*
>>>> *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkow...@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the cloud
>>>> <http://solidfire.com/solution/overview/?video=play>*(tm)*
>>> 
>>> 
>>> 
>>> 
>>> --
>>> *Mike Tutkowski*
>>> *Senior CloudStack Developer, SolidFire Inc.*
>>> e: mike.tutkow...@solidfire.com
>>> o: 303.746.7302
>>> Advancing the way the world uses the cloud
>>> <http://solidfire.com/solution/overview/?video=play>*(tm)*
>> 
>> 
>> 
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkow...@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud
>> <http://solidfire.com/solution/overview/?video=play>*(tm)*
> 
> 
> 
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*(tm)*

Reply via email to