Yes Rohit. Both times we had a fresh installation of both kvm host OS and management server.
Thanks and regards, Abhinav From: Rohit Yadav Sent: Tuesday, September 25, 2012 9:06 PM To: Abhinav Roy Cc: cloudstack-dev@incubator.apache.org; Sowmya Krishnan; Sailaja Mada; Shweta Agarwal; Prashant Kumar Mishra; Suresh Sadhu Subject: Re: Is Restart of the KVM host (rhel 6.3) required , before adding it to Management server in ASF 4.0 ? On 25-Sep-2012, at 8:56 PM, Abhinav Roy <abhinav....@citrix.com<mailto:abhinav....@citrix.com>> wrote: Hi Rohit, I was able to deploy advanced zone setup with http://jenkins.cloudstack.org/job/build-4.0-rhel63/163/artifact/CloudStack-oss-4.0.0-163.tar.bz2 build. But again I saw the below error which I had mentioned. There was a need to restart the HOST before successfully adding it to the management server. Attaching the logs too. You may need to do that, if you'd previously had any of the old builds installed. But, do you need to do that even if you're starting with a fresh rhel server for management server and the host is a freshly installed KVM host? Regards. Thanks and regards, Abhinav From: Rohit Yadav Sent: Tuesday, September 25, 2012 3:31 PM To: Abhinav Roy Cc: cloudstack-dev@incubator.apache.org<mailto:cloudstack-dev@incubator.apache.org>; Sowmya Krishnan; Sailaja Mada; Shweta Agarwal; Prashant Kumar Mishra; Suresh Sadhu Subject: Re: Is Restart of the KVM host (rhel 6.3) required , before adding it to Management server in ASF 4.0 ? Checklist: - Latest build #160 or above from http://jenkins.cloudstack.org/job/build-4.0-rhel63/ - Manually install jsvc package - On mgmt server, check selinux policy - Reinstall database, drop old databases and grant privileges (optiional) - Agent is installed - virt daemon is restarted and is running - kvm modules are loaded as Wido suggests I tested with 159, basic zone. Works for me. On 25-Sep-2012, at 2:28 PM, Abhinav Roy <abhinav....@citrix.com<mailto:abhinav....@citrix.com>> wrote: Hi, While adding a KVM host (Rhel 6.3) to the management server we are getting this error and the addition of host fails: 2012-09-25 12:35:14,214 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-17:null) Trying to add a new host athttp://10.102.125.13 in data center 1 2012-09-25 12:35:14,594 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-17:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:16,759 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-17:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:18,818 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-17:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:20,875 DEBUG [kvm.discoverer.KvmServerDiscoverer] (catalina-exec-17:null) It's not a KVM enabled machine 2012-09-25 12:35:20,876 WARN [cloud.resource.ResourceManagerImpl] (catalina-exec-17:null) Unable to find the server resources at http://10.102.125.13 2012-09-25 12:35:20,877 WARN [api.commands.AddHostCmd] (catalina-exec-17:null) Exception: com.cloud.exception.DiscoveryException: Unable to add the host at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544) at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 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(Http11NioProtocol.java:721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 2012-09-25 12:35:20,879 WARN [cloud.api.ApiDispatcher] (catalina-exec-17:null) class com.cloud.api.ServerApiException : Unable to add the host 2012-09-25 12:35:30,140 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode 2012-09-25 12:35:30,667 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers. 2012-09-25 12:35:37,395 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-19:null) Trying to add a new host athttp://10.102.125.13 in data center 1 2012-09-25 12:35:37,543 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-19:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:39,694 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-19:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:41,751 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-19:null) Executing cmd: lsmod|grep kvm 2012-09-25 12:35:43,807 DEBUG [kvm.discoverer.KvmServerDiscoverer] (catalina-exec-19:null) It's not a KVM enabled machine 2012-09-25 12:35:43,807 WARN [cloud.resource.ResourceManagerImpl] (catalina-exec-19:null) Unable to find the server resources at http://10.102.125.13 2012-09-25 12:35:43,808 WARN [api.commands.AddHostCmd] (catalina-exec-19:null) Exception: com.cloud.exception.DiscoveryException: Unable to add the host at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544) at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 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(Http11NioProtocol.java:721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 2012-09-25 12:35:43,810 WARN [cloud.api.ApiDispatcher] (catalina-exec-19:null) class com.cloud.api.ServerApiException : Unable to add the host 2012-09-25 12:35:44,697 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) HostStatsCollector is running... 2012-09-25 12:35:44,707 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) VmStatsCollector is running... 2012-09-25 12:35:44,708 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) StorageCollector is running... But when we restart the host and add again then the host gets added and we don't see any such error. We have seen this consistently with last few ASF builds. Is this an expected behavior?? Environment : Management server : Rhel 6.3 Host : KVM (Rhel 6.3) ASF build : [Git Revision: dec69146cac7c064e2596a1a13c86015f0c4cd0a Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git]<https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git%5d> ------------------ http://jenkins.cloudstack.org/job/build-4.0-rhel63/lastSuccessfulBuild/artifact/CloudStack-oss-4.0.0-156.tar.bz2 <management-server.log><agent.log><api-server.log>