Hi, Have a look at the host setting in the Global setting in cloudstack, make sure it's the IP of the management server and not 127.0.0.1 or localhost. If it is change it to the real IP and restart the management server , then try to re-add the host into cloudstack
Regards Glenn glenn.wag...@shapeblue.comĀ www.shapeblue.com First Floor, Victoria Centre, 7 Victoria Street, Somerset West, Cape Town 7129South Africa @shapeblue -----Original Message----- From: Ciobanu Cristian [mailto:cristian.c@istream.today] Sent: Tuesday, 14 March 2017 10:57 PM To: users@cloudstack.apache.org Subject: ACS 4.9.2 KVM Hello, It's very strange, I have configured before a ACS 4.5.2 with KVM and everything was fine, but right now I have problem adding HOST to ACS 4.9.2, please see the output: Agent KVM : 2017-03-14 16:23:26,043 WARN [utils.nio.NioConnection] (main:null) (logid:) Unable to connect to remote: is there a server running on port 8250 2017-03-14 16:23:31,044 INFO [utils.nio.NioClient] (main:null) (logid:) Connecting to localhost:8250 I also verified agent.propertis and I see only default config, is using localhost for the management server, I'm not sure why has not been updated when I have tried to add the host to the management. First part from agent : # Generate with "uuidgen" guid= #resource= the java class, which agent load to execute resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource #workers= number of threads running in agent workers=5 #host= The IP address of management server host=localhost #port = The port management server listening on, default is 8250 port=8250 #cluster= The cluster which the agent belongs to cluster=default #pod= The pod which the agent belongs to pod=default #zone= The zone which the agent belongs to zone=default #public.network.device= the public nic device # if this is commented, it is autodetected on service startup # public.network.device=cloudbr0 #private.network.device= the private nic device # if this is commented, it is autodetected on service startup # private.network.device=cloudbr1 #guest.network.device= the guest nic device # if this is commented, the private nic device will be used Logs from management server : ==> management-server.log <== 2017-03-14 16:35:58,455 DEBUG [c.c.a.ApiServlet] (catalina-exec-16:ctx-b3627ef8 ctx-5f9cca17) (logid:7850022c) ===END=== 86.125.xxx.xxx -- GET command=updateConfiguration&name=system.vm.use.local.storage&value=true&zone id=d74686ee-8107-451e-add2-dadc28aceecc&response=json&_=1489523757572 2017-03-14 16:35:58,770 DEBUG [c.c.a.ApiServlet] (catalina-exec-20:ctx-4d8315e6) (logid:bfcbddff) ===START=== 86.125.xxxx.xxx -- POST command=addHost&response=json 2017-03-14 16:35:58,782 WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Received unknown parameters for command addHost. Unknown parameters : clustertype 2017-03-14 16:35:58,787 INFO [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Trying to add a new host at http://xxxxxxxxxx.net in data center 2 2017-03-14 16:35:58,931 WARN [c.c.h.k.d.LibvirtServerDiscoverer] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) can't setup agent, due to java.io.IOException: There was a problem while connecting to 144.x17.xx.xx:22 - There was a problem while connecting to 144.x17.xx.xx:22 2017-03-14 16:35:58,931 WARN [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Unable to find the server resources at http://xxxxxxxxxxxx.net 2017-03-14 16:35:58,931 INFO [c.c.u.e.CSExceptionErrorCode] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions 2017-03-14 16:35:58,931 WARN [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Exception: com.cloud.exception.DiscoveryException: Unable to add the host at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl .java:806) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.jav a:598) 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:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopU tils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect iveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expos eInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect iveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro xy.java:204) at com.sun.proxy.$Proxy163.discoverHosts(Unknown Source) at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.j ava:142) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:709) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:533) at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:299) at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(Defa ultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithCon text(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithCont ext(DefaultManagedContext.java:53) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:126) at com.cloud.api.ApiServlet.doPost(ApiServlet.java:93) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103 ) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce ssor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac tProtocol.java:625) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.jav a:1749) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java: 1708) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11 42) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6 17) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.ja va:61) at java.lang.Thread.run(Thread.java:745) 2017-03-14 16:35:58,932 INFO [c.c.a.ApiServer] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) Unable to add the host 2017-03-14 16:35:58,932 DEBUG [c.c.a.ApiServlet] (catalina-exec-20:ctx-4d8315e6 ctx-9fb24e22) (logid:bfcbddff) ===END=== 86.125.xxx.xxx-- POST command=addHost&response=json Thank you very much ! Cristian