[ https://issues.apache.org/jira/browse/CLOUDSTACK-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13674654#comment-13674654 ]
Animesh Chaturvedi commented on CLOUDSTACK-2468: ------------------------------------------------ Fang can you check on Angeline's setup and see if adding the jar to classpath works > KVM 6.3 snapshot - Unable to add host > ------------------------------------- > > Key: CLOUDSTACK-2468 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2468 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Environment: MS ASF 4.2 CloudPlatform-4.0kvm-qemu-6-rhel6.3.tar.gz > host rhel 6.3 CloudPlatform-4.0kvm-qemu-6-rhel6.3.tar.gz > Reporter: angeline shen > Priority: Blocker > Fix For: 4.2.0 > > Attachments: agent.log, management-server.log.gz > > > 1. MS unable to add host: > 2013-05-13 16:24:43,369 WARN [cloud.resource.ResourceManagerImpl] > (catalina-exec-2:null) Unable to find the server resources at > http://10.223.51.3 > 2013-05-13 16:24:43,379 INFO [utils.exception.CSExceptionErrorCode] > (catalina-exec-2:null) Could not find exception: > com.cloud.exception.DiscoveryException in error code list for exceptions > 2013-05-13 16:24:43,380 WARN [admin.host.AddHostCmd] (catalina-exec-2:null) > Exception: > com.cloud.exception.DiscoveryException: Unable to add the host > at > com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:900) > at > com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:645) > at > org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:519) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:369) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) > at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > 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) > 2013-05-13 16:24:43,381 INFO [cloud.api.ApiServer] (catalina-exec-2:null) > Unable to add the host > 2013-05-13 16:24:43,383 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) > ===END=== 10.216.133.70 -- POST > command=addHost&response=json&sessionkey=pDNdguh4TDBkypMGj7LMHWec1%2Bw%3D > 2013-05-13 16:24:48,401 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] > (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage > UPintenance mode > 2. Host: > [root@Rack2Host18 agent]# libvirtd --version > libvirtd (libvirt) 0.9.10 > [root@Rack2Host18 agent]# lsmod | grep kvm > kvm_intel 52570 0 > kvm 314739 1 kvm_intel > 2013-05-13 23:35:10,001 INFO [cloud.agent.AgentShell] (main:null) Agent > started > 2013-05-13 23:35:10,002 INFO [cloud.agent.AgentShell] (main:null) > Implementation Version is 4.2.0-SNAPSHOT > 2013-05-13 23:35:10,003 INFO [cloud.agent.AgentShell] (main:null) > agent.properties found at /etc/cloudstack/agent/agent.properties > 2013-05-13 23:35:10,005 INFO [cloud.agent.AgentShell] (main:null) Defaulting > to using properties file for storage > 2013-05-13 23:35:10,007 INFO [cloud.agent.AgentShell] (main:null) Defaulting > to the constant time backoff algorithm > 2013-05-13 23:35:10,009 INFO [cloud.utils.LogUtils] (main:null) log4j > configuration found at /etc/cloudstack/agent/log4j-cloud.xml > 2013-05-13 23:35:10,045 ERROR [cloud.agent.AgentShell] (main:null) Unable to > start agent: Resource class not found: > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource due to: > java.lang.ClassNotFoundException: > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource > 2013-05-13 23:37:02,210 INFO [cloud.agent.AgentShell] (main:null) Agent > started > 2013-05-13 23:37:02,211 INFO [cloud.agent.AgentShell] (main:null) > Implementation Version is 4.2.0-SNAPSHOT > 2013-05-13 23:37:02,213 INFO [cloud.agent.AgentShell] (main:null) > agent.properties found at /etc/cloudstack/agent/agent.properties > 2013-05-13 23:37:02,214 INFO [cloud.agent.AgentShell] (main:null) Defaulting > to using properties file for storage > 2013-05-13 23:37:02,216 INFO [cloud.agent.AgentShell] (main:null) Defaulting > to the constant time backoff algorithm > 2013-05-13 23:37:02,219 INFO [cloud.utils.LogUtils] (main:null) log4j > configuration found at /etc/cloudstack/agent/log4j-cloud.xml > 2013-05-13 23:37:02,254 ERROR [cloud.agent.AgentShell] (main:null) Unable to > start agent: Resource class not found: > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource due to: > java.lang.ClassNotFoundException: > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource -- 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