You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Syafiq Rokman <ms...@gmail.com> on 2016/01/28 10:51:07 UTC

(Self-Host) Unable to Add Host

CS 4.3 on Ubuntu 14.04.
Using KVM as hypervisor.
I'm trying to set up a simple self-hosted cloud.

I am unable to add the management server as host on the admin UI.

------------------------------------------------------------------------------------------------------------
/var/log/cloudstack/agent/agent.log

INFO [c.c.r.ResourceManagerImpl] (catalina-exec-5:ctx-3933d9f3
ctx-e0903949) Trying to add a new host at http://172.16.134.94 in data
center 1
WARN [c.c.h.k.d.LibvirtServerDiscoverer] (catalina-exec-5:ctx-3933d9f3
ctx-e0903949) can't setup agent, due to java.io.IOException: There was a
problem while connecting to 172.16.134.94:22 - There was a problem while
connecting to 172.16.134.94:22
WARN [c.c.r.ResourceManagerImpl] (catalina-exec-5:ctx-3933d9f3
ctx-e0903949) Unable to find the server resources at http://172.16.134.94
INFO [c.c.u.e.CSExceptionErrorCode] (catalina-exec-5:ctx-3933d9f3
ctx-e0903949) 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-5:ctx-3933d9f3 ctx-e0903949)
Exception: com.cloud.exception.DiscoveryException: Unable to add the host
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)
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.$Proxy145.discoverHosts(Unknown Source) at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) at
com.cloud.api.ApiServer.queueCommand(ApiServer.java:627) at
com.cloud.api.ApiServer.handleRequest(ApiServer.java:470) at
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323) at
com.cloud.api.ApiServlet.access$000(ApiServlet.java:53) at
com.cloud.api.ApiServlet$1.run(ApiServlet.java:115) 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:112) at
com.cloud.api.ApiServlet.doPost(ApiServlet.java:79) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:643) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 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:103)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:891)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:750)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2283)
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-5:ctx-3933d9f3 ctx-e0903949) Unable
to add the host

------------------------------------------------------------------------------------------------------------

I've been at this for almost 2 weeks. Please send help.

Re: (Self-Host) Unable to Add Host

Posted by Remi Bergsma <RB...@schubergphilis.com>.
Hi,

Out of interest: why version 4.3? It’s rather old. I’d pick a newer version if you are building something new.

Can the CloudStack management server SSH to the KVM hypervisor (172.16.134.94) with the supplied user/passwd? It needs to be root in 4.3.

Regards,
Remi




On 28/01/16 10:51, "Syafiq Rokman" <ms...@gmail.com> wrote:

>CS 4.3 on Ubuntu 14.04.
>Using KVM as hypervisor.
>I'm trying to set up a simple self-hosted cloud.
>
>I am unable to add the management server as host on the admin UI.
>
>------------------------------------------------------------------------------------------------------------
>/var/log/cloudstack/agent/agent.log
>
>INFO [c.c.r.ResourceManagerImpl] (catalina-exec-5:ctx-3933d9f3
>ctx-e0903949) Trying to add a new host at http://172.16.134.94 in data
>center 1
>WARN [c.c.h.k.d.LibvirtServerDiscoverer] (catalina-exec-5:ctx-3933d9f3
>ctx-e0903949) can't setup agent, due to java.io.IOException: There was a
>problem while connecting to 172.16.134.94:22 - There was a problem while
>connecting to 172.16.134.94:22
>WARN [c.c.r.ResourceManagerImpl] (catalina-exec-5:ctx-3933d9f3
>ctx-e0903949) Unable to find the server resources at http://172.16.134.94
>INFO [c.c.u.e.CSExceptionErrorCode] (catalina-exec-5:ctx-3933d9f3
>ctx-e0903949) 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-5:ctx-3933d9f3 ctx-e0903949)
>Exception: com.cloud.exception.DiscoveryException: Unable to add the host
>at
>com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
>at
>com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)
>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.$Proxy145.discoverHosts(Unknown Source) at
>org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) at
>com.cloud.api.ApiServer.queueCommand(ApiServer.java:627) at
>com.cloud.api.ApiServer.handleRequest(ApiServer.java:470) at
>com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323) at
>com.cloud.api.ApiServlet.access$000(ApiServlet.java:53) at
>com.cloud.api.ApiServlet$1.run(ApiServlet.java:115) 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:112) at
>com.cloud.api.ApiServlet.doPost(ApiServlet.java:79) at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:643) at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 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:103)
>at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
>at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>at
>org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:891)
>at
>org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:750)
>at
>org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2283)
>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-5:ctx-3933d9f3 ctx-e0903949) Unable
>to add the host
>
>------------------------------------------------------------------------------------------------------------
>
>I've been at this for almost 2 weeks. Please send help.