Dear cloudstack user & team,
when I add host in cloudstack 4.6 UI,i got following output:
Unable to add the host.

managerment.log is:

2015-11-28 03:10:07,864 DEBUG [c.c.u.s.SSHCmdHelper] (catalina-exec-17:ctx-
cbe178af ctx-4d8872cb) cloudstack-setup-agent  -m 192.168.85.136 -z 1 -p 1 -c 1 
-g faa1065b-cacf-3c1b-8c32-5e59e7551806 -a --pubNic=cloudbr0 --prvNic=cloudbr0 
--guestNic=cloudbr0 --hypervisor=kvm output:Starting to configure your system:
Configure Cgroup ...          [OK]
Configure SElinux ...         [OK]
Configure Network ...         [OK]
Configure Libvirt ...         [OK]
Configure Firewall ...        [OK]
Configure Nfs ...             [OK]
Configure cloudAgent ...      [OK]
CloudStack Agent setup is done!
.....
....
...
2015-11-28 03:15:08,071 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer] (catalina-
exec-17:ctx-cbe178af ctx-4d8872cb) Timeout, to wait for the host connecting to 
mgt svr, assuming it is failed
2015-11-28 03:15:09,254 WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-
17:ctx-cbe178af ctx-4d8872cb) Unable to find the server resources at 
http://192.168.85.135
2015-11-28 03:15:09,255 INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-
17:ctx-cbe178af ctx-4d8872cb) Could not find exception: 
com.cloud.exception.DiscoveryException in error code list for exceptions
2015-11-28 03:15:09,255 WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-17:ctx-
cbe178af ctx-4d8872cb) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
        at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.ja
va:804)
        at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:5
99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtil
s.java:317)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Re
flectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflective
MethodInvocation.java:150)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeIn
vocationInterceptor.java:91)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflective
MethodInvocation.java:172)

at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.
java:204)
        at com.sun.proxy.$Proxy156.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(Default
ManagedContext.java:56)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContex
t(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:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.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:10
9)
        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(Http
11NioProtocol.java:721)
        at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:227
4)
        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)
2015-11-28 03:15:09,256 INFO  [c.c.a.ApiServer] (catalina-exec-17:ctx-cbe178af 
ctx-4d8872cb) Unable to add the host
2015-11-28 03:15:09,257 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-cbe178af 
ctx-4d8872cb) ===END===  192.168.85.2 -- POST  command=addHost&response=json


following is agent.log :
2015-11-28 03:10:10,102 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2015-11-28 03:10:10,162 INFO  [cloud.agent.Agent] (main:null) Agent [id = new : 
type = LibvirtComputingResource : zone = 1 : pod = 1 : workers = 5 : host = 
192.168.85.136 : port = 8250
2015-11-28 03:10:10,166 INFO  [utils.nio.NioClient] (main:null) Connecting to 
192.168.85.136:8250
2015-11-28 03:11:10,883 ERROR [utils.nio.NioConnection] (main:null) Unable to 
initialize the threads.
java.io.IOException: Connection closed with -1 on reading size.
        at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
        at com.cloud.utils.nio.NioClient.init(NioClient.java:80)
        at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88)
        at com.cloud.agent.Agent.start(Agent.java:227)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399)
        at 
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351)
        at com.cloud.agent.AgentShell.start(AgentShell.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
2015-11-28 03:11:10,894 INFO  [utils.exception.CSExceptionErrorCode] 
(main:null) Could not find exception: 
com.cloud.utils.exception.NioConnectionException in error code list for 
exceptions
2015-11-28 03:11:10,895 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
start agent:
com.cloud.utils.exception.CloudRuntimeException: Unable to start the 
connection!
        at com.cloud.agent.Agent.start(Agent.java:229)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399)
        at 
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367)
        at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351)
        at com.cloud.agent.AgentShell.start(AgentShell.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: com.cloud.utils.exception.NioConnectionException: Connection closed 
with -1 on reading size.
        at com.cloud.utils.nio.NioConnection.start(NioConnection.java:94)
        at com.cloud.agent.Agent.start(Agent.java:227)
        ... 9 more
Caused by: java.io.IOException: Connection closed with -1 on reading size.
        at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
        at com.cloud.utils.nio.NioClient.init(NioClient.java:80)
        at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88)
        ... 10 more
2015-11-28 03:11:10,918 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill

Any suggestion ?
Thank you very much..


Reply via email to