[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463990#comment-13463990
 ] 

Abhinav Roy commented on CLOUDSTACK-205:
----------------------------------------

Hi Marcus,

We have seen this issue multiple times whenever anyone has tried to add a KVM 
host ( Rhel 6.3) to the management server but don't see this while adding a 
Ubuntu host.
And yes we have seen that the qemu-kvm module is loaded as a dependency while 
doing the agent install but we never checked the presence of the module using 
"lsmod|grep kvm" command. 
But at present the problem is that we all have our setups ready by doing the 
work-around and we are in the final stage of our testing. So, removing 
everything and installing again will take time. we will send you the required 
info as and when someone  tries to install a fresh KVM setup.


Thanks and regards,
Abhinav
                
> Reboot of the KVM host (rhel 6.3) is required  before adding it to Management 
> server in ASF 4.0
> -----------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-205
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-205
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Install and Setup, KVM, Management Server
>    Affects Versions: pre-4.0.0
>         Environment: Management server  : Rhel 6.3
> Host : KVM (Rhel 6.3)
> ASF build : 
> http://jenkins.cloudstack.org/job/build-4.0-rhel63/163/artifact/CloudStack-oss-4.0.0-163.tar.bz2
>            Reporter: Abhinav Roy
>             Fix For: pre-4.0.0
>
>         Attachments: agent.log, api-server.log, management-server.log
>
>
> Steps :
> ==========================
> 1. Deploy an advanced zone on a fresh CS setup.
> 2. Install agent on a freshly configured KVM host (Rhel 6.3)
> 3. Add host to the management server.
> Expected Behaviour :
> ==========================
> The KVM host should be added successfully to the MS.
> Observed Behaviour :
> ==========================
> 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 reboot the host and add again then the host gets added and we 
> don't see any such error. We have seen this consistently with  ASF builds.
> Also, this kind of behaviour is not seen when the KVM host is UBUNTU. In that 
> case we don't need to reboot the host.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to