We have setup a test site and no matter what we try we cannot add a host which is also running on the management server. What occurs after host fails and I check the host interface the host is added and online. I then enable the zone and the systemvms appear then are removed and this occurs for as long as I keep the management server online. Logs below after add host fails.
2021-03-10 13:55:40,099 INFO [c.c.r.ResourceManagerImpl] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) Trying to add a new host at XXXXXXXin data center 1 2021-03-10 13:55:40,101 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) Skipping host 178.32.30.36 because b07dcb98-082e-372c-a47e-9b3cc96c505f is already in the database for resource b07dcb98-082e-372c-a47e-9b3cc96c505f-LibvirtComputingResource with ID 596933fb-e093-4cb9-b33e-31d704cbc6ea 2021-03-10 13:55:40,101 WARN [c.c.h.k.d.LibvirtServerDiscoverer] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) can't setup agent, due to com.cloud.utils.exception.CloudRuntimeException: Skipping host 1XXXXXXX because b07dcb98-082e-372c-a47e-9b3cc96c505f is already in the database for resource b07dcb98-082e-372c-a47e-9b3cc96c505f-LibvirtComputingResource with ID 596933fb-e093-4cb9-b33e-31d704cbc6ea - Skipping host XXXXXXX because b07dcb98-082e-372c-a47e-9b3cc96c505f is already in the database for resource b07dcb98-082e-372c-a47e-9b3cc96c505f-LibvirtComputingResource with ID 596933fb-e093-4cb9-b33e-31d704cbc6ea 2021-03-10 13:55:40,101 WARN [c.c.r.ResourceManagerImpl] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) Unable to find the server resources at [I](http://178.32.30.36)PXXXXXXX 2021-03-10 13:55:40,102 INFO [c.c.u.e.CSExceptionErrorCode] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions 2021-03-10 13:55:40,102 WARN [o.a.c.a.c.a.h.AddHostCmd] (qtp2109798150-16:ctx-9f997916 ctx-8efebf9f) (logid:2d68b314) Exception: com.cloud.exception.DiscoveryException: Unable to add the host at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:826) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:612) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at com.sun.proxy.$Proxy188.discoverHosts(Unknown Source) at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:764) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:588) at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:321) at com.cloud.api.ApiServlet$1.run(ApiServlet.java:134) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:131) at com.cloud.api.ApiServlet.doPost(ApiServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1386) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) Sent with [ProtonMail](https://protonmail.com) Secure Email.
